Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Need help with coding in script
Post: RE: Need help with coding in script

Hi snippsat Thank for the JSON check site. I've check the JSON and it is correct. Probably a copy/pase error to the forum What i'm look for is not an output to a log or text I want the output from t...
madpatrick General Coding Help 9 1,530 Feb-05-2023, 04:24 PM
    Thread: Need help with coding in script
Post: RE: Need help with coding in script

(Feb-03-2023, 08:29 PM)deanhystad Wrote: import json with open("test.txt", "r") as file: json_data = json.load(file) states = json_data["states"][0]["state"] for state in states: print...
madpatrick General Coding Help 9 1,530 Feb-04-2023, 08:59 AM
    Thread: Need help with coding in script
Post: RE: Need help with coding in script

(Feb-03-2023, 08:13 PM)deanhystad Wrote: By "scenes" do you mean these? Output:{'id': ['0'], 'tempValue': ['2000'], 'dhw': ['1']} {'id': ['1'], 'tempValue': ['1900'], 'dhw': ['1']} {'id': ['2'], 'te...
madpatrick General Coding Help 9 1,530 Feb-03-2023, 08:21 PM
    Thread: Need help with coding in script
Post: RE: Need help with coding in script

(Feb-03-2023, 07:37 PM)buran Wrote: Response['states'] is a list of one or more dicts Hi Buran, I'm sorry but i do not have a lot of knowlegde of python (yet) What i try to achieve is to change a c...
madpatrick General Coding Help 9 1,530 Feb-03-2023, 07:43 PM
    Thread: Need help with coding in script
Post: Need help with coding in script

Hi, I'm trying to get the info for a JSON file in to a script. def onMessagetoonSceneinfo(self, Connection, Response): Domoticz.Debug("onMessagetoonSceneinfo called") if 'states...
madpatrick General Coding Help 9 1,530 Feb-03-2023, 07:33 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020