platypush.backend.music.snapcast

class platypush.backend.music.snapcast.MusicSnapcastBackend(hosts=None, ports=None, poll_seconds=10, *args, **kwargs)[source]

Backend that listens for notification and status changes on one or more [Snapcast](https://github.com/badaix/snapcast) servers.

Triggers:

__init__(hosts=None, ports=None, poll_seconds=10, *args, **kwargs)[source]
Parameters:
  • hosts (list[str]) – List of Snapcast server names or IPs to monitor (default: [‘localhost’]
  • ports (list[int]) – List of control ports for the configured Snapcast servers (default: [1705])
  • poll_seconds (float) – How often the backend will poll remote servers for status updated (default: 10 seconds)
run()[source]

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