Recall Presets using the Wiim API

ddetton

New member
Joined
Feb 29, 2024
Messages
2
I was able to get the basic transport controls working using the Wiim API document. The next thing I looked for was how to recall a preset using the api but I didn't see it. Is there a way to recall a preset using the api or is the document posted comprehensive? Is there any other way to do this?
 
I followed another thread that you were in and found how to recall a preset. Thanks! In case anyone is interested, the arylic http api looks very similar to the Wiim http api. It can be found here https://developer.arylic.com/httpapi/#http-api. The command to recalll a preset is

https://ip_address/httpapi.asp?command=MCUKeyShortClick:n

where n is a number from 1 to 12
 
Last edited:
It's the UPnP SOAP interface. There are UPnP libs for pretty much any language out there. I have published examples in both JavaScript and Python that interact with the WIiMs.

You'll find that this UPnP interface is considerably more full-featured than the http one. I suggest using a good UPnP Tool to interact with it.

 
It's the UPnP SOAP interface. There are UPnP libs for pretty much any language out there. I have published examples in both JavaScript and Python that interact with the WIiMs.

You'll find that this UPnP interface is considerably more full-featured than the http one. I suggest using a good UPnP Tool to interact with it.

Thank you for clue but after dozen of tries I am failed to understand how to construct the SOAP request. Here is my request and device answer on it:

curl -s -X POST "http://192.168.0.15:49152/upnp/control/rendertransport1" -H "SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#GetInfoEx"" -H 'Content-Type: text/xml;charset="utf-8"' -d "<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetInfoEx xmlns:u= "urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID></u:GetInfoEx></s:Body></s:Envelope>"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>401</errorCode>
<errorDescription>Invalid Action</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Any idea of what is "Invalid" in my SOAP?
 
Try the examples in the Arylic .zip file here:

 
To those, who can be interested, correct syntax is below:

curl -X POST http://192.168.115.12:49152/upnp/control/rendertransport1 –H "SOAPACTION: \"urn:schemas-upnp-org:service:AVTransport:1#GetInfoEx\"" -H "Content-Type: text/xml;charset=\"utf-8\"" –d "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetInfoEx xmlns:u=\"urn:schemas-upnp-org:service:AVTransport:1\"><InstanceID>0</InstanceID></u:GetInfoEx></s:Body></s:Envelope>"
 
Last edited:
Back
Top