'wee_device --set-interval=5'
[FineOffsetUSB]# This section is for the Fine Offset series of weather stations.polling_mode = PERIODIC# The station model, e.g., WH1080, WS1090, WS2080, WH3081model = WS2080# How often to poll the station for data, in secondspolling_interval = 1800# The driver to use:driver = weewx.drivers.fousb
...............[StdArchive]# If the station hardware supports data logging then the archive interval# will be downloaded from the station. Otherwise, specify it (in seconds).archive_interval = 1800# How long to wait (in seconds) before processing new archive data. Must# be greater than zero.archive_delay = 15# If possible, new archive records are downloaded from the station# hardware. If the hardware does not support this, then new archive# records will be generated in software.# Set the following to "software" to force software record generation.record_generation = hardware# Whether to include LOOP data in hi/low statisticsloop_hilo = True# The data binding used to save archive recordsdata_binding = wx_binding
Thank you for your answer.
I assume it is meant to be polling_interval=1800 to poll every 30 minutes.
I need weewx to contact the console every 30 minutes and download in bulk the individual 5 minute appart readings that were storred in the console from the station over the last 30 minutes.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/s1XmmtTP530/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Exactly this is is the use case but goes down to hard disks standby.The data base is installed on a RAID5 which during day time does various IOPS during about 60% of the time, but during night is idle almost 95% of the time, hence the disks get parked and the power consumption goes down to 25W total (compared to 70W when disks are spinning).Running weewx every five minutes means that the data must be written in the data base.
On Tuesday, March 14, 2017 at 2:08:39 PM UTC-4, Theophanis Kontogiannis wrote:Exactly this is is the use case but goes down to hard disks standby.The data base is installed on a RAID5 which during day time does various IOPS during about 60% of the time, but during night is idle almost 95% of the time, hence the disks get parked and the power consumption goes down to 25W total (compared to 70W when disks are spinning).Running weewx every five minutes means that the data must be written in the data base.
thank you for the explanation.
when the driver polls the station, it asks only for the current values; polling_interval controls how often the driver queries for current data, not historical records.
weewx has no mechanism to say "read historical data every x minutes/hours/days"; the driver only reads historical data when weewx starts up.
fine offset 10xx/20xx/30xx stations send data no more frequently than 48 seconds (so you could use polling_interval of 48 seconds instead of 60, if you want)
on the hardware, archive_interval determines how often the hardware aggregates 48-second readings into records. in weewx, archive_interval does the same thing, but it also determines how often reports will be generated.
services that upload data from weewx may be tied to loop data (the 48-second readings) or archive data.
so if you do not need weewx to be running continuously during the time when you want the hard disks to sleep, you could start weewx in the morning, let it run normally during the day, then stop weewx when you want the hard disks to spin down. that would make weewx read the archive data from the station from overnight, then weewx would do record generation during the day, then the weather station would record data overnight until weewx starts up again the next day.
The second solution you suggested bellow looks more preferable in my environment. You see the root filesystem is on high end CF cards running on RAID 1, so it is fast, with steady low consumption, and available continuously day and night.
"you might consider having weewx run all the time, but send its data to a sqlite database on a tmpfs (ramdisk)."
Any guidance on what to look for to implement it?
@Tom is it still valid for the new 3.7?