aboutsummaryrefslogtreecommitdiff
path: root/events.py
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-08-21 02:01:35 +0100
committerMark Powers <mark@marks.kitchen>2021-08-21 02:01:35 +0100
commit5a2223c85eff8ed14a3fcae7432decbf21b0c491 (patch)
treee8031af7980ed65f75e2ef1ce580c62275967c2a /events.py
parent34e1b2edf9b13e65b6456dcf5097b39f8ee92623 (diff)
Add radio stream eventHEADmaster
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"]])