johanmeijer / grott

Growatt inverter monitor
https://github.com/johanmeijer/grott/wiki
389 stars 108 forks source link

Divider not applied to MQTT and InfluxDB JSON messages #359

Open KevinEeckman opened 1 year ago

KevinEeckman commented 1 year ago

Hi,

Is there a reason you chose not to apply the dividers described in the examples/ folder to the generated MQTT and InfluxDB jsons ? I'd rather have the final data in InfluxDB or MQTT instead of the raw one

See this section of the wiki

johanmeijer commented 1 year ago

My main reason was (is) to sent the unmodified data to MQTT and Influxdb (the raw data as it was received from the inverter) and do the processing by the reporting tools. The receiver can decide how to process.

The dividers are only used for Grott log messages at this moment.

If you think it is of added value we think about making a "switch"(parameter) to also use the dividers in the MQTT and influxdb output.

KevinEeckman commented 1 year ago

Hi @johanmeijer, implemented in the attached PR as discussed.

johanmeijer commented 1 year ago

I am going to look into this one the coming weeks (I am enjoying holidays now)