Spanni26 / pyHPSU

Python Script to read and send commands to a Rotex HPSU
26 stars 15 forks source link

Changed output to valid json #65

Closed mohnewald closed 6 months ago

mohnewald commented 6 months ago

The default Output is not valid json. It´s a dict in a list.: [{'name': 't_hs', 'resp': '32.00', 'timestamp': 1544534667.414178}]

Added arrResponse = json.dumps(arrResponse) to render a valid json format: [{"name": "t_dhw", "resp": "39.40", "timestamp": 1702020617.676643}]