I've installed 16 2PMs for my shutters and they all work fine. I want to send Python commands to open/close/stop.
The only python example I can find
=
import requests
r =requests.get('http://192.168.2.42/rpc/Sys.GetStatus')
print(r.text)
=
works fine. I get
{"mac":"FCB467A554BC","restart_required":false,"time":"15:44","unixtime":1702824251,"uptime":65149,"ram_size":257852,"ram_free":121888,"fs_size":458752,"fs_free":139264,"cfg_rev":9,"kvs_rev":0,"schedule_rev":4,"webhook_rev":1,"available_updates":{"beta":{"version":"1.1.0-beta3"},"stable":{"version":"1.0.8"}}}
How do I send a command? Do I have to set anything up on the Shellys?
Thanks I just need a bit of a leg up here.