Mopidy Discourse

Play regular beep while mopidy is idle

Hi,

Is there a way to make mopidy play a sound (like a beep) every n seconds when nothing else is playing? I regularly forget to switch of my HIFI when leaving the house. :slight_smile:

There’s nothing I know of that does this currently, but you could write a script or even Mopidy extension that did this.

For a script, check Mopidy’s status to see if it’s playing something (or use MPD’s idle command), if not then play your beep sound and sleep for n seconds. The mpc program in conjunction with Mopidy-MPD makes writing these scripts quite simple.

1 Like