|
Post by misterolsen on Dec 25, 2019 6:08:34 GMT -8
Hi and merry Christmas to all
How do I get the file WeatherStats.txt updated ??
Or is there a way where I can get all readings sent to a txt file every minute ??
the reason is that I want it to use it for making local weather displays
Kind regards, Thomas
|
|
|
Post by SDL on Dec 26, 2019 6:55:08 GMT -8
Thomas,
Simple fix. Add the following line of code at around line 1782 in SkyWeather.py
scheduler.add_job(writeWeatherStats, 'interval', seconds=30)
That will update the file every 30 seconds.
BP
|
|
|
Post by misterolsen on Dec 27, 2019 7:45:00 GMT -8
Super, Thanks. another question, totalrain is it reset every 24hr or at reboot or ?? and is there a variable for rain last 24hr ?? /Thomas
|
|
|
Post by SDL on Dec 27, 2019 8:42:35 GMT -8
24 Hours and at Reboot. This needs to be reworked and is on our bug list. It needs to persist through a normal reboot. BP
|
|
|
Post by misterolsen on Dec 27, 2019 15:18:33 GMT -8
Thanks again, I'll sum it up so I also can get it for 7 days
|
|
|
Post by SDL on Dec 30, 2019 17:04:11 GMT -8
Ha! I'll ask, a running seven days?
BP
|
|