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 See the section *Almanac <http://www.weewx.com/docs/customizing.htm#Almanac>* in the Customizing Guide. -tk On Thu, Nov 3, 2022 at 2:28 PM Karen K <kk4468...@gmail.com> wrote: > I was unsure about some results of the $alamanac tag. So I created a test > template. It is very short. It calculates the sunrise time for June 21st, > 2022: > > $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+unsubscr...@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 > <https://groups.google.com/d/msgid/weewx-user/861c66cf-2db2-480f-9aa1-e54c2a6bbed6n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDwjT5QhHK0FxHfdtSuNYR%2B4LgRoYxUSfPz4eTpF6Q-bQ%40mail.gmail.com.