BobAtchley / weewx-ws6in1

weewx driver for the 6 in 1 PC weather station clones
GNU General Public License v3.0
5 stars 6 forks source link

Warning messages when WeeWX runs backfill #3

Closed ArendPWS closed 3 years ago

ArendPWS commented 3 years ago

When WeeWX has allmost finished downloading the memory content of the console after a restart, weewx gives a warning on the last entries it reads from memory. The timestamp of all of these entries lie in the future. There seems to be a timing problem between the console and the hardware I am running WeeWX on? Here is part of my log:

Sep 1 17:12:53 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598962800 Sep 1 17:12:53 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:53 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598963100 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598963400 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598963700 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598964000 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598964300 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598964600 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598964900 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598965200 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598965500 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598965800 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598966100 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598966400 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598966700 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598967000 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598967300 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598967600 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598967900 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598968200 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598968500 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598968800 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598969160 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598969400 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598969700 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598970000 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598970300 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598970600 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598970900 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598971200 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598971500 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598971800 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598972100 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598972400 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598972700 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973000 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973300 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598973300.0, 'inTemp': 22.7, 'inHumidity': 61, 'outTemp': 20.0, 'outHumidity': 52, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 239, 'pressure': 1016, 'barometer': 1019, 'UV': 5, 'dewpoint': 9.7, 'extraHumid1': 55, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.5, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973600 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598973600.0, 'inTemp': 22.7, 'inHumidity': 61, 'outTemp': 20.3, 'outHumidity': 52, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 241, 'pressure': 1016, 'barometer': 1019, 'UV': 5, 'dewpoint': 10.0, 'extraHumid1': 55, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.7, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973900 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598973900.0, 'inTemp': 22.7, 'inHumidity': 61, 'outTemp': 20.9, 'outHumidity': 51, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 1.8, 'windGust': 1.8, 'windDir': 240, 'pressure': 1016, 'barometer': 1019, 'UV': 4, 'dewpoint': 10.3, 'extraHumid1': 55, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 20.1, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598974200 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598974200.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 21.4, 'outHumidity': 48, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.3, 'windGust': 0.3, 'windDir': 246, 'pressure': 1016, 'barometer': 1019, 'UV': 4, 'dewpoint': 9.8, 'extraHumid1': 53, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 20.4, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598974500 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598974500.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 21.3, 'outHumidity': 50, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 2.5, 'windGust': 2.5, 'windDir': 220, 'pressure': 1016, 'barometer': 1019, 'UV': 4, 'dewpoint': 10.4, 'extraHumid1': 52, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 20.2, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598974800 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598974800.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 21.0, 'outHumidity': 50, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 2.8, 'windGust': 3.2, 'windDir': 233, 'pressure': 1016, 'barometer': 1019, 'UV': 5, 'dewpoint': 10.1, 'extraHumid1': 52, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 20.0, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598975100 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598975100.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 21.0, 'outHumidity': 48, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 244, 'pressure': 1016, 'barometer': 1019, 'UV': 2, 'dewpoint': 9.5, 'extraHumid1': 53, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 20.3, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598975400 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598975400.0, 'inTemp': 22.8, 'inHumidity': 60, 'outTemp': 21.1, 'outHumidity': 50, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 250, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.2, 'extraHumid1': 52, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 20.0, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598975700 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598975700.0, 'inTemp': 22.8, 'inHumidity': 60, 'outTemp': 20.8, 'outHumidity': 51, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 257, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.2, 'extraHumid1': 53, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 20.0, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598976000 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598976000.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 20.7, 'outHumidity': 52, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 3.2, 'windGust': 3.2, 'windDir': 275, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.4, 'extraHumid1': 54, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.9, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598976300 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598976300.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 20.3, 'outHumidity': 54, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 242, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.6, 'extraHumid1': 54, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.6, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598976600 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598976600.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 20.1, 'outHumidity': 54, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 247, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.4, 'extraHumid1': 55, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.7, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598976900 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598976900.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 19.8, 'outHumidity': 57, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 2.8, 'windGust': 3.6, 'windDir': 169, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.9, 'extraHumid1': 55, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.6, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598977200 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598977200.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 19.3, 'outHumidity': 57, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 1.4, 'windGust': 1.4, 'windDir': 161, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.5, 'extraHumid1': 55, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.3, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598977500 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598977500.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 19.1, 'outHumidity': 57, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 162, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.3, 'extraHumid1': 57, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.3, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598977800 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598977800.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 19.1, 'outHumidity': 58, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 162, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.5, 'extraHumid1': 57, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.1, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598978100 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598978100.0, 'inTemp': 22.6, 'inHumidity': 60, 'outTemp': 19.1, 'outHumidity': 60, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 162, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 11.1, 'extraHumid1': 58, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.2, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598978400 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598978400.0, 'inTemp': 22.6, 'inHumidity': 60, 'outTemp': 19.0, 'outHumidity': 60, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 2.5, 'windGust': 2.8, 'windDir': 124, 'pressure': 1016, 'barometer': 1019, 'UV': 0, 'dewpoint': 11.0, 'extraHumid1': 58, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.1, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598978700 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598978700.0, 'inTemp': 22.7, 'inHumidity': 60, 'outTemp': 18.8, 'outHumidity': 60, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 95, 'pressure': 1015, 'barometer': 1019, 'UV': 0, 'dewpoint': 10.8, 'extraHumid1': 58, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 18.9, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598979000 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598979000.0, 'inTemp': 22.6, 'inHumidity': 61, 'outTemp': 18.7, 'outHumidity': 61, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 219, 'pressure': 1015, 'barometer': 1018, 'UV': 0, 'dewpoint': 10.9, 'extraHumid1': 59, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 18.9, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598979300 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598979300.0, 'inTemp': 22.7, 'inHumidity': 61, 'outTemp': 18.8, 'outHumidity': 61, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 112, 'pressure': 1015, 'barometer': 1018, 'UV': 0, 'dewpoint': 11.0, 'extraHumid1': 59, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 18.9, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598979600 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598979600.0, 'inTemp': 22.7, 'inHumidity': 61, 'outTemp': 18.8, 'outHumidity': 61, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 70, 'pressure': 1015, 'barometer': 1018, 'UV': 0, 'dewpoint': 11.0, 'extraHumid1': 60, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 18.9, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598979900 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598979900.0, 'inTemp': 22.6, 'inHumidity': 61, 'outTemp': 18.9, 'outHumidity': 61, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 18, 'pressure': 1015, 'barometer': 1018, 'UV': 0, 'dewpoint': 11.1, 'extraHumid1': 60, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 18.8, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::gettint time Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598980200 Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genStartupRecords: yielding Sep 1 17:12:54 NB10 weewx[20800] WARNING weewx.engine: ignore historical record: {'usUnits': 16, 'dateTime': 1598980200.0, 'inTemp': 22.7, 'inHumidity': 61, 'outTemp': 19.0, 'outHumidity': 61, 'dayRain': 0.0, 'hourRain': 0.0, 'rain': 0.0, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 15, 'pressure': 1015, 'barometer': 1018, 'UV': 0, 'dewpoint': 11.2, 'extraHumid1': 61, 'extraHumid2': None, 'extraHumid3': None, 'extraHumid4': None, 'extraHumid5': None, 'extraHumid6': None, 'extraHumid7': None, 'extraTemp1': 19.0, 'extraTemp2': None, 'extraTemp3': None, 'extraTemp4': None, 'extraTemp5': None, 'extraTemp6': None, 'extraTemp7': None, 'interval': 300.0} Sep 1 17:12:54 NB10 weewx[20800] INFO weewx.engine: Starting main packet loop. Sep 1 17:12:54 NB10 weewx[20800] DEBUG user.ws6in1: genLoopPackets: starting read loop ... Sep 1 17:12:56 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973176 Sep 1 17:12:56 NB10 weewx[20800] DEBUG user.ws6in1: genLoopPackets: yielding Sep 1 17:12:56 NB10 weewx[20800] INFO weewx.restx: MQTT: Published record 2020-09-01 17:12:56 CEST (1598973176) Sep 1 17:12:56 NB10 weewx[20800] INFO weewx.restx: Wunderground-RF: Published record 2020-09-01 17:12:56 CEST (1598973176) Sep 1 17:13:00 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973180 Sep 1 17:13:00 NB10 weewx[20800] DEBUG user.ws6in1: genLoopPackets: yielding Sep 1 17:13:00 NB10 weewx[20800] INFO weewx.restx: MQTT: Published record 2020-09-01 17:13:00 CEST (1598973180) Sep 1 17:13:00 NB10 weewx[20800] INFO weewx.restx: Wunderground-RF: Published record 2020-09-01 17:13:00 CEST (1598973180) Sep 1 17:13:12 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973192 Sep 1 17:13:12 NB10 weewx[20800] DEBUG user.ws6in1: genLoopPackets: yielding Sep 1 17:13:12 NB10 weewx[20800] INFO weewx.restx: MQTT: Published record 2020-09-01 17:13:12 CEST (1598973192) Sep 1 17:13:12 NB10 weewx[20800] INFO weewx.restx: Wunderground-RF: Published record 2020-09-01 17:13:12 CEST (1598973192) Sep 1 17:13:24 NB10 weewx[20800] DEBUG user.ws6in1: decode::got my_time: 1598973204 Sep 1 17:13:24 NB10 weewx[20800] DEBUG user.ws6in1: genLoopPackets: yielding Sep 1 17:13:24 NB10 weewx[20800] INFO weewx.restx: MQTT: Published record 2020-09-01 17:13:24 CEST (1598973204) Sep 1 17:13:24 NB10 weewx[20800] INFO weewx.restx: Wunderground-RF: Published record 2020-09-01 17:13:24 CEST (1598973204)

