123Solar is a lightweight set of PHP/JS files that makes a web logger to monitor your photovoltaic inverter(s). It just need a web server and PHP, no databases are even needed. The philosophy is: To keep it simple, fast, with a low foot print to run on cheap and low powered devices.
I noticed that fronius inverters sporadically do not deliver correct data (empty JSON datasctructure).
This leads to strange spikes in 123solar logging.
Therefor I updated fronius script (fronius.php) at line 25:
if ((json_last_error() == JSON_ERROR_NONE) and ($dataarray['Body']['Data']['TOTAL_ENERGY'])) {
This validates, if structure ist not empty (existence of Body/Data/TOTAL_ENERGY) and solved my problem.
I noticed that fronius inverters sporadically do not deliver correct data (empty JSON datasctructure). This leads to strange spikes in 123solar logging.
Therefor I updated fronius script (fronius.php) at line 25:
if ((json_last_error() == JSON_ERROR_NONE) and ($dataarray['Body']['Data']['TOTAL_ENERGY'])) {
This validates, if structure ist not empty (existence of Body/Data/TOTAL_ENERGY) and solved my problem.Could you pls. add this to actual codebase?