The snippet I posted requires only that pyephem be installed. Everything
else comes with generic WeeWX. The snippet can be included anywhere.

I should note that my cut-and-paste wasn't chosen very well. The Cheetah
logic includes a closing "#end if", but not the opening "#if". The correct
snippet would look like:

## If extended almanac information is available, calculate change in daylight.
#if $almanac.hasExtras
  ## For the change in daylight, pick a string to indicate whether it is more or
  ## less than yesterday:
  #set $sun_visible_change = $almanac.sun.visible_change
  #if $sun_visible_change.raw < 0
    #set $change_str = $gettext("less than yesterday")
  #else
    #set $change_str = $gettext("more than yesterday")
  #end if
#end if

The HTML is as before.


On Sun, Jul 5, 2026 at 3:01 PM DR <[email protected]> wrote:

> Thanks, I'm off to see if it will work for me.
>
> I take it from the message by Tom Keffer that his solution didn't depend
> upon Belchertown being installed, but perhaps the  info you refer to
> will clarify for me. Again, thanks. Dale
>
>
> --
> 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/5d75e5d9-5670-414e-b5dd-406f7048eeaf%40gmail.com
> .
>

-- 
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/CAPq0zEBy%2BmHa2y%2BUEAfPFLOzWiZNJG_9nuoT3Qt8OfUpAAsSUQ%40mail.gmail.com.

Reply via email to