fixed interval bug in wmr200 driver

This commit is contained in:
Matthew Wall
2017-04-27 02:03:29 -04:00
parent 922f636c53
commit d4ff72d8dc
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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