Answering my self.

'RainTotal' is not affected by conversion and is the correct value I have 
been looking for. Thank you for the help.


Den onsdag 26 april 2017 kl. 09:13:39 UTC+2 skrev Daniel Jönsson:
>
> Ok. This sounds promising. Because that means that there is a possibility 
> to get a correct value without accessing the database and do extra 
> calculations.
>
> At this moment I have been using the record in newArchiveRecord. And 
> before sending the values to Domoticz I use weewx.units to convert the 
> values in the archive record to metric.
>
> Is the 'rainTotal' in the archive record the same as in the loop packets?
> And will the value be effected by the conversion?
>
> If yes and no, that means all I have to do is multiply record['rainTotal'] 
> in the archive with 10 to get it in mm instead....
>
>
>
>
> Den onsdag 26 april 2017 kl. 07:38:08 UTC+2 skrev mwall:
>>
>> On Tuesday, April 25, 2017 at 4:13:56 PM UTC-4, Daniel Jönsson wrote:
>>
>>> It seems to me that 'rainTotal' is the same as rain in that table.
>>>
>>
>> the fine offset hardware reports an integer counter, which is the number 
>> of bucket tips.  the fousb driver converts that counter to 'rainTotal'
>>
>> the 'rainTotal' in fine offset loop packets is the total amount of rain, 
>> in cm, since the rain counter was last reset (or wrapped).
>>
>> the value 'rain' is the amount of rain, in cm, for the period (either 
>> loop or archive)
>>
>>

Reply via email to