$current.dateTime , $almanac(almanac_time=1655805600).sunrise
Every archive period a file is created out of that template. And I collected those files.
I would expect to get the same sunrise time all the time. But I don't.
Could someone explain the reason for that behavior?
The different files for the different archive periods are (one line per file):
03.11.2022 15:40:00 , 04:52:07
03.11.2022 15:45:00 , 04:52:07
03.11.2022 15:50:00 , 04:52:06
03.11.2022 15:55:00 , 04:52:06
03.11.2022 16:00:00 , 04:52:06
03.11.2022 16:05:00 , 04:52:06
03.11.2022 16:10:00 , 04:52:06
03.11.2022 16:15:00 , 04:52:05
03.11.2022 16:20:00 , 04:52:05
03.11.2022 16:25:00 , 04:52:05
03.11.2022 16:30:00 , 04:52:05
03.11.2022 16:35:00 , 04:52:05
03.11.2022 16:40:00 , 04:52:05
03.11.2022 16:45:00 , 04:52:05
03.11.2022 16:50:00 , 04:52:04
03.11.2022 16:55:00 , 04:52:04
03.11.2022 17:00:00 , 04:52:04
03.11.2022 17:05:00 , 04:52:04
03.11.2022 17:10:00 , 04:52:04
03.11.2022 17:15:00 , 04:52:04
03.11.2022 17:20:00 , 04:52:04
03.11.2022 17:25:00 , 04:52:04
03.11.2022 17:30:00 , 04:52:04
03.11.2022 17:35:00 , 04:52:04
03.11.2022 17:40:00 , 04:52:04
03.11.2022 17:45:00 , 04:52:04
03.11.2022 17:50:00 , 04:52:04
03.11.2022 17:55:00 , 04:52:03
03.11.2022 18:00:00 , 04:52:03
03.11.2022 18:05:00 , 04:52:03
03.11.2022 18:10:00 , 04:52:03
03.11.2022 18:15:00 , 04:52:03
03.11.2022 18:20:00 , 04:52:03
03.11.2022 18:25:00 , 04:52:03
03.11.2022 18:30:00 , 04:52:03
03.11.2022 18:35:00 , 04:52:03
03.11.2022 18:40:00 , 04:52:04
03.11.2022 18:45:00 , 04:52:04
03.11.2022 18:50:00 , 04:52:04
03.11.2022 18:55:00 , 04:52:04
03.11.2022 19:00:00 , 04:52:04
03.11.2022 19:05:00 , 04:52:04
03.11.2022 19:10:00 , 04:52:04
03.11.2022 19:15:00 , 04:52:05
03.11.2022 19:20:00 , 04:52:04
03.11.2022 19:25:00 , 04:52:05
03.11.2022 19:30:00 , 04:52:04
03.11.2022 19:35:00 , 04:52:05
03.11.2022 19:40:00 , 04:52:05
03.11.2022 19:45:00 , 04:52:05
03.11.2022 19:50:00 , 04:52:05
03.11.2022 19:55:00 , 04:52:05
03.11.2022 20:00:00 , 04:52:05
03.11.2022 20:05:00 , 04:52:05
03.11.2022 20:10:00 , 04:52:05
03.11.2022 20:15:00 , 04:52:05
03.11.2022 20:20:00 , 04:52:05
03.11.2022 20:25:00 , 04:52:05
03.11.2022 20:30:00 , 04:52:05
03.11.2022 20:35:00 , 04:52:05
03.11.2022 20:40:00 , 04:52:05
03.11.2022 20:45:00 , 04:52:05
03.11.2022 20:50:00 , 04:52:05
03.11.2022 20:55:00 , 04:52:04
03.11.2022 21:00:00 , 04:52:04
03.11.2022 21:05:00 , 04:52:04
03.11.2022 21:10:00 , 04:52:04
03.11.2022 21:15:00 , 04:52:03
03.11.2022 21:20:00 , 04:52:03
03.11.2022 21:25:00 , 04:52:03
03.11.2022 21:30:00 , 04:52:02
03.11.2022 21:35:00 , 04:52:02
03.11.2022 21:40:00 , 04:52:02
03.11.2022 21:45:00 , 04:52:02
03.11.2022 21:50:00 , 04:52:02
03.11.2022 21:55:00 , 04:52:02
03.11.2022 22:00:00 , 04:52:02
03.11.2022 22:05:00 , 04:52:02
--
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/861c66cf-2db2-480f-9aa1-e54c2a6bbed6n%40googlegroups.com.
Pressure and temperature also factor into the calculation. If you want to hold them constant as well, then use something like:$current.dateTime , $almanac(almanac_time=1655805600, temperature=20.0, pressure=1010.0).sunrise
--
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/4c0df27b-1bc7-4f96-a631-8bae6435752cn%40googlegroups.com.
If you provide almanac_time, then it looks them up in the database. Otherwise, it uses the last time stamp in the database.
--
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/b2817b08-2f27-43b9-b02b-2de9123d3829n%40googlegroups.com.
$almanac(almanac_time=1655805600, temperature=$current(timestamp=1655805600).outTemp.raw, pressure=$current(timestamp=1655805600).barometer.raw).sunriseHopefully that works!
Are you just experimenting, or do you have a use case where you want the corrected sunrise at a specific time?
--
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/42990583-7baf-4178-9ba2-a7cea7915120n%40googlegroups.com.