The data logger is a broadcast type, meaning it outputs the current data 
every 60 seconds (ie, it is not polled by the driver).  If the weewx driver 
fails to get one or more of these data then the data base is not accurate 
and hence any daily totals will be wrong.  For me, the most important data 
is the daily rain amount, for agricultural reasons.  So if the weewx driver 
fails to get one or more records on a day, it will be updated correctly 
with the daily rain on the next successful read, assuming of course the 
driver is not down during the span across midnight.  In which case I can 
download the data from the data logger, run it through a conversion 
program, then add the missing data to the database.  At the moment what I 
am doing is letting weewx calculate the daily rain amount.  But I am also 
display signal3 which is the daily rain from the data logger.  If there is 
a discrepancy then I will notice it and fix it.  I will most likely stay 
with this approach.

Craig

On Sunday, October 1, 2023 at 11:00:50 AM UTC+13 gjr80 wrote:

> Hmm, let me throw a question back at you. Why store dayRain in the 
> database?
>
> The restx uploaders will use dayRain if available in the current archive 
> record otherwise they will manually calculate the value (dayRain does not 
> need to be saved to database for it to be available in the current archive 
> record). Today's rainfall (or for that matter any days rainfall) can be 
> displayed in a report using a tag based on the rain field, again no need 
> for historical dayRain. By all means have your driver pass dayRain 
> through, it will save a few milliseconds or less each restx upload, but I 
> don't see much other use for historical dayRain data.
>
> Gary
>
> On Saturday, 30 September 2023 at 15:16:22 UTC+10 [email protected] 
> wrote:
>
>> Thanks Gary, this helping a lot to understand the intricate details of 
>> weewx.  Given this I will update my driver to pass the daily rain as 
>> 'dayRain' and then store that as a new field in the database for later use.
>>
>> On Saturday, September 30, 2023 at 5:41:12 PM UTC+13 gjr80 wrote:
>>
>>> On Saturday, 30 September 2023 at 13:29:28 UTC+10 [email protected] 
>>> wrote:
>>>
>>> If I set the WU password to an invalid value then any posts from weewx 
>>> to WU will fail, but debug = 2 will show me the URL in the log.  That will 
>>> work for testing and eliminate any erroneous values showing up in the WU 
>>> graphs.
>>>
>>>
>>> You would think you would be pretty safe doing this, though with WU's 
>>> history nothing would surprise me. I would put a dummy station ID in as 
>>> well.
>>>
>>> Gary
>>>
>>

-- 
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/63f973c3-4a20-4586-af3e-c1538ac1adf9n%40googlegroups.com.

Reply via email to