Sonos Now Playing & Controls

I built a widget that shows what’s playing on my Sonos and toggles the playback state upon interaction.

Gist: https://gist.github.com/marco79cgn/98616fcbb2dfdbd752b33a452208bcc8

3 Likes

Thanks for sharing this @marco79! I wasn’t already familiar with the Sonos http api you’ve leveraged. Got this all working using my RPi. The API itself is quite useful… the Scriptable widget is a super bonus.

I tweaked the script slightly to accept Sonos speaker location as the parameter. Stacked a couple of widgets to flip between different speakers. Works great! Thanks again — jay

1 Like

if you use the http api on a mac, you have easy access to the text to speech options on the api, makes it really easy to “speak” from the speaker

How do you handle the slow updates iOS does? I wanted to do something similar, but gave up once I realised that updates would often happen every 20 minutes only.