|
Post by klueter on Feb 11, 2020 17:05:03 GMT -8
SkyWeather 055 bug fixes for Blynk app: Blynk lightning LED Issue: 30 min reset logic is faulty. Tests for 'future' time and uses wrong time function. Look in file updateblynk.py line 376 if(state.currentAs3935LastLightningTimeStamp < time.clock() + 1800): #True is lightning, False is none set to green else: set to red Change if statement as follows: # Test if last strike is > 30 minutes passed, if so keep green else red if (state.currentAs3935LastLightningTimeStamp > (time.time() - 1800)): This will reset the LED back to red after 30 minutes. Green indicates a strike. Blynk barometric trend LED Issue: state.pastBarometricReading is reset in wrong part of program. It should be done in the scheduled task where it is already done. Look in SkyWeather.py line 1293 for; state.pastBarometricReading = state.currentBarometricPressure Comment it out; # state.pastBarometricReading = state.currentBarometricPressure The trend LED will now work.
Regards, Dan
|
|
|
Post by SDL on Feb 12, 2020 14:45:15 GMT -8
Thank you! We will incorporate that in the next version.
BP
|
|