diff options
author | Mark Powers <mark@marks.kitchen> | 2021-08-21 02:01:35 +0100 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2021-08-21 02:01:35 +0100 |
commit | 5a2223c85eff8ed14a3fcae7432decbf21b0c491 (patch) | |
tree | e8031af7980ed65f75e2ef1ce580c62275967c2a /events.py | |
parent | 34e1b2edf9b13e65b6456dcf5097b39f8ee92623 (diff) |
Diffstat (limited to 'events.py')
-rw-r--r-- | events.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"]]) |