The Seasons skin has something you can use. Look in the file celestial.inc.

If you just want amount of daylight, try something like (NOT TESTED):

#set $sunrise_ts = $almanac.sun.rise.raw
#set $sunset_ts = $almanac.sun.set.raw
#if $sunrise_ts and $sunset_ts

    #set $today_daylight = $sunset_ts -  $sunrise_ts
    #set $seconds = $today_daylight
    #set $hours = $seconds //3600
    #set $seconds %= 3600
    #set $minutes = $seconds//60
    #set $seconds %= 60
    #set $daylight_str = "%d hours, %d minutes, %d seconds" % ($hours,
$minutes, $seconds)

    <p>Total daylight: $daylight_str</p>

#end if

-tk

On Mon, Oct 26, 2020 at 7:55 PM gjr80 <gjroder...@gmail.com> wrote:

> Hallo Kalli,
>
> The short answer is at the moment sunshine hours is not provided by WeeWX
> or WeeWX-WD. Looking at the WeeWX-WD code it appears to be something I
> started working on but never fully implemented. Can you let me know hat
> version of WeeWX and WeeWX-WD you are running. It should be a simple
> function to implement.
>
> Gary
>
> On Tuesday, 27 October 2020 at 03:16:23 UTC+10 Kalli wrote:
>
>>
>> Hello i have weewx-wd. in FreshWDL the sun is displayed. unfortunately i
>> can't find any settings for it at weewx. Can anybody help me further.
>
> --
> 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/884f712b-74c8-4bd4-8655-74610e4f94dcn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/884f712b-74c8-4bd4-8655-74610e4f94dcn%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/CAPq0zEDan5FKZ3rdj3LXbWFdXK%2BNLNKn3jVUznzi%2B5DTPmrwFA%40mail.gmail.com.

Reply via email to