mirror of
https://github.com/weewx/weewx.git
synced 2026-04-21 18:17:01 -04:00
fixed interval bug in wmr200 driver
This commit is contained in:
@@ -48,7 +48,7 @@ import weewx.drivers
|
||||
import weeutil.weeutil
|
||||
|
||||
DRIVER_NAME = 'WMR200'
|
||||
DRIVER_VERSION = "3.3.1"
|
||||
DRIVER_VERSION = "3.3.2"
|
||||
|
||||
|
||||
def loader(config_dict, engine): # @UnusedVariable
|
||||
@@ -2047,6 +2047,8 @@ class WMR200(weewx.drivers.AbstractDevice):
|
||||
if newrec:
|
||||
newrec['dateTime'] = oldrec['dateTime']
|
||||
newrec['usUnits'] = oldrec['usUnits']
|
||||
if 'interval' in oldrec:
|
||||
newrec['interval'] = oldrec['interval']
|
||||
return newrec
|
||||
return None
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@ Added inDewpoint to the observation group dictionary.
|
||||
|
||||
Added missing aggregation type 'min_ge'. Thanks to user Christopher McAvaney!
|
||||
|
||||
Fixed bug in wmr200 driver that resulted in archive records with no
|
||||
interval field and 'NOT NULL constraint failed: archive.interval' errors.
|
||||
|
||||
|
||||
3.7.1 03/22/2017
|
||||
|
||||
|
||||
Reference in New Issue
Block a user