changing time of sun & moon rise and set when using ephme

43 views
Skip to first unread message

Jos Bredek

unread,
Sep 28, 2020, 6:13:15 PM9/28/20
to weewx-user
Hi there,

I've been using weewx (v4.1.1) for some months now, and did quit some customization. I've been using neowx as a skin and figured out how to add a menu item for my cam and how to hide the inside temp and humidity (privacy issue). I also figured out how to get the timeinfo in regional format (export LANG = ...)

Lately I installed the pyephem module. It gives a nice extra on my site... however the time of set and rise of different objects is offset by 1 hour ...
After some digging it turns out pyephem gives GMT timestamps, which makes sense since that is an offset of 1 hour to my timezone (CET). The rest of my site reports the localtime however.

To keeps things consistent i would like the time on set and rise in my own time zone.

Now.. i'm a bit puzzled where to do this. I figured i shouldn't touch almanac.py. I guess it has to be somewhere in the template files then, probably by making use of localtime()? Is this the right strategy? Anyone already done the same?

CIao,
Jos

Jos Bredek

unread,
Sep 28, 2020, 6:20:59 PM9/28/20
to weewx-user
Sorry.. i turns out the time is not offset (any more). I dont know why........ maybe something with the language setting which wasnt set permanently. Now it is.


Op dinsdag 29 september 2020 om 00:13:15 UTC+2 schreef Jos Bredek:
Reply all
Reply to author
Forward
0 new messages