Skip to main content
Contributor I
May 16, 2019
Answered

API and playlists - determine playlist id currently playing

  • May 16, 2019
  • 1 reply
  • 597 views
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!
    This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.
    Best answer by bossjohnc
    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.

    1 reply

    bossjohncAuthorAnswer
    Contributor I
    May 17, 2019
    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.