BobAtchley commented 3 years ago

Looking at the log: The last warning has a reported unix time of 1598979900 = 2020-09-01 17:05:00 UTC reported in your log at 17:12:54 CEST = 15:12:54 UTC. !! This time is the recorded time taken off the console

The first local loop following this is 1598973176 = 2020-09-01 15:12:56 UTC reported at 17:12:56 CEST = 15:12:56 This time is taken off the hardware that weewx is running on

So the problem is that the console appears to have the wrong time (2 hours ahead of actual time - the difference between CEST and UTC).

The time on the console should be set by the WS6in1 driver - which gets the time from hardware you are running on.

Can you let me know what time settings you have on your console.

I run weewx on a raspberryPi set to UTC (no summer time saving), so there could be a use case I haven't adequately testedhere but I'll need some help to get to the bottom of it

ArendPWS commented 3 years ago

My console is connected to a netbook. I live in the Netherlands, so the displayed time (17:xx:xx) is the right time for me (CEST). This time (17:xx:xx) is both displayed on my netbook and the weatherstation console. As far as I remember: in the past when I disconnected the console from the netbook, after a while the time on the console went (back) to displaying UTC time and began storing new memory entries in UTC. Reconnecting the console to the netbook the time on the console was restored (after some time) to local time (CEST). So the console synchronizes the time with the netbook as it is supposed to do? But on a software restart of WeeWX something goes wrong with the timing? (I hope this will help you understand what might be going on.)

