Open NicoCaldo opened 1 year ago
I'm trying to using the library which should be pretty simple. I've used device = ShellyPy.Shelly("xx.xx.xx.xx") and with device.update() I can see the device name printing print(device)
device = ShellyPy.Shelly("xx.xx.xx.xx")
device.update()
print(device)
Now, if I use
deviceMeter = device.meter(0) print(deviceMeter['total'])
I've the error above
The thing is that I can correctly reach the IP from the same PC I'm trying to connect with Python.
Also, I don't know if I have to active Allow Cross-Origin Resource Sharing on the Shelly?
Allow Cross-Origin Resource Sharing
Oh just figured it out that you have to use device.status()
device.status()
I'm trying to using the library which should be pretty simple. I've used
device = ShellyPy.Shelly("xx.xx.xx.xx")
and withdevice.update()
I can see the device name printingprint(device)
Now, if I use
I've the error above
The thing is that I can correctly reach the IP from the same PC I'm trying to connect with Python.
Also, I don't know if I have to active
Allow Cross-Origin Resource Sharing
on the Shelly?