Thank you for the answer ! Perfect...

Only two questions still bothers me:

- 1/ I added an “XField” field to my weewx.sdb database. This XField 
corresponds to a simple parameter such as temperature or pressure. It is 
incorporated into the "PacketsLoop".

Do we absolutely have to declare [Accumulator] in weewx.sdb as follows:







*[Accumulator]     ...     [[XField]]         accumulator = scalar        
 adder = add         merger = minmax         extractor = last*

or are there default parameters in weewx in a (new) field of unknown type 
in a database?


- 2/ Concerning "PacketsLoop": the weewx documentation stipulates that they 
can be complete (all fields in the database) or partial.

But are the two PacketsLoops below interpreted in the same way?

data1 = {'dateTime': mydatetime, 'usUnits': 'METRIC', 'outTemp': '31',* 
'outHumidity': None*, 'dewpoint': '28'}
data2 = {'dateTime': mydatetime, 'usUnits': 'METRIC', 'outTemp': '31',  
'dewpoint': '28'}

Thank you for your help - Kind regards

Le samedi 6 janvier 2024 à 22:34:41 UTC+1, bell...@gmail.com a écrit :

> check out, https://github.com/weewx/weewx/wiki/Accumulators
>
> On Saturday 6 January 2024 at 10:27:48 UTC-5 Remy Lavabre wrote:
>
>> Good morning,
>>
>> Wishing to write a driver for WeeWX in order to automatically retrieve 
>> and integrate AWEKAS data into the weewx.sbd database, I have a question 
>> regarding the management of "PacketsLoop" data:
>>
>> The Weewx documentation states that for temperatures, it is an average of 
>> the "packetsloop" received during the time period set in weewx.conf (300 
>> seconds for example), that for rain it is the maximum of packetsloop. -> OK
>>
>> But for the other data? What about it?
>>
>> If we add personal fields to the database, such as electricity 
>> consumption. What will be the value of this field in the database -> An 
>> average of packets received, the maximum value, the last?
>>
>> And is it possible to specify to wewx (and if so where and how...), what 
>> type of result we want to have with the aggregation of a field from several 
>> loop packets?
>>
>> thank you
>>
>

-- 
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/f70a3a6c-e1c2-4860-ba31-c4d247aff561n%40googlegroups.com.

Reply via email to