BobAtchley commented 3 years ago

The problem may be with your Netbook, can you check its set for the correct time zone (CEST)

ArendPWS commented 3 years ago

The problem may be with your Netbook, can you check its set for the correct time zone (CEST)

My time settings are fine. But I have found what causes the problem:

The console stores the records in local time, not UTC. Your function "get_archive_epoch" assumes that all records are stored in UTC in the console. It is all about the bold part in your calculation:

my_epoch = (datetime(my_year, my_month, my_day, my_hour, my_min, my_sec) - datetime(1970, 1, 1)).total_seconds()

datetime(1970, 1, 1) is only UTC, so the calculation needs to evaluate if the console is running at local time and apply a correction as needed. In my case it would need a correction (UTC+2 hours) at the moment. Timing problems can be really hard to solve, I will try to help you to find a solution.

ArendPWS commented 3 years ago

The solution wasn't as hard as I thought it would be. You can see the changes in my fork. Tested and working fine now. If you want to pull/merge please let me know. Many thanks to stack overflow:

How to convert current date to epoch timestamp?

BobAtchley commented 3 years ago

The driver currently sets the time on the console to UTC time and assumes the console will apply the time zone difference. It sounds like the netbook is incorrectly using local time to update the consoles time. If the netbook has the correct time zone settings then this is a console defect.
I think its unusual to have both a netbook and weewx device attached. Your 'fix' should work for this combination, although it will obviously have problems when summer time ends and begins. You probably should disable the drivers 'setTime' function as well as that will change the time to UTC time every 24 hours, briefly overriding the Netbook set time.

