API HTTP Call using a Playlist URL

SpikeNbg

New member
Joined
Jan 9, 2024
Messages
2
Hello!

Unfortunately, I wasn't able to find a solution to this problem in this forum..

I'm using the HTTP API for my WiiM Pro to pause, resume, skip title etc. And it works wonderfully.

Unfortunately I am not able to pass a playlist to the wiim.
("command=setPlayerCmd; playlist:url:index" or with hex_playlist)

I have already tried many variants, but I can't do it. I have tried Tidal URLs, M3U URLs etc.
I've tried writing the playlist in HEX format or normal.

Does anyone have a working example for me? Even a Tidal playlist would be best as I use this service.

Thank you very much!!!
 
Havent't found anything by myself still..

There seem to be similar players around, f.e. airScope, here is a link to their HTTP API: HTTP API

But that didn't help, as they describe the need of hexing the url, but without working examples..

Anyone any tipps? :)
 
Use UPnP via SOAP. Examples from Arylic in the attached .zip file.
Edit config.inc to your WiiM's IP address.
 

Attachments

Does anyone have a working example for me?
FYI: You can play a preset you've pre-defined to the WiiM player with:

command=MCUKeyShortClick:preset#

e.g. command=MCUKeyShortClick:3

That isn't the same as being able to play any Tidal (or Qobuz or Spotify etc.) playlist, of course, but it's simple and works fine...

(Thanks to @onlyoneme for this tip, in this post)
 
Old topic, but I'm struggling with the same. I managed to get a remote m3u playlist playing like this:

Code:
curl --insecure "https://ip.of.your.wiim/httpapi.asp?command=setPlayerCmd:play:https://some.webserver/some/cool-playlist.m3u"

(using curl on Linux but typing this into your browser address bar and ignoring the SSL warning should do the trick too)

Note that the command I'm calling is 'play', not 'playlist'. Contradictory to the documentation, playlist won't work for me.

hex_playlist does however:

Code:
curl --insecure "https://ip.of.your.wiim/httpapi.asp?command=setPlayerCmd:hex_playlist:68747470733A2F2F736F6D652E7765627365727665722F736F6D652F636F6F6C2D706C61796C6973742E6D3375"

This 687474... string is just copy-pasted from https://www.rapidtables.com/convert/number/ascii-to-hex.html with 'None' as output delimiter string, but using any ascii-to-hex converter should work.

So far the good news. Apart from getting something to play, I'm not quite happy with it.
  • no playlist information in the app, just the playlist url is shown
  • so no tracks see and the next/previous buttons are not even working
  • no track length, no seek within the song that's playing
  • the api doc suggests appending e.g. :3 to start playing at index 3 in the list but that does not work either
  • although my .m3u is properly made, it won't play some tracks (skips them). I think it's because there's an ampersand & in the #EXTINF track title but I'm not sure yet.
So... my WiiM just plays the songs from the list from start to finish and that's it. No way to interact or get any metadata at all.

I want to integrate my WiiM Amp Pro with openhab using upnp at some point but the openhab 'UpnpControl' binding doesn't find it for some reason (it does find other upnp media renderers though). And I'm not even sure I can point to a http-served playlist using upnp/dlna. When I can I'll probably have the same issues as described in the list above. 😕
 
Back
Top