John Kline schrieb am Dienstag, 20. Januar 2026 um 02:48:24 UTC+1: I will put out a forecast that guards against None for sun/moon rise/set.
I guess moonrise and moonset will be enough, as the Sun rises and sets every day (except polar regions) but the Moon does not. Having said that, do we want None to be returned if the moonset is after midnight? As an alternative you could take the timestamp of moonrise and calculate the next setting then like $almanac(almanac_time=$almanac.moon.rise).moon.next_setting. Then you catch moonset after midnight. But what I got from a short glimpse into the code of forecast_table.inc the events are filtered there if they are within the respective forecast period. A moonset after midnight would be filtered there anyway, if I got that right. -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/ef25c075-2a03-417f-9a4d-50d90ea55bacn%40googlegroups.com.
