Chris.G
Member
- Joined
- Apr 25, 2024
- Messages
- 14
I am still quite a beginner when it comes to UPNP and am writing a smart home (homey) integration/app and have encountered the following problem.
The WIIM device is found via mDNS and now I'm trying to register the events via UPNP, but now I get the following 404 error message.
My code:
Or even better does someone have a working example in JavaScript ?
The WIIM device is found via mDNS and now I'm trying to register the events via UPNP, but now I get the following 404 error message.
My code:
What is wrong here?const UPNP = require('upnp-device-client');
this.#upnpClient = new UPNP(`http://[WIIM-IP]:49152/upnp`);
this.#upnpClient.callAction('AVTransport', 'GetMediaInfo', { InstanceID: 0 }, (err, result) => {
this.logDebug(`callAction: ${err || result}`)
})
Or even better does someone have a working example in JavaScript ?