Hi Kalli,

Have written the code but just sorting out a couple of unrelated issues 
that are causing problems under WeeWX v3.8.0. Won't be long.

Gary

On Sunday, 1 November 2020 at 23:26:07 UTC+10 Kalli wrote:

> Hello Gir80
> I'm curious what you're doing great again.
>
> cu.Kalli
>
>
>
> Am Dienstag, 27. Oktober 2020 22:39:17 UTC+1 schrieb gjr80:
>>
>> Thanks Kalli, I will put something together and email you.
>>
>> Gary
>>
>> On Wednesday, 28 October 2020 at 01:52:30 UTC+10 Kalli wrote:
>>
>>> Gir80 I have the weewx 3.8 weewx wd v1.3 
>>>
>>> tke...@gmail.com schrieb am Dienstag, 27. Oktober 2020 um 13:40:39 
>>> UTC+1:
>>>
>>>> Never mind!
>>>>
>>>> On Tue, Oct 27, 2020 at 5:39 AM gjr80 <gjrod...@gmail.com> wrote:
>>>>
>>>>> Tom,
>>>>>
>>>>> I suspect that in this case FreshWDL is displaying sunshine hours as 
>>>>> measured by a sunshine recorder 
>>>>> <https://en.wikipedia.org/wiki/Sunshine_recorder>. Some PWS software 
>>>>> approximates sunshine hours by calculating the cumulative time for a day 
>>>>> where the solar irradiance is above a given level. From memory the 
>>>>> measurement of sunshine hours has come up a couple of times here or in 
>>>>> weewx-development.
>>>>>
>>>>> Gary
>>>>> On Tuesday, 27 October 2020 at 22:25:34 UTC+10 tke...@gmail.com wrote:
>>>>>
>>>>>> 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 <gjrod...@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+...@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+...@googlegroups.com.
>>>>>
>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/weewx-user/3ad7fb34-745e-40bd-8e65-454da4c0c701n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/weewx-user/3ad7fb34-745e-40bd-8e65-454da4c0c701n%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/a33866a0-bd20-4416-a016-137a3fbf12f5n%40googlegroups.com.

Reply via email to