Skip to main content
Hi,



I'm in the throws of a project to create an NFC jukebox - you'd have a deck of cards with album covers and track listings printed on them, wave whichever you desire over a box, and it would start playing on the Sonos.



I'm using a Raspberry Pi and Python.



There are a few similar projects out there using older standards (SoCo - which doesn't make use of the new API, is very widely used), but I would like to use the new API.



My interaction with it should be fairly simple, but I would like to give a user the ability to 'write' a playlist to a new card (so, they'd press a button, an LED would light up, they'd place the card on the reader and the playlist would then be associated with that card).



Is there any way (via the API) to determine the playlist id of what's currently playing (or return nothing if it's not a playlist)?



Thanks in anticipation!
Ok, I think I might have misread something somewhere. Soco looks like what I need. Hopefully I'll have my box up and running soon.