From 5a2223c85eff8ed14a3fcae7432decbf21b0c491 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 21 Aug 2021 02:01:35 +0100 Subject: Add radio stream event --- events.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'events.py') diff --git a/events.py b/events.py index ce21ad9..03f1090 100644 --- a/events.py +++ b/events.py @@ -141,3 +141,10 @@ class WavEvent(Event): def run(self): self.phone.run_until_hangup(["aplay", self.args[0]]) + +class RadioEvent(Event): + def get_name(self): + return "radio" + + def run(self): + self.phone.run_until_hangup(["cvlc", config["radio"]["url"]]) -- cgit v1.2.3