patience4711 / read-APSystems-YC600-QS1-DS3

Software for an esp8266 nodemcu to read data from APS inverters.
122 stars 24 forks source link

Problematic number format #59

Closed psxde closed 1 year ago

psxde commented 1 year ago

Hi, Telegraf cannot parse the values receiving from http://IP/get.Inverter?inv=0 resulting in "invalid character '0' after object key:value pair". It seems that the values with double and triple leading zeros like '"pow2":000.0' are the problem.

Thanks, Patrick

patience4711 commented 1 year ago

Thank you for your interest in my software. What esp-ecu version? What do you suggest? As of version 9_6 the returned json looks like this: {"serial":"408000158211","freq":0.00,"temp":0.00,"avc":0.00,"dcv0":0.00,"dcc0":0.00,"pow0":0.00,"en0":0.00,"dcv1":0.00,"dcc1":0.00,"pow1":0.00,"en1":0.00,"power":0.00,"energy":0.00} . The numeric values are float, no more extra leading zero's

psxde commented 1 year ago

Hi, I have updated to ESP-ECU_v9_6 but there are some values left with double leading zeros:

{"serial":"...","freq":50.0,"temp":12.7,"avc":231.1,"dcv0":37.1,"dcc0":0.0,"pow0":0.0,"en0":597.78,"dcv1":9.9,"dcc1":0.0,"pow1":0.0,"en1":0.61,"dcv2":00.0,"dcc2":00.0,"pow2":0.0,"en2":0.00,"dcv3":00.0,"dcc3":00.0,"pow3":0.0,"en3":0.00,"power":0.0,"energy":0.00}

patience4711 commented 1 year ago

Oeps there was a type in it. You got 4 channels although you don't have a qs1 inverter. When you download and install 9_6 again (vs sep 30 2022) it will be fixed. scrsht

psxde commented 1 year ago

Thank you very much for the fast reply. Now it is fixed and working :)