From the weewx index page Its it possible to capture the valuve xyz seconds less/more than yesterday
“Today has 12 hours, 18 minutes, and 52 seconds
of daylight,
230 seconds less than yesterday”
I have tried to make my own python scripts to log sunrise sunset times and subtract them but they don’t seem as accurate as the weewx calculation
How can I log this figure?
Thanks for any advice
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8d805477-8602-4c41-98c8-c2f3ac3180b2n%40googlegroups.com.
230 seconds less than yesterday
3 minutes 50 seconds less than yesterday
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/29287063-086d-4f70-98f3-5f82d8b88a72n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/32ac0f6b-d9c3-446d-8953-43d614f6a0b9n%40googlegroups.com.
import weewx.almanac
timestamp = (some unix epoch time)
latitude = (some decimal latitude)
longitude = (some decimal longitude)
almanac = weewx.almanac.Almanac(timestamp, latitude, longitude)print(almanac.sun.visible_change)240
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/14fde8c2-7124-4a3a-bf9d-74ab5821cd8bn%40googlegroups.com.