How to create Siri Shortcuts using WiiM's api

pvog

Member
Joined
Feb 3, 2023
Messages
20
How to create Siri Shortcuts using WiiM's api

Because the WiiM server does not provide a valid ssl certificate when you call the WiiM api directly from shortcuts it won't work with shortcuts get content from url.
There is a solution:
  • First install a-shell or a-shell mini from the App Store.
  • Launch a-shell and enter this command with your WiiM's ip address. curl -X GET "https://yourwiimsipadress/httpapi.asp?command=getStatusEx" -k
  • Then grant access when asked.
  • You can find the ip address in the WiiM app device settings under Network Status.
  • Next Step create a new shortcut
  • Search for a-shells Execute command and add the curl command you want there like this.
IMG_0620.jpeg
 
Last edited:
Hello
How to create Siri Shortcuts using WiiM's api

Because the WiiM server does not provide a valid ssl certificate when you call the WiiM api directly from shortcuts it won't work with shortcuts get content from url.
There is a solution:
  • First install a-shell or a-shell mini from the App Store.
  • Launch a-shell and enter this command with your WiiM's ip address. curl -X GET "https://yourwiimsipadress/httpapi.asp?command=getStatusEx" -k
  • Then grant access when asked.
  • You can find the ip address in the WiiM app device settings under Network Status.
  • Next Step create a new shortcut
  • Search for a-shells Execute command and add the curl command you want there like this.
View attachment 345
Hello pvog,

Is the above workaround still working? I am trying to apply it in order to call the "Preset" API but i get an error for secure server which suggests to visit this link https://curl.se/docs/sslcerts.html

Is ti possible to give some guidance please on how to achieve the above but for the presets of the WiiM Pro?
The API to call "Preset 04" is the following


thank you very much.
 
It still works for me. After updating to iOS17 I had to run the url once directly from a-shell again to give a-shell access again.
 
Back
Top