Tom,
I think I see the problem. The wmr300 history code is adding "future"
records.
Note the "disagreement" in the time of the log entry vs. the time of the
record being added:
/*Dec 14 13:11:16*/ nixie weewx[14125] INFO weewx.drivers.wmr300:
New historical record for 2019-12-14 /*14:04:00*/ EST (1576350240):
1813: {'dateTime': 1576350240.0, 'usUnits': 17, 'barometer':
976.3000000000001, 'windSpeed': 1.8, 'windDir': 292.0, 'windGust':
1.8, 'windGustDir': 254.0, 'inTemp': 21.1, 'outTemp': 5.7,
'extraTemp1': None, 'extraTemp2': None, 'extraTemp3': None,
'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None,
'extraTemp7': None, 'inHumidity': 39.0, 'outHumidity': 73.0,
'extraHumid1': None, 'extraHumid2': None, 'extraHumid3': None,
'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None,
'extraHumid7': None, 'dewpoint': None, 'extraDewpoint1': None,
'extraDewpoint2': None, 'extraDewpoint3': None, 'extraDewpoint4':
None, 'extraDewpoint5': None, 'extraDewpoint6': None,
'extraDewpoint7': None, 'heatindex': None, 'extraHeatindex1': None,
'extraHeatindex2': None, 'extraHeatindex3': None, 'extraHeatindex4':
None, 'extraHeatindex5': None, 'extraHeatindex6': None,
'extraHeatindex7': 4.2, 'windchill': 4.2, 'rainRate': 0.0,
'rainTotal': 503.17400000000004, 'rain': 0.0, 'interval': 1.0}
/*Dec 14 13:11:16 */nixie weewx[14125] INFO weewx.manager: Added
record 2019-12-14 /*14:04:00 */EST (1576350240) to database 'weewx.sdb'
Then later, after the history is processed we see:
/*Dec 14 14:04:15*/ nixie weewx[14125] ERROR weewx.manager: Unable
to add record 2019-12-14 /*14:04:00*/ EST (1576350240) to database
'weewx.sdb': UNIQUE constraint failed: archive.dateTime
I am headed to the station to see if it needs to be adjusted from EDT to
EST. :-/
Regards,
\Leon
Leon Shaner wrote on 12/14/19 3:47 PM:
Log attached.
Thomas Keffer wrote on 12/14/19 2:19 PM:
The log sure would be useful...
On Sat, Dec 14, 2019 at 11:19 AM Leon Shaner <[email protected]
<mailto:[email protected]>> wrote:
Hey WeeWX'ers...
I've been getting a series of the following error for about an
hour each time I restart WeeWx since syncing to the latest
development branch several weeks ago:
Dec 14 13:12:14 nixie weewx[14125] ERROR weewx.manager: Unable to
add record 2019-12-14 13:12:00 EST (1576347120) to database
'weewx.sdb': UNIQUE constraint failed: archive.dateTime
The error messages occur only right after starting WeeWx and
continues on every archive interval for an hour after the weewx
restart, then the error is no longer shown.
Sure seems like a timezone ± 1 hour offset issue of some kind,
but I can't pinpoint it.
Coincidentally we crossed into Eastern Standard time a few days
before I made the upgrade.
Anyone else seeing a similar error?
Last night I sync'd to the latest development branch again and
the error persists.
I had been running under the system default Python 2.7, so this
morning I switched weewx to use Python 3.5, and the error still
persists.
Regards,
\Leon
--
Leon Shaner :: Dearborn, Michigan (iPad)
--
[email protected] - Dearborn, Michigan
--
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 [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-development/1b40f83d-3f9a-a9af-a7e0-9a374a15d64c%40isylum.org
<https://groups.google.com/d/msgid/weewx-development/1b40f83d-3f9a-a9af-a7e0-9a374a15d64c%40isylum.org?utm_medium=email&utm_source=footer>.
--
[email protected] - Dearborn, Michigan
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-development/d597904f-19ec-8004-dbda-078077129f00%40isylum.org.