Closed NatroNx closed 5 years ago
Does this really need two counters? I did something similar in python, see https://github.com/noradtux/EVNotiPi/blob/master/shutdown.py
I am not sure if it still does what you intend. Also what's the purpose of those "//
there was a typo after pistat == 0 - counter==0; which should be counter=0;
I also added two minor features - 1) voltage correction - if the voltagemeter is not right calibrated the user can just edit the trueValue and displayedValue and have a adjusted reading. 2) if the car has HighVoltage for a minute it resets the voltageLowCounter - before this change 150 times one second voltage low reading would reset the pi, even if the voltage is high for the rest of the time - hard to describe :D