If you surf the belchertown-new github you will find a file daylight.inc 
that works for me. It is included by one line in index.html.tmpl

You can take the same approach with whatever skin you wish to add 

(
https://github.com/uajqq/weewx-belchertown-new/blob/master/skins/new-belchertown/daylight.inc)

On Sunday, July 5, 2026 at 10:49:41 AM UTC-7 DR wrote:

> As I read it, the code for determining length of day and the selection 
> of longer or shorter boilerplate phrase needs to be done once a day.
>
>
> To me, best is making sure the code gets executed near the beginning of 
> each day, but not run more than needed.  So putting it inside the 
> reading of loop packets is wasteful, which is as you've said not as much 
> of a problem as it used to be with the faster processors now.
>
>
> Let me ask:  Are you running this code to do this additional tweak to 
> make WeeWx even nicer?  If you are, where did you put your snippet, 
> efficient or not?
>
>
> The table display, as I mentioned, belongs in the current.inc, but I 
> don't know where to put the other code.  Can you help?  If you don't run 
> this add  in, but have a guess as to where it might be evaluated, can 
> you share?
>
> 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/27a62a6b-2137-4d23-b62d-df737eb31247n%40googlegroups.com.

Reply via email to