Open thib5 opened 6 years ago
Hi
It should be possible by using the CustomRequest/CustomReply channels. This is briefly described in the binding readme.
Instead of the "https://api.spotify.com/v1/me" url you should send the request for albums "https://api.spotify.com/v1/albums/{id}" and replace the "{id}" with the id of the album of currently played track. (from albumId channel) https://developer.spotify.com/documentation/web-api/reference/albums/
This returns the full album object in the CustomReply channel - in JSON format: https://developer.spotify.com/documentation/web-api/reference/object-model/#album-object-full
The album object contains an array of image objects which should have the album art url, height and width: https://developer.spotify.com/documentation/web-api/reference/object-model/#image-object
I haven't tested this specifically, but it should be all be possible with openhab rules.
Good luck!
Regards, Andreas
Hi !? is there a way with this binding to have an url to the album art image ?
Thanks