music.mpd
Platypush documentation
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:
platypush.message.event.music.MusicPlayEvent
if the playback state changed to playplatypush.message.event.music.MusicPauseEvent
if the playback state changed to pauseplatypush.message.event.music.MusicStopEvent
if the playback state changed to stopplatypush.message.event.music.NewPlayingTrackEvent
if a new track is being playedplatypush.message.event.music.PlaylistChangeEvent
if the main playlist has changedplatypush.message.event.music.VolumeChangeEvent
if the main volume has changed
- Requires:
python-mpd2 (
pip install python-mpd2
)The
platypush.plugins.music.mpd
plugin to be configured