High rainRate each archive interval

57 views
Skip to first unread message

Florentin Prevost

unread,
Aug 14, 2020, 1:55:33 PM8/14/20
to weewx-development
Hi,

I saw that Weewx make an average with each packets in genLoopPackets. But when I see in archive table, I've not the high rainRate. How can I have the high rainRate for each archive ?

If I make a sql request on daily table, I've just the high rainRate day with the timestamp.

Thank's a lot

Tom Keffer

unread,
Aug 14, 2020, 2:08:18 PM8/14/20
to Florentin Prevost, weewx-development
By default, the accumulators emit the average value seen over an archive period. This can be changed to the highest value by putting this at the bottom of your weewx.conf file:

[Accumulator]
  [[rainRate]]
    extractor = max

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/c165de90-7dd6-4917-a1d5-017af13f5524o%40googlegroups.com.

flor...@pre-vost.fr

unread,
Aug 14, 2020, 6:21:21 PM8/14/20
to weewx-development
Hi ! 

Thank you very much ! 

To push my driver, how can I set this with install.py when install the driver like this ? 

config={
'WLLDriver': {
'driver' : 'user.WLLDriver',
'max_tries' : 10,
'retry_wait' : 5,
'poll_interval' : 10,
'udp_enable' : 0,
'hostname' : 'change_me',
'time_out' : 10,
'device_id' : '1:iss',
'wl_apikey' : 'change_me',
'wl_apisecret' : 'change_me',
'wl_stationid' : 'change_me',
'wl_archive_interval' : 5,

},

Tom Keffer

unread,
Aug 14, 2020, 8:12:44 PM8/14/20
to flor...@pre-vost.fr, weewx-development
config={
  'WLLDriver': {
    'driver' : 'user.WLLDriver',
    'max_tries' : 10,
    'retry_wait' : 5,
    'poll_interval' : 10,
    'udp_enable' : 0,
    'hostname' : 'change_me',
    'time_out' : 10,
    'device_id' : '1:iss',
    'wl_apikey' : 'change_me',
    'wl_apisecret' : 'change_me',
    'wl_stationid' : 'change_me',
    'wl_archive_interval' : 5,
  },
  'Accumulator' : {
    'rainRate' : {
      'extractor' : 'max'
    }
  }
}
    

flor...@pre-vost.fr

unread,
Aug 26, 2020, 7:22:23 AM8/26/20
to weewx-development
Nice ! 

You can close this thread :) 

Reply all
Reply to author
Forward
0 new messages