diff options
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"]]) |