aboutsummaryrefslogtreecommitdiff
path: root/events.py
diff options
context:
space:
mode:
Diffstat (limited to 'events.py')
-rw-r--r--events.py7
1 files changed, 7 insertions, 0 deletions
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"]])