Hi
I already linked to the post by @Emphyrio (post), if that’s what you 're thinking about :-)? My post was more to make a suggestion, to implement a solution like that, which was build in, in Spotcast, allowing it to be a bit more userfriendly for users, which arn’t that good to the logics and structure behind HA
If that not the proper post, i would like to see what you’re thinking off
And, yet another suggestion.
I stumbled across the suggestion about allowing the user to play a random playlist/number, and a solution found here.
Have you considered to implement another solution, which actually picks something randomly :-)? Or, is that all the way to time-consuming? I found this about picking a random track, which looks promising (Well, it’s just an example, to generate a random string for the search-function…). But that could be used in the radio-API.
However, this looks promising, and it would be awesome to see implemented in Spotcast:
Maybe you think the same? I’m not sure But i would like to mention it.
Another thing could be to pick up a random playlist on v1/browse/featured-playlists
, and play that. And, maybe use the data from Home Assistant, to define the country - or allow the user to define that.
curl -X "GET" "https://api.spotify.com/v1/browse/featured-playlists?country=DK&limit=10" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer {TOKENGOESHERE}"
And pick up the ID form playlists.items[{RANDOMID}].id
, where RANDOMID
could be a random from 0 to 9, or so (based on the limit
value, ofc.)
I know i’m just bringing up a few things and suggestions, but i would just like that feature - and i myself, appreciate both ideas and suggestions.
Maybe you would consider it - maybe not
Have a great sunday!