VPN/Proxy erkannt
Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.
-
I have had no luck getting the above method to work, but have started using the new rpc API and it is working as expected with the following example commands.
https://shelly-api-docs.shelly.cloud/gen2/Overview/…shellygetstatus
curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.ListMethods"}' http://${SHELLY}/rpc
curl -X POST -d '{"id":1, "src":"user_1", "method":"Switch.GetStatus", "params":{"id":0}}' http://${SHELLY}/rpc
So it's a case or RT*M - but it has to be the right version.
Unless anyone can post to tell me what I was doing wrong with the first post and the basic HTTP interface?
-
I am trying to getting up and running with a new Shelley Pro 4PM. The device is connected to my local WiFi network and all features are working fine with the Web UI.
I am just focussing on local HTTP commands at the moment. I have been able to use the local HTTP interface to change the relay stats with commands such as
curl "http://IP_ADDRESS/relay/0?turn=off&timer=5"
What I want to do is to be able to read the metering values from each channel as documented at https://shelly-api-docs.shelly.cloud/gen1/#shelly4pro-meter-index
However, I can't seem to get the other commands like /meter/0 and /settings to work - what I am doing wrong?
curl "http://IP_ADDRESS/meter/0"
Not Found