music.mpd#

class platypush.backend.music.mpd.MusicMpdBackend(server='localhost', port=6600, poll_seconds=3, **kwargs)[source]#

Bases: Backend

This backend listens for events on a MPD/Mopidy music server.

Triggers:

Requires:
__init__(server='localhost', port=6600, poll_seconds=3, **kwargs)[source]#
Parameters:

poll_seconds (float) – Interval between queries to the server (default: 3 seconds)

run()[source]#

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.