ArendPWS commented 3 years ago

Ok, I have been thinking about what you previous wrote about your setup:

I run weewx on a raspberryPi set to UTC (no summer time saving), so there could be a use case I haven't adequately testedhere but I'll need some help to get to the bottom of it

This means that the display of your console shows time in UTC? Using only UTC would explain the calculation you used in function "get_archive_epoch".

I get the feeling you wrote your driver assuming users would only use it on a raspberry Pi using UTC? If that's the case, it starts to make sense to me why I ran into this issue.

ArendPWS commented 3 years ago

It would have been nice if there had been some more information on configuring your hardware time setup in the WeeWX documentation. Or maybe there already is and I missed it completely.

BobAtchley commented 3 years ago

Please ignore my last comments I misinterpreted your setup and thought you had a peculiar setup.

So if I have understood we have very similar setups. My hardware is a raspberry-pi yours is a netbook/laptop, both running slightly different versions of Linux.

The only difference we need to focus on is the time setup. I use UTC with no summer time saving You use CEST (UTC+2) - Not sure if you use summer time saving or not (you probably do as that would be the normal default)

The time on our consoles is set by the WS6in1 driver. The interface from the driver to the console does not provide any means to indicate a timezone.

The time interface between the driver and weewx is UTC only. All the graphs etc are done by weewx not the driver.

The console includes "Time zone for Sunrise / Sunset" in the "Setting Clock Manually" section. I assume you need to set this to +2 to get accurate sunrise/sunset times but it won't effect the actual time displayed.

What I thought I had implemented was setting the console to UTC time and assumed (incorrectly) that the console time zone would correct this for the local time. This is how it should work.

So it looks like 2 things are wrong at the moment 1) the driver is setting the console to local time instead of UTC as I had thought 2) My assumption about how the console would correct for local time is wrong.

So the solution: Because of point 2), the driver need to do 2 things 1) set the time on the console to local time (great the driver is accidentally already doing this) 2) When getting the time from the console for recovery of data it needs to correct for the difference between local time and UTC time.

Problem

When summer time saving starts/ends there will be a 1 hour shift in the recorded data (this is why the console should work on UTC and correct for the timezone locally. but it doesn't). I'm not sure I can do anything about this without some complex algorithms (and I'd much rather keep the solution simple). So we can live with this issue or recommend that the summer time saving is not used.

I suspect for most people they can live with it as they keep weewx running continuously and would only notice if they had a failure when the time changes.

For you this is a bigger problem as you stop weewx every night. My recommendation would be to not stop it every night. The same information is in the database, so you could write a simple sql script to extract the information from the database into a spreadsheet (I have a mysql script somewhere that does something similar if that is of interest)

I will produce a new driver version and include some detail about time setup in the readme.

BobAtchley commented 3 years ago

This has been fixed in version 0.9 and the problem above noted in the Readme.txt file