amrij / zonnepanelen

Website which shows telemetry data from the TCP traffic of SolarEdge PV inverters
GNU General Public License v3.0
12 stars 6 forks source link

avoid calculations when Gem_Verm is 1 #47

Closed mirakels closed 5 years ago

mirakels commented 5 years ago

This also avoids empty chart when user sets $Gem_Verm to 0 (as experienced by myself ;(

Remove unused variable.

jvanderzande commented 5 years ago

This also avoids empty chart when user sets $Gem_Verm to 0 (as experienced by myself ;(

Remove unused variable.

mmm... guess you got what you requested as the average of zero is .... ;)

jvanderzande commented 5 years ago

Thanks

mirakels commented 5 years ago

HaHa yes, I guess I did. But form the code it also looked as if Gem_Verm acted like a sort of off/on switch too... Anyway this case is now safeguarded ;)