You are right! 

I added the rounding to the nearest minute because I was surprised that from 
time to time, I had a sunshine duration slightly higher that the archive 
interval, due probably to the delay needed by weewx to process the archive 
records. Initially, I thought it was not logical  to have a sunshine duration 
higher than the nominal archive interval, but it is not... In that situation, 
the additional few seconds in excess attributed to one archive records will 
imply that the next record will have have its sunshine duration diminished by 
the same amount.

The important point is to have the best estimation of the sunshine duration for 
each day,  so I removed the rounding in my code.



> Le 16 juil. 2022 à 17:01, 'Peter Fletcher' via weewx-user 
> <[email protected]> a écrit :
> 
> The stored value for sunshine time has more apparent precision than is given 
> by Jacques's code, but it is probably neither more nor less accurate, since 
> its accuracy is limited by the relatively slow 'response' of the Davis sensor.
> 

-- 
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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/5B557121-9F23-43BA-8212-0F5A9BD0A737%40gmail.com.

Reply via email to