I believe I may have found a limitation of IoTaWatt’s InfluxDb code. I attempted to create a 62nd measurement for InfluxDB. As I am trying to access all the data (Watts, Amps, kwh, wh, VAR, etc) for each CT input I have. Which is a lot of measurements.
When I add the 62nd measurement I get this error in the IoTaWatt logs when trying to stop/start the InfluxDb Service on IoTaWatt:
8/09/20 22:00:01 influxDB: Json parse failed.
8/09/20 22:00:01 influxService: Invalid configuration.
I believe I tracked it down to this line of code (https://github.com/boblemaire/IoTaWatt/blob/aa3474c974f08ecdc3a85857a68a10819c2cba1b/Firmware/IotaWatt/influxDB.cpp#L535), but without more verbose error logging I’m not really sure what is causing it.
I also double checked to make sure the config.txt JSON file was valid by running it through a JSON validator. So my only guess is a limitation in the code for more than 62 measurements in IoTaWatt?