Open wrestlingcarbonapple opened 8 years ago
You're very welcome!
And you should be able to get this stuff from the API (/api/info/metadata
and /api/info/status
)
The full URL would be something like http://localhost:4000/api/info/metadata
I'd like to add my thanks too - it's a great solution. I am also looking to do the same as the original poster, but I am using the connect.py direct - is there anyway to get at the meta data this way? Shairport-sync writes its metadata to a pipe - could something similar be done here?
It turned out pretty awesome using the metadata-json! Is there a way to output what device Spotify is playing from in the metadata? It changes even if i play on my cellphone or PC :)
@john-a-harris I'll look into doing something like that @shakudu Unfortunately not :( That info isn't exposed in the library I'm using
@shakudu Looks great! Are you polling the api, or using some other trigger for deciding when to fetch the data?
Polling the api every few seconds and outputs to display if there's any changes. But some kind of trigger would've been more effective.
hi @shakudu do you mind posting your code or explaining a bit more of how you accomplished it? I'm hoping to do a similar thing with the same LCD display.
First, THANK YOU for this amazing piece of software. It made my RPi exactly what i needed it to be :+1: My title is vague because i don't really know what i'm asking for. I'm fiddling around with connecting a 20x4 i2c display to my RPi, i use the Python smbus library to write to it. So what i'm after is a way to write song name/artist, play/pause status, volume and other info to it. I don't know where to begin.