I found out my get_devices call was not correct (not using the xid).
The correct one is: url = "%s/json.htm?type=command¶m=getdevices&rid=%s" % (self.baseurl, xid)
Search found 3 matches
- Saturday 14 June 2025 22:12
- Forum: Python
- Topic: get_gas_values(domoticzurl, domoticzdeviceid_gas) stopped working
- Replies: 3
- Views: 178
- Saturday 14 June 2025 13:49
- Forum: Python
- Topic: get_gas_values(domoticzurl, domoticzdeviceid_gas) stopped working
- Replies: 3
- Views: 178
Re: get_gas_values(domoticzurl, domoticzdeviceid_gas) stopped working
Thanks for clearing that out! I got this working: url = f"{self.baseurl}/json.htm?type=command¶m=getdevices" data = json.load(self.__execute__(url)) return data def get_gas_values(url, device_id): """ Get gasmeter reading. """ device_data = Domoticz(url).get_device(device_id) data = device_data ...
- Saturday 14 June 2025 9:15
- Forum: Python
- Topic: get_gas_values(domoticzurl, domoticzdeviceid_gas) stopped working
- Replies: 3
- Views: 178
get_gas_values(domoticzurl, domoticzdeviceid_gas) stopped working
Hi, I'm running two scripts which uses "get_gas_values(domoticzurl, domoticzdeviceid_gas)". These scripts worked fine until May 6th 2025. Now I get the following error: /domoticz/scripts $ python3 gasstanden.py Traceback (most recent call last): File "/home/pi/domoticz/scripts/gasstanden.py", line ...