mirror of
https://github.com/weewx/weewx.git
synced 2026-04-19 17:16:56 -04:00
Check for sane value of archive_delay. Remove it from weewx.conf
This commit is contained in:
@@ -476,6 +476,9 @@ class StdArchive(StdService):
|
||||
if self.archive_delay <= 0:
|
||||
raise weewx.ViolatedPrecondition("Archive delay (%.1f) must be greater than zero." %
|
||||
(self.archive_delay,))
|
||||
if self.archive_delay >= self.archive_interval / 2:
|
||||
syslog.syslog(syslog.LOG_WARNING, "engine: Archive delay (%d) is unusually long" %
|
||||
(self.archive_delay,))
|
||||
|
||||
syslog.syslog(syslog.LOG_DEBUG, "engine: Use LOOP data in hi/low calculations: %d" %
|
||||
(self.loop_hilo,))
|
||||
|
||||
@@ -281,10 +281,6 @@ version = 3.6.1
|
||||
# will be downloaded from the station. Otherwise, specify it (in seconds).
|
||||
archive_interval = 300
|
||||
|
||||
# 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.
|
||||
|
||||
Reference in New Issue
Block a user