Weewx with netatmo, hanging suddenly

253 views
Skip to first unread message

Bent Jensen

unread,
Sep 4, 2018, 2:09:02 AM9/4/18
to weewx-user
I have a problem with my installation of weewx. It  hangs at random. There is no special time, some times it's after running for 2 hours sometimes it's after running almost a Whole day. And the peculiar thing is it is not stopping weewx, it just doesn't publish html anymore and it is not making entries in the log anymore. But I can restart it and everything works as supposed for a while again.

I'm running weewx with a netatmo with rain gauge and wind gauge. I'm not superimpressed with netatmo, but it is a hell of a lot cheaper than Davis Vantage Pro2. And for me it's just for fun.

The log doesn't seem to be of any help.

Log:

Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: netatmo: netatmo-client: next update in 300 seconds
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: netatmo: MainThread: data: {u'70:ee:50:2f:0b:ee.NAMain.CO2': 2002, u'05:00:00:04:d8:c6.NAModule3.last_seen': 1536012400, u'70:ee:50:2f:0b:ee.NAMain.module_nam$
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: netatmo: MainThread: packet: {'outHumidity': 87, 'wifi_status': 45, 'out_battery_vp': 5920, 'rainBatteryStatus': 99, 'co2': 2002, 'outTempBatteryStatus': 97, $
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: manager: Added record 2018-09-04 00:40:00 CEST (1536014400) to database 'weewx.sdb'
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: manager: Added record 2018-09-04 00:40:00 CEST (1536014400) to daily summary in 'weewx.sdb'
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: restx: StationRegistry: wait interval (39600 < 604800) has not passed for record 2018-09-04 00:40:00 CEST (1536014400)
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: reportengine: Running reports for latest time in the database.
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: reportengine: Running report StandardReport
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report StandardReport
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgener$
Sep  4 00:41:35 bnj-desktop-haven weewx[14399]: manager: Daily summary version is 2.0
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: restx: Wunderground-PWS: Published record 2018-09-04 00:40:00 CEST (1536014400)
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: cheetahgenerator: Generated 14 files for report StandardReport in 0.69 seconds
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: manager: Daily summary version is 2.0
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: imagegenerator: Generated 12 images for StandardReport in 0.30 seconds
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: copygenerator: copied 0 files to /var/www/detlillehus.info/web/weewx
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: reportengine: Running report FTP
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: ftpgenerator: FTP upload not requested. Skipped.
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: reportengine: Running report RSYNC
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Sep  4 00:41:36 bnj-desktop-haven weewx[14399]: rsyncgenerator: rsync upload not requested. Skipped.
Sep  4 00:46:36 bnj-desktop-haven weewx[14399]: netatmo: netatmo-client: url: https://api.netatmo.net/api/getstationsdata data: access_token=5b4f50a7ac34a571728b5a93%7C4db72282832247637739e5be7c1a4096 hdr: $
Sep  4 00:46:37 bnj-desktop-haven weewx[14399]: netatmo: netatmo-client: resp_obj: {u'body': {u'user': {u'mail': u'neu...@bnjpro.dk', u'administrative': {u'lang': u'en-GB', u'reg_locale': u'da-DK', u'windu$
Sep  4 00:46:37 bnj-desktop-haven weewx[14399]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}

Do any of you guys see any obvious problems in the log? I see it complaints about a wait interval that has not passed, but it doesn't seem to be the problem because in all the other log instances the same record seem not to pass, but weewx runs anyway.

Any thoughts?

Thomas Keffer

unread,
Sep 4, 2018, 8:04:17 AM9/4/18
to weewx-user
I'm not sure what part of the log we are looking at. 

Is this a typical entry while it is "hanging?" If so, it is creating HTML pages. Look in /var/www/detlillehus.info/web/weewx for them.

Or, is this the log entry before it hangs? If so, what comes after this entry? 

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bent Jensen

unread,
Sep 4, 2018, 9:51:55 AM9/4/18
to weewx-user
I Know it produces html and where the are. But all of a sudden it stop generating, which can be seen from the timestamp on the html pages.

But I took a new approach. I have started all over by changing the database to a mysql database. I know all my measures until.now are lost, but it has just been running for a month while I have configured and tested the weeds.

And if it runs now, I know it has to do with the database. And I'm more confident with a mysql database and the tools for maintenance of a mysql database anyways.

And to be honest weewx is awesome. I will continue to improve my html pages from the weewx. I have allready made a display with a raspi to work as a kiosk showing some data from weewx. A display that is not available for netatmo as it is meant to be a network device only. Here weewx comes as a life saver.

So for now I'll hold my breath and hope changing database does the trick.

Best regards
Bent

Thomas Keffer

unread,
Sep 4, 2018, 10:38:12 AM9/4/18
to weewx-user
Still confused. The log entry clearly shows a new record being entered into the database with timestamp 00:40:00 CST, and then the HTML and images being generated. Are you saying that the generated pages are showing an older timestamp?

It would help if you could explain the context of the log.

-tk

Bent Jensen

unread,
Sep 4, 2018, 3:48:00 PM9/4/18
to weewx-user
But it did not generate pages. The log shows the last generation of pages. This log stayed and showed this output for several hours, where weewx was still running when checking the running services (with: service --status-all), but not making new pages or log output.

But the approach of using a new database seems to work, At least it has been running for several hours now. If it still works tomorrow morning, I'll begin to believe that it did the trick.

So until I've seen it running for longer than 24 hours, don't give it any more thoughts. :-)

Bent

Bent Jensen

unread,
Sep 5, 2018, 3:41:15 AM9/5/18
to weewx-user
Well even though I've changed to MySQL as the database, it still stops all of a sudden.

Here is the log:

Sep  5 04:24:08 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep  5 04:24:08 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: next update in 300 seconds
Sep  5 04:24:08 bnj-desktop-haven weewx[19143]: netatmo: MainThread: data: {u'70:ee:50:2f:0b:ee.NAMain.CO2': 2206, u'05:00:00:04:d8:c6.NAModule3.last_seen': 1536113824, u'70:ee:50:2f:0b:ee.NAMain.module_name': u'Inde', u'05:00:00:04:d8:c6.NAModule3.module_name': u'Regn', u'06:00:00:02:6c:ac.NAModule2.last_seen': 1536112889, u'02:00:00:2f:3b:02.NAModule1.Temperature': 12.2, u'06:00:00:02:6c:ac.NAModule2.battery_percent': 93, u'70:ee:50:2f:0b:ee.NAMain.Noise': 35, u'05:00:00:04:d8:c6.NAModule3.time_utc': 1536113811, u'05:00:00:04:d8:c6.NAModule3._id': u'05:00:00:04:d8:c6', u'02:00:00:2f:3b:02.NAModule1.battery_percent': 97, u'05:00:00:04:d8:c6.NAModule3.sum_rain_24': 0.0, u'70:ee:50:2f:0b:ee.NAMain.time_utc': 1536113816, u'02:00:00:2f:3b:02.NAModule1.firmware': 46, u'02:00:00:2f:3b:02.NAModule1.rf_status': 70, u'70:ee:50:2f:0b:ee.NAMain.co2_calibrating': False, u'05:00:00:04:d8:c6.NAModule3.battery_vp': 5974, u'05:00:00:04:d8:c6.NAModule3.last_setup': 1531927585, u'02:00:00:2f:3b:02.NAModule1.last_setup': 1531925072, u'70:ee:50:2f:0b:ee.NAMain.date_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Pressure': 1020.9, u'05:00:00:04:d8:c6.NAModule3.firmware': 8, u'06:00:00:02:6c:ac.NAModule2.firmware': 18, u'70:ee:50:2f:0b:ee.NAMain.last_status_store': 1536113834, u'06:00:00:02:6c:ac.NAModule2._id': u'06:00:00:02:6c:ac', u'02:00:00:2f:3b:02.NAModule1.battery_vp': 5920, u'06:00:00:02:6c:ac.NAModule2.battery_vp': 5852, u'06:00:00:02:6c:ac.NAModule2.last_setup': 1531927785, u'06:00:00:02:6c:ac.NAModule2.time_utc': 1536112889, u'70:ee:50:2f:0b:ee.NAMain.firmware': 135, u'02:00:00:2f:3b:02.NAModule1._id': u'02:00:00:2f:3b:02', u'02:00:00:2f:3b:02.NAModule1.Humidity': 87, u'06:00:00:02:6c:ac.NAModule2.WindStrength': 1, u'70:ee:50:2f:0b:ee.NAMain.wifi_status': 45, u'70:ee:50:2f:0b:ee.NAMain.last_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Humidity': 64, u'05:00:00:04:d8:c6.NAModule3.sum_rain_1': 0.0, u'70:ee:50:2f:0b:ee.NAMain.AbsolutePressure': 1036.9, u'06:00:00:02:6c:ac.NAModule2.rf_status': 89, u'06:00:00:02:6c:ac.NAModule2.module_name': u'Vind', u'02:00:00:2f:3b:02.NAModule1.last_seen': 1536113824, u'02:00:00:2f:3b:02.NAModule1.module_name': u'Ude', u'06:00:00:02:6c:ac.NAModule2.WindAngle': 90, u'02:00:00:2f:3b:02.NAModule1.time_utc': 1536113773, u'70:ee:50:2f:0b:ee.NAMain._id': u'70:ee:50:2f:0b:ee', u'05:00:00:04:d8:c6.NAModule3.battery_percent': 99, u'06:00:00:02:6c:ac.NAModule2.GustStrength': 1, u'70:ee:50:2f:0b:ee.NAMain.Temperature': 23.2, u'70:ee:50:2f:0b:ee.NAMain.last_upgrade': 1531925026, u'05:00:00:04:d8:c6.NAModule3.rf_status': 76, u'05:00:00:04:d8:c6.NAModule3.Rain': 0.0, u'06:00:00:02:6c:ac.NAModule2.GustAngle': 90}
Sep  5 04:24:08 bnj-desktop-haven weewx[19143]: netatmo: MainThread: packet: {'outHumidity': 87, 'wifi_status': 45, 'out_battery_vp': 5920, 'rainBatteryStatus': 99, 'co2': 2206, 'outTempBatteryStatus': 97, 'inTemp': 23.2, 'wind_rf_status': 89, 'rain_total': 0.0, 'windGustDir': 90, 'noise': 35, 'rain_rf_status': 76, 'rain': 0.0, 'pressure': 1036.9, 'rain_battery_vp': 5974, 'usUnits': 16, 'out_rf_status': 70, 'wind_battery_vp': 5852, 'windBatteryStatus': 93, 'dateTime': 1536114249, 'windDir': 90, 'outTemp': 12.2, 'windSpeed': 1, 'inHumidity': 64, 'windGust': 1}
Sep  5 04:24:08 bnj-desktop-haven weewx[19143]: manager: Added record 2018-09-05 04:20:00 CEST (1536114000) to database 'archive_mysql'
Sep  5 04:24:08 bnj-desktop-haven weewx[19143]: manager: Added record 2018-09-05 04:20:00 CEST (1536114000) to daily summary in 'archive_mysql'
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: restx: StationRegistry: wait interval (56700 < 604800) has not passed for record 2018-09-05 04:20:00 CEST (1536114000)
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: reportengine: Running reports for latest time in the database.
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: reportengine: Running report StandardReport
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report StandardReport
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: manager: Daily summary version is 2.0
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: restx: Wunderground-PWS: Published record 2018-09-05 04:20:00 CEST (1536114000)
Sep  5 04:24:09 bnj-desktop-haven weewx[19143]: cheetahgenerator: Generated 14 files for report StandardReport in 0.92 seconds
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: manager: Daily summary version is 2.0
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: imagegenerator: Generated 12 images for StandardReport in 0.38 seconds
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: copygenerator: copied 0 files to /var/www/detlillehus.info/web/weewx
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: reportengine: Running report FTP
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: ftpgenerator: FTP upload not requested. Skipped.
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: reportengine: Running report RSYNC
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Sep  5 04:24:10 bnj-desktop-haven weewx[19143]: rsyncgenerator: rsync upload not requested. Skipped.
Sep  5 04:29:09 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: url: https://api.netatmo.net/api/getstationsdata data: access_token=5b4f50a7ac34a571728b5a93%7Ca3c730d0d29adb3f03a7f8c26ca25605 hdr: {'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'}
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: resp_obj: {u'body': {u'user': {u'mail': u'neu...@bnjpro.dk', u'administrative': {u'lang': u'en-GB', u'reg_locale': u'da-DK', u'windunit': 2, u'feel_like_algo': 0, u'pressureunit': 0, u'country': u'DA_DK', u'unit': 0}}, u'devices': [{u'last_setup': 1531925025, u'data_type': [u'Temperature', u'CO2', u'Humidity', u'Noise', u'Pressure'], u'last_upgrade': 1531925026, u'firmware': 135, u'date_setup': 1531925025, u'modules': [{u'last_setup': 1531925072, u'rf_status': 70, u'data_type': [u'Temperature', u'Humidity'], u'last_message': 1536114434, u'firmware': 46, u'dashboard_data': {u'date_min_temp': 1536114389, u'Temperature': 12.1, u'time_utc': 1536114389, u'temp_trend': u'down', u'Humidity': 87, u'date_max_temp': 1536098700, u'min_temp': 12.1, u'max_temp': 15.2}, u'module_name': u'Ude', u'battery_vp': 5918, u'_id': u'02:00:00:2f:3b:02', u'type': u'NAModule1', u'battery_percent': 97, u'last_seen': 1536114389}, {u'last_setup': 1531927585, u'rf_status': 78, u'data_type': [u'Rain'], u'last_message': 1536114434, u'firmware': 8, u'dashboard_data': {u'time_utc': 1536114414, u'sum_rain_24': 0, u'sum_rain_1': 0, u'Rain': 0}, u'module_name': u'Regn', u'battery_vp': 5978, u'_id': u'05:00:00:04:d8:c6', u'type': u'NAModule3', u'battery_percent': 99, u'last_seen': 1536114414}, {u'last_setup': 1531927785, u'rf_status': 89, u'data_type': [u'Wind'], u'last_message': 1536112889, u'firmware': 18, u'dashboard_data': {u'date_max_wind_str': 1536111101, u'time_utc': 1536112889, u'GustStrength': 1, u'WindStrength': 1, u'GustAngle': 90, u'max_wind_str': 2, u'max_wind_angle': 66, u'WindAngle': 90}, u'module_name': u'Vind', u'battery_vp': 5852, u'_id': u'06:00:00:02:6c:ac', u'type': u'NAModule2', u'battery_percent': 93, u'last_seen': 1536112889}], u'co2_calibrating': False, u'last_status_store': 1536114439, u'wifi_status': 49, u'place': {u'timezone': u'Europe/Copenhagen', u'city': u'Ballerup', u'altitude': 28, u'location': [12.338410115797, 55.71475826527], u'country': u'DK'}, u'dashboard_data': {u'CO2': 2203, u'Temperature': 23.2, u'time_utc': 1536114422, u'pressure_trend': u'stable', u'temp_trend': u'stable', u'Humidity': 65, u'Pressure': 1020.8, u'Noise': 35, u'AbsolutePressure': 1036.8, u'date_max_temp': 1536098404, u'min_temp': 23.2, u'date_min_temp': 1536113514, u'max_temp': 24.7}, u'cipher_id': u'enc:16:wknP6vjrALv+YIQmvcMh6haIjW+L2EoNIZibmGkSFit7p8P+NyFC36iYI7aLbNhL', u'module_name': u'Inde', u'station_name': u'Det Lille Hus', u'_id': u'70:ee:50:2f:0b:ee', u'type': u'NAMain'}]}, u'status': u'ok', u'time_exec': 0.15777206420898, u'time_server': 1536114550}
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: next update in 300 seconds
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: netatmo: MainThread: data: {u'70:ee:50:2f:0b:ee.NAMain.CO2': 2203, u'05:00:00:04:d8:c6.NAModule3.last_seen': 1536114414, u'70:ee:50:2f:0b:ee.NAMain.module_name': u'Inde', u'05:00:00:04:d8:c6.NAModule3.module_name': u'Regn', u'06:00:00:02:6c:ac.NAModule2.last_seen': 1536112889, u'02:00:00:2f:3b:02.NAModule1.Temperature': 12.1, u'06:00:00:02:6c:ac.NAModule2.battery_percent': 93, u'70:ee:50:2f:0b:ee.NAMain.Noise': 35, u'05:00:00:04:d8:c6.NAModule3.time_utc': 1536114414, u'05:00:00:04:d8:c6.NAModule3._id': u'05:00:00:04:d8:c6', u'02:00:00:2f:3b:02.NAModule1.battery_percent': 97, u'05:00:00:04:d8:c6.NAModule3.sum_rain_24': 0.0, u'70:ee:50:2f:0b:ee.NAMain.time_utc': 1536114422, u'02:00:00:2f:3b:02.NAModule1.firmware': 46, u'02:00:00:2f:3b:02.NAModule1.rf_status': 70, u'70:ee:50:2f:0b:ee.NAMain.co2_calibrating': False, u'05:00:00:04:d8:c6.NAModule3.battery_vp': 5978, u'05:00:00:04:d8:c6.NAModule3.last_setup': 1531927585, u'02:00:00:2f:3b:02.NAModule1.last_setup': 1531925072, u'70:ee:50:2f:0b:ee.NAMain.date_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Pressure': 1020.8, u'05:00:00:04:d8:c6.NAModule3.firmware': 8, u'06:00:00:02:6c:ac.NAModule2.firmware': 18, u'70:ee:50:2f:0b:ee.NAMain.last_status_store': 1536114439, u'06:00:00:02:6c:ac.NAModule2._id': u'06:00:00:02:6c:ac', u'02:00:00:2f:3b:02.NAModule1.battery_vp': 5918, u'06:00:00:02:6c:ac.NAModule2.battery_vp': 5852, u'06:00:00:02:6c:ac.NAModule2.last_setup': 1531927785, u'06:00:00:02:6c:ac.NAModule2.time_utc': 1536112889, u'70:ee:50:2f:0b:ee.NAMain.firmware': 135, u'02:00:00:2f:3b:02.NAModule1._id': u'02:00:00:2f:3b:02', u'02:00:00:2f:3b:02.NAModule1.Humidity': 87, u'06:00:00:02:6c:ac.NAModule2.WindStrength': 1, u'70:ee:50:2f:0b:ee.NAMain.wifi_status': 49, u'70:ee:50:2f:0b:ee.NAMain.last_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Humidity': 65, u'05:00:00:04:d8:c6.NAModule3.sum_rain_1': 0.0, u'70:ee:50:2f:0b:ee.NAMain.AbsolutePressure': 1036.8, u'06:00:00:02:6c:ac.NAModule2.rf_status': 89, u'06:00:00:02:6c:ac.NAModule2.module_name': u'Vind', u'02:00:00:2f:3b:02.NAModule1.last_seen': 1536114389, u'02:00:00:2f:3b:02.NAModule1.module_name': u'Ude', u'06:00:00:02:6c:ac.NAModule2.WindAngle': 90, u'02:00:00:2f:3b:02.NAModule1.time_utc': 1536114389, u'70:ee:50:2f:0b:ee.NAMain._id': u'70:ee:50:2f:0b:ee', u'05:00:00:04:d8:c6.NAModule3.battery_percent': 99, u'06:00:00:02:6c:ac.NAModule2.GustStrength': 1, u'70:ee:50:2f:0b:ee.NAMain.Temperature': 23.2, u'70:ee:50:2f:0b:ee.NAMain.last_upgrade': 1531925026, u'05:00:00:04:d8:c6.NAModule3.rf_status': 78, u'05:00:00:04:d8:c6.NAModule3.Rain': 0.0, u'06:00:00:02:6c:ac.NAModule2.GustAngle': 90}
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: netatmo: MainThread: packet: {'outHumidity': 87, 'wifi_status': 49, 'out_battery_vp': 5918, 'rainBatteryStatus': 99, 'co2': 2203, 'outTempBatteryStatus': 97, 'inTemp': 23.2, 'wind_rf_status': 89, 'rain_total': 0.0, 'windGustDir': 90, 'noise': 35, 'rain_rf_status': 78, 'rain': 0.0, 'pressure': 1036.8, 'rain_battery_vp': 5978, 'usUnits': 16, 'out_rf_status': 70, 'wind_battery_vp': 5852, 'windBatteryStatus': 93, 'dateTime': 1536114550, 'windDir': 90, 'outTemp': 12.1, 'windSpeed': 1, 'inHumidity': 65, 'windGust': 1}
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: manager: Added record 2018-09-05 04:25:00 CEST (1536114300) to database 'archive_mysql'
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: manager: Added record 2018-09-05 04:25:00 CEST (1536114300) to daily summary in 'archive_mysql'
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: restx: StationRegistry: wait interval (57000 < 604800) has not passed for record 2018-09-05 04:25:00 CEST (1536114300)
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: reportengine: Running reports for latest time in the database.
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: reportengine: Running report StandardReport
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report StandardReport
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Sep  5 04:29:10 bnj-desktop-haven weewx[19143]: manager: Daily summary version is 2.0
Sep  5 04:29:11 bnj-desktop-haven weewx[19143]: restx: Wunderground-PWS: Published record 2018-09-05 04:25:00 CEST (1536114300)
Sep  5 04:29:11 bnj-desktop-haven weewx[19143]: cheetahgenerator: Generated 14 files for report StandardReport in 0.92 seconds
Sep  5 04:29:11 bnj-desktop-haven weewx[19143]: manager: Daily summary version is 2.0
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: imagegenerator: Generated 12 images for StandardReport in 0.39 seconds
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: copygenerator: copied 0 files to /var/www/detlillehus.info/web/weewx
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: reportengine: Running report FTP
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: ftpgenerator: FTP upload not requested. Skipped.
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: reportengine: Running report RSYNC
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Sep  5 04:29:12 bnj-desktop-haven weewx[19143]: rsyncgenerator: rsync upload not requested. Skipped.
Sep  5 04:34:10 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep  5 04:34:10 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: next update in 300 seconds
Sep  5 04:34:10 bnj-desktop-haven weewx[19143]: netatmo: MainThread: data: {u'70:ee:50:2f:0b:ee.NAMain.CO2': 2203, u'05:00:00:04:d8:c6.NAModule3.last_seen': 1536114414, u'70:ee:50:2f:0b:ee.NAMain.module_name': u'Inde', u'05:00:00:04:d8:c6.NAModule3.module_name': u'Regn', u'06:00:00:02:6c:ac.NAModule2.last_seen': 1536112889, u'02:00:00:2f:3b:02.NAModule1.Temperature': 12.1, u'06:00:00:02:6c:ac.NAModule2.battery_percent': 93, u'70:ee:50:2f:0b:ee.NAMain.Noise': 35, u'05:00:00:04:d8:c6.NAModule3.time_utc': 1536114414, u'05:00:00:04:d8:c6.NAModule3._id': u'05:00:00:04:d8:c6', u'02:00:00:2f:3b:02.NAModule1.battery_percent': 97, u'05:00:00:04:d8:c6.NAModule3.sum_rain_24': 0.0, u'70:ee:50:2f:0b:ee.NAMain.time_utc': 1536114422, u'02:00:00:2f:3b:02.NAModule1.firmware': 46, u'02:00:00:2f:3b:02.NAModule1.rf_status': 70, u'70:ee:50:2f:0b:ee.NAMain.co2_calibrating': False, u'05:00:00:04:d8:c6.NAModule3.battery_vp': 5978, u'05:00:00:04:d8:c6.NAModule3.last_setup': 1531927585, u'02:00:00:2f:3b:02.NAModule1.last_setup': 1531925072, u'70:ee:50:2f:0b:ee.NAMain.date_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Pressure': 1020.8, u'05:00:00:04:d8:c6.NAModule3.firmware': 8, u'06:00:00:02:6c:ac.NAModule2.firmware': 18, u'70:ee:50:2f:0b:ee.NAMain.last_status_store': 1536114439, u'06:00:00:02:6c:ac.NAModule2._id': u'06:00:00:02:6c:ac', u'02:00:00:2f:3b:02.NAModule1.battery_vp': 5918, u'06:00:00:02:6c:ac.NAModule2.battery_vp': 5852, u'06:00:00:02:6c:ac.NAModule2.last_setup': 1531927785, u'06:00:00:02:6c:ac.NAModule2.time_utc': 1536112889, u'70:ee:50:2f:0b:ee.NAMain.firmware': 135, u'02:00:00:2f:3b:02.NAModule1._id': u'02:00:00:2f:3b:02', u'02:00:00:2f:3b:02.NAModule1.Humidity': 87, u'06:00:00:02:6c:ac.NAModule2.WindStrength': 1, u'70:ee:50:2f:0b:ee.NAMain.wifi_status': 49, u'70:ee:50:2f:0b:ee.NAMain.last_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Humidity': 65, u'05:00:00:04:d8:c6.NAModule3.sum_rain_1': 0.0, u'70:ee:50:2f:0b:ee.NAMain.AbsolutePressure': 1036.8, u'06:00:00:02:6c:ac.NAModule2.rf_status': 89, u'06:00:00:02:6c:ac.NAModule2.module_name': u'Vind', u'02:00:00:2f:3b:02.NAModule1.last_seen': 1536114389, u'02:00:00:2f:3b:02.NAModule1.module_name': u'Ude', u'06:00:00:02:6c:ac.NAModule2.WindAngle': 90, u'02:00:00:2f:3b:02.NAModule1.time_utc': 1536114389, u'70:ee:50:2f:0b:ee.NAMain._id': u'70:ee:50:2f:0b:ee', u'05:00:00:04:d8:c6.NAModule3.battery_percent': 99, u'06:00:00:02:6c:ac.NAModule2.GustStrength': 1, u'70:ee:50:2f:0b:ee.NAMain.Temperature': 23.2, u'70:ee:50:2f:0b:ee.NAMain.last_upgrade': 1531925026, u'05:00:00:04:d8:c6.NAModule3.rf_status': 78, u'05:00:00:04:d8:c6.NAModule3.Rain': 0.0, u'06:00:00:02:6c:ac.NAModule2.GustAngle': 90}
Sep  5 04:34:10 bnj-desktop-haven weewx[19143]: netatmo: MainThread: packet: {'outHumidity': 87, 'wifi_status': 49, 'out_battery_vp': 5918, 'rainBatteryStatus': 99, 'co2': 2203, 'outTempBatteryStatus': 97, 'inTemp': 23.2, 'wind_rf_status': 89, 'rain_total': 0.0, 'windGustDir': 90, 'noise': 35, 'rain_rf_status': 78, 'rain': 0.0, 'pressure': 1036.8, 'rain_battery_vp': 5978, 'usUnits': 16, 'out_rf_status': 70, 'wind_battery_vp': 5852, 'windBatteryStatus': 93, 'dateTime': 1536114851, 'windDir': 90, 'outTemp': 12.1, 'windSpeed': 1, 'inHumidity': 65, 'windGust': 1}
Sep  5 04:34:10 bnj-desktop-haven weewx[19143]: manager: Added record 2018-09-05 04:30:00 CEST (1536114600) to database 'archive_mysql'
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: manager: Added record 2018-09-05 04:30:00 CEST (1536114600) to daily summary in 'archive_mysql'
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: restx: StationRegistry: wait interval (57300 < 604800) has not passed for record 2018-09-05 04:30:00 CEST (1536114600)
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: reportengine: Running reports for latest time in the database.
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: reportengine: Running report StandardReport
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report StandardReport
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: engine: Station does not support reading the time
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: manager: Daily summary version is 2.0
Sep  5 04:34:11 bnj-desktop-haven weewx[19143]: restx: Wunderground-PWS: Published record 2018-09-05 04:30:00 CEST (1536114600)
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: cheetahgenerator: Generated 14 files for report StandardReport in 0.91 seconds
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: manager: Daily summary version is 2.0
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: imagegenerator: Generated 12 images for StandardReport in 0.38 seconds
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: copygenerator: copied 0 files to /var/www/detlillehus.info/web/weewx
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: reportengine: Running report FTP
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: ftpgenerator: FTP upload not requested. Skipped.
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: reportengine: Running report RSYNC
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Sep  5 04:34:12 bnj-desktop-haven weewx[19143]: rsyncgenerator: rsync upload not requested. Skipped.
Sep  5 04:39:11 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: url: https://api.netatmo.net/api/getstationsdata data: access_token=5b4f50a7ac34a571728b5a93%7Ca3c730d0d29adb3f03a7f8c26ca25605 hdr: {'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'}
Sep  5 04:39:11 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: resp_obj: {u'body': {u'user': {u'mail': u'neu...@bnjpro.dk', u'administrative': {u'lang': u'en-GB', u'reg_locale': u'da-DK', u'windunit': 2, u'feel_like_algo': 0, u'pressureunit': 0, u'country': u'DA_DK', u'unit': 0}}, u'devices': [{u'last_setup': 1531925025, u'data_type': [u'Temperature', u'CO2', u'Humidity', u'Noise', u'Pressure'], u'last_upgrade': 1531925026, u'firmware': 135, u'date_setup': 1531925025, u'modules': [{u'last_setup': 1531925072, u'rf_status': 68, u'data_type': [u'Temperature', u'Humidity'], u'last_message': 1536115049, u'firmware': 46, u'dashboard_data': {u'date_min_temp': 1536115004, u'Temperature': 12, u'time_utc': 1536115004, u'temp_trend': u'down', u'Humidity': 87, u'date_max_temp': 1536098700, u'min_temp': 12, u'max_temp': 15.2}, u'module_name': u'Ude', u'battery_vp': 5920, u'_id': u'02:00:00:2f:3b:02', u'type': u'NAModule1', u'battery_percent': 97, u'last_seen': 1536115004}, {u'last_setup': 1531927585, u'rf_status': 81, u'data_type': [u'Rain'], u'last_message': 1536115049, u'firmware': 8, u'dashboard_data': {u'time_utc': 1536115004, u'sum_rain_24': 0, u'sum_rain_1': 0, u'Rain': 0}, u'module_name': u'Regn', u'battery_vp': 5974, u'_id': u'05:00:00:04:d8:c6', u'type': u'NAModule3', u'battery_percent': 99, u'last_seen': 1536115004}, {u'last_setup': 1531927785, u'rf_status': 88, u'data_type': [u'Wind'], u'last_message': 1536114940, u'firmware': 18, u'dashboard_data': {u'max_wind_angle': 66, u'date_max_wind_str': 1536111101, u'max_wind_str': 2}, u'module_name': u'Vind', u'battery_vp': 5848, u'_id': u'06:00:00:02:6c:ac', u'type': u'NAModule2', u'battery_percent': 93, u'last_seen': 1536114940}], u'co2_calibrating': False, u'last_status_store': 1536115055, u'wifi_status': 51, u'place': {u'timezone': u'Europe/Copenhagen', u'city': u'Ballerup', u'altitude': 28, u'location': [12.338410115797, 55.71475826527], u'country': u'DK'}, u'dashboard_data': {u'CO2': 2207, u'Temperature': 23.2, u'time_utc': 1536115027, u'pressure_trend': u'stable', u'temp_trend': u'stable', u'Humidity': 65, u'Pressure': 1020.9, u'Noise': 35, u'AbsolutePressure': 1036.9, u'date_max_temp': 1536098404, u'min_temp': 23.2, u'date_min_temp': 1536113514, u'max_temp': 24.7}, u'cipher_id': u'enc:16:wknP6vjrALv+YIQmvcMh6haIjW+L2EoNIZibmGkSFit7p8P+NyFC36iYI7aLbNhL', u'module_name': u'Inde', u'station_name': u'Det Lille Hus', u'_id': u'70:ee:50:2f:0b:ee', u'type': u'NAMain'}]}, u'status': u'ok', u'time_exec': 0.08812403678894, u'time_server': 1536115151}
Sep  5 04:39:11 bnj-desktop-haven weewx[19143]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep  5 05:50:28 bnj-desktop-haven weewx[32190]:  * Stopping weewx weather system weewx
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]: engine: Received signal TERM (15).
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]: engine: Main loop exiting. Shutting engine down.
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]: engine: Shutting down StdReport thread
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]: engine: StdReport thread has been terminated
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]: restx: Shut down Wunderground-PWS thread.
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]: restx: Shut down StationRegistry thread.
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]: engine: Terminating weewx version 3.8.2
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****  Traceback (most recent call last):
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****    File "/usr/share/weewx/weewx/engine.py", line 877, in main
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****      engine.run()
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****    File "/usr/share/weewx/weewx/engine.py", line 188, in run
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****      for packet in self.console.genLoopPackets():
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****    File "/usr/share/weewx/user/netatmo.py", line 188, in genLoopPackets
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****      data = self.collector.queue.get(True, 10)
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****    File "/usr/lib/python2.7/Queue.py", line 177, in get
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****      self.not_empty.wait(remaining)
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****    File "/usr/lib/python2.7/threading.py", line 359, in wait
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****      _sleep(delay)
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****    File "/usr/share/weewx/weewx/engine.py", line 795, in sigTERMhandler
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****      raise Terminate
Sep  5 05:50:28 bnj-desktop-haven weewx[19143]:     ****  Terminate
Sep  5 05:50:33 bnj-desktop-haven weewx[32190]: .   ...done.
Sep  5 05:50:34 bnj-desktop-haven weewx[32223]:  * Starting weewx weather system weewx
Sep  5 05:50:34 bnj-desktop-haven weewx[32241]: engine: Initializing weewx version 3.8.2
Sep  5 05:50:34 bnj-desktop-haven weewx[32241]: engine: Using Python 2.7.12 (default, Dec  4 2017, 14:50:18) #012[GCC 5.4.0 20160609]
Sep  5 05:50:34 bnj-desktop-haven weewx[32241]: engine: Platform Linux-4.4.0-134-generic-x86_64-with-Ubuntu-16.04-xenial
Sep  5 05:50:34 bnj-desktop-haven weewx[32241]: engine: Locale is 'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=de_DE.UTF-8;LC_TIME=de_DE.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=de_DE.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=de_DE.UTF-8;LC_ADDRESS=de_DE.UTF-8;LC_TELEPHONE=de_DE.UTF-8;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=de_DE.UTF-8'
Sep  5 05:50:34 bnj-desktop-haven weewx[32241]: engine: pid file is /var/run/weewx.pid
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Using configuration file /etc/weewx/weewx.conf
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Debug is 1
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Initializing engine
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading station type netatmo (user.netatmo)
Sep  5 05:50:34 bnj-desktop-haven weewx[32223]:    ...done.
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: netatmo: MainThread: driver version is 0.11
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: netatmo: MainThread: sensor map is {'noise': '*.NAMain.Noise', 'extra1BatteryStatus': '*.NAModule4.battery_percent', 'outHumidity': '*.NAModule1.Humidity', 'rain': '*.NAModule3.Rain', 'extra_rf_status_1': '*.NAModule4.rf_status', 'pressure': '*.NAMain.AbsolutePressure', 'wifi_status': '*.NAMain.wifi_status', 'out_battery_vp': '*.NAModule1.battery_vp', 'rain_battery_vp': '*.NAModule3.battery_vp', 'extraHumid1': '*.NAModule4.Humidity', 'rainBatteryStatus': '*.NAModule3.battery_percent', 'extraTemp1': '*.NAModule4.Temperature', 'co2': '*.NAMain.CO2', 'out_rf_status': '*.NAModule1.rf_status', 'wind_battery_vp': '*.NAModule2.battery_vp', 'extra_battery_vp_1': '*.NAModule4.battery_vp', 'windBatteryStatus': '*.NAModule2.battery_percent', 'outTempBatteryStatus': '*.NAModule1.battery_percent', 'outTemp': '*.NAModule1.Temperature', 'windDir': '*.NAModule2.WindAngle', 'rain_rf_status': '*.NAModule3.rf_status', 'windSpeed': '*.NAModule2.WindStrength', 'inHumidity': '*.NAMain.Humidity', 'inTemp': '*.NAMain.Temperature', 'windGust': '*.NAModule2.GustStrength', 'wind_rf_status': '*.NAModule2.rf_status', 'rain_total': '*.NAModule3.sum_rain_24', 'windGustDir': '*.NAModule2.GustAngle'}
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.engine.StdTimeSynch
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.engine.StdTimeSynch
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.engine.StdConvert
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: StdConvert target unit is 0x1
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.engine.StdConvert
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.engine.StdCalibrate
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.engine.StdCalibrate
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: url: https://api.netatmo.net/oauth2/token data: username=neumann%40bnjpro.dk&grant_type=password&client_id=5b4fff79923dfe38fb8c9558&scope=read_station&client_secret=C2OYLqpERstc90C7SpndfFuLEc0UpIKBdNg255GAlN&password=%21bnjpro9651%21 hdr: {'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'}
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.engine.StdQC
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.engine.StdQC
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.wxservices.StdWXCalculate
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.wxservices.StdWXCalculate
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.engine.StdArchive
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Archive will use data binding wx_binding
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Record generation will be attempted in 'software'
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Using archive interval of 300 seconds (specified in weewx configuration)
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Use LOOP data in hi/low calculations: 1
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: manager: Daily summary version is 2.0
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Using binding 'wx_binding' to database 'archive_mysql'
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: manager: Starting backfill of daily summaries
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.engine.StdArchive
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.restx.StdStationRegistry
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: restx: StationRegistry: Station will be registered.
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.restx.StdStationRegistry
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.restx.StdWunderground
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: restx: Wunderground-PWS: Data for station IBALLERU62 will be posted
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.restx.StdWunderground
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.restx.StdPWSweather
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: restx: PWSweather: Posting not enabled.
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.restx.StdPWSweather
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.restx.StdCWOP
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: restx: CWOP: Posting not enabled.
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.restx.StdCWOP
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.restx.StdWOW
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: restx: WOW: Posting not enabled.
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.restx.StdWOW
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.restx.StdAWEKAS
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: restx: AWEKAS: Posting not enabled.
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.restx.StdAWEKAS
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.engine.StdPrint
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.engine.StdPrint
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Loading service weewx.engine.StdReport
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Finished loading service weewx.engine.StdReport
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Starting up weewx version 3.8.2
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Station does not support reading the time
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: engine: Starting main packet loop.
Sep  5 05:50:34 bnj-desktop-haven weewx[32245]: manager: Daily summary version is 2.0
Sep  5 05:50:35 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: resp_obj: {u'access_token': u'5b4f50a7ac34a571728b5a93|a3c730d0d29adb3f03a7f8c26ca25605', u'scope': [u'read_station'], u'expires_in': 10800, u'expire_in': 10800, u'refresh_token': u'5b4f50a7ac34a571728b5a93|bee33a98cc4a7ecdb3e6d0b40c8d0b4b'}
Sep  5 05:50:35 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: url: https://api.netatmo.net/api/getstationsdata data: access_token=5b4f50a7ac34a571728b5a93%7Ca3c730d0d29adb3f03a7f8c26ca25605 hdr: {'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'}
Sep  5 05:50:35 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: resp_obj: {u'body': {u'user': {u'mail': u'neu...@bnjpro.dk', u'administrative': {u'lang': u'en-GB', u'reg_locale': u'da-DK', u'windunit': 2, u'feel_like_algo': 0, u'pressureunit': 0, u'country': u'DA_DK', u'unit': 0}}, u'devices': [{u'last_setup': 1531925025, u'data_type': [u'Temperature', u'CO2', u'Humidity', u'Noise', u'Pressure'], u'last_upgrade': 1531925026, u'firmware': 135, u'date_setup': 1531925025, u'modules': [{u'last_setup': 1531925072, u'rf_status': 70, u'data_type': [u'Temperature', u'Humidity'], u'last_message': 1536119272, u'firmware': 46, u'dashboard_data': {u'date_min_temp': 1536115927, u'Temperature': 11.8, u'time_utc': 1536119259, u'temp_trend': u'stable', u'Humidity': 94, u'date_max_temp': 1536098700, u'min_temp': 11.8, u'max_temp': 15.2}, u'module_name': u'Ude', u'battery_vp': 5920, u'_id': u'02:00:00:2f:3b:02', u'type': u'NAModule1', u'battery_percent': 97, u'last_seen': 1536119259}, {u'last_setup': 1531927585, u'rf_status': 79, u'data_type': [u'Rain'], u'last_message': 1536119247, u'firmware': 8, u'dashboard_data': {u'time_utc': 1536118977, u'sum_rain_24': 0, u'sum_rain_1': 0, u'Rain': 0}, u'module_name': u'Regn', u'battery_vp': 5974, u'_id': u'05:00:00:04:d8:c6', u'type': u'NAModule3', u'battery_percent': 99, u'last_seen': 1536118977}, {u'last_setup': 1531927785, u'rf_status': 83, u'data_type': [u'Wind'], u'last_message': 1536119080, u'firmware': 18, u'dashboard_data': {u'date_max_wind_str': 1536119080, u'time_utc': 1536119080, u'GustStrength': 5, u'WindStrength': 2, u'GustAngle': 342, u'max_wind_str': 5, u'max_wind_angle': 342, u'WindAngle': 349}, u'module_name': u'Vind', u'battery_vp': 5845, u'_id': u'06:00:00:02:6c:ac', u'type': u'NAModule2', u'battery_percent': 92, u'last_seen': 1536119080}], u'co2_calibrating': False, u'last_status_store': 1536119275, u'wifi_status': 45, u'place': {u'timezone': u'Europe/Copenhagen', u'city': u'Ballerup', u'altitude': 28, u'location': [12.338410115797, 55.71475826527], u'country': u'DK'}, u'dashboard_data': {u'CO2': 1420, u'Temperature': 22.7, u'time_utc': 1536119262, u'pressure_trend': u'stable', u'temp_trend': u'down', u'Humidity': 62, u'Pressure': 1021, u'Noise': 37, u'AbsolutePressure': 1037, u'date_max_temp': 1536098404, u'min_temp': 22.7, u'date_min_temp': 1536118959, u'max_temp': 24.7}, u'cipher_id': u'enc:16:wknP6vjrALv+YIQmvcMh6haIjW+L2EoNIZibmGkSFit7p8P+NyFC36iYI7aLbNhL', u'module_name': u'Inde', u'station_name': u'Det Lille Hus', u'_id': u'70:ee:50:2f:0b:ee', u'type': u'NAMain'}]}, u'status': u'ok', u'time_exec': 0.10403680801392, u'time_server': 1536119435}
Sep  5 05:50:35 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep  5 05:50:35 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: next update in 300 seconds
Sep  5 05:50:35 bnj-desktop-haven weewx[32245]: netatmo: MainThread: data: {u'70:ee:50:2f:0b:ee.NAMain.CO2': 1420, u'05:00:00:04:d8:c6.NAModule3.last_seen': 1536118977, u'70:ee:50:2f:0b:ee.NAMain.module_name': u'Inde', u'05:00:00:04:d8:c6.NAModule3.module_name': u'Regn', u'06:00:00:02:6c:ac.NAModule2.last_seen': 1536119080, u'02:00:00:2f:3b:02.NAModule1.Temperature': 11.8, u'06:00:00:02:6c:ac.NAModule2.battery_percent': 92, u'70:ee:50:2f:0b:ee.NAMain.Noise': 37, u'05:00:00:04:d8:c6.NAModule3.time_utc': 1536118977, u'05:00:00:04:d8:c6.NAModule3._id': u'05:00:00:04:d8:c6', u'02:00:00:2f:3b:02.NAModule1.battery_percent': 97, u'05:00:00:04:d8:c6.NAModule3.sum_rain_24': 0.0, u'70:ee:50:2f:0b:ee.NAMain.time_utc': 1536119262, u'02:00:00:2f:3b:02.NAModule1.firmware': 46, u'02:00:00:2f:3b:02.NAModule1.rf_status': 70, u'70:ee:50:2f:0b:ee.NAMain.co2_calibrating': False, u'05:00:00:04:d8:c6.NAModule3.battery_vp': 5974, u'05:00:00:04:d8:c6.NAModule3.last_setup': 1531927585, u'02:00:00:2f:3b:02.NAModule1.last_setup': 1531925072, u'70:ee:50:2f:0b:ee.NAMain.date_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Pressure': 1021, u'05:00:00:04:d8:c6.NAModule3.firmware': 8, u'06:00:00:02:6c:ac.NAModule2.firmware': 18, u'70:ee:50:2f:0b:ee.NAMain.last_status_store': 1536119275, u'06:00:00:02:6c:ac.NAModule2._id': u'06:00:00:02:6c:ac', u'02:00:00:2f:3b:02.NAModule1.battery_vp': 5920, u'06:00:00:02:6c:ac.NAModule2.battery_vp': 5845, u'06:00:00:02:6c:ac.NAModule2.last_setup': 1531927785, u'06:00:00:02:6c:ac.NAModule2.time_utc': 1536119080, u'70:ee:50:2f:0b:ee.NAMain.firmware': 135, u'02:00:00:2f:3b:02.NAModule1._id': u'02:00:00:2f:3b:02', u'02:00:00:2f:3b:02.NAModule1.Humidity': 94, u'06:00:00:02:6c:ac.NAModule2.WindStrength': 2, u'70:ee:50:2f:0b:ee.NAMain.wifi_status': 45, u'70:ee:50:2f:0b:ee.NAMain.last_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Humidity': 62, u'05:00:00:04:d8:c6.NAModule3.sum_rain_1': 0.0, u'70:ee:50:2f:0b:ee.NAMain.AbsolutePressure': 1037, u'06:00:00:02:6c:ac.NAModule2.rf_status': 83, u'06:00:00:02:6c:ac.NAModule2.module_name': u'Vind', u'02:00:00:2f:3b:02.NAModule1.last_seen': 1536119259, u'02:00:00:2f:3b:02.NAModule1.module_name': u'Ude', u'06:00:00:02:6c:ac.NAModule2.WindAngle': 349, u'02:00:00:2f:3b:02.NAModule1.time_utc': 1536119259, u'70:ee:50:2f:0b:ee.NAMain._id': u'70:ee:50:2f:0b:ee', u'05:00:00:04:d8:c6.NAModule3.battery_percent': 99, u'06:00:00:02:6c:ac.NAModule2.GustStrength': 5, u'70:ee:50:2f:0b:ee.NAMain.Temperature': 22.7, u'70:ee:50:2f:0b:ee.NAMain.last_upgrade': 1531925026, u'05:00:00:04:d8:c6.NAModule3.rf_status': 79, u'05:00:00:04:d8:c6.NAModule3.Rain': 0.0, u'06:00:00:02:6c:ac.NAModule2.GustAngle': 342}
Sep  5 05:50:35 bnj-desktop-haven weewx[32245]: netatmo: MainThread: packet: {'outHumidity': 94, 'wifi_status': 45, 'out_battery_vp': 5920, 'rainBatteryStatus': 99, 'co2': 1420, 'outTempBatteryStatus': 97, 'inTemp': 22.7, 'wind_rf_status': 83, 'rain_total': 0.0, 'windGustDir': 342, 'noise': 37, 'rain_rf_status': 79, 'rain': 0.0, 'pressure': 1037, 'rain_battery_vp': 5974, 'usUnits': 16, 'out_rf_status': 70, 'wind_battery_vp': 5845, 'windBatteryStatus': 92, 'dateTime': 1536119435, 'windDir': 349, 'outTemp': 11.8, 'windSpeed': 2, 'inHumidity': 62, 'windGust': 5}
Sep  5 05:55:35 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep  5 05:55:35 bnj-desktop-haven weewx[32245]: netatmo: netatmo-client: next update in 300 seconds
Sep  5 05:55:35 bnj-desktop-haven weewx[32245]: netatmo: MainThread: data: {u'70:ee:50:2f:0b:ee.NAMain.CO2': 1420, u'05:00:00:04:d8:c6.NAModule3.last_seen': 1536118977, u'70:ee:50:2f:0b:ee.NAMain.module_name': u'Inde', u'05:00:00:04:d8:c6.NAModule3.module_name': u'Regn', u'06:00:00:02:6c:ac.NAModule2.last_seen': 1536119080, u'02:00:00:2f:3b:02.NAModule1.Temperature': 11.8, u'06:00:00:02:6c:ac.NAModule2.battery_percent': 92, u'70:ee:50:2f:0b:ee.NAMain.Noise': 37, u'05:00:00:04:d8:c6.NAModule3.time_utc': 1536118977, u'05:00:00:04:d8:c6.NAModule3._id': u'05:00:00:04:d8:c6', u'02:00:00:2f:3b:02.NAModule1.battery_percent': 97, u'05:00:00:04:d8:c6.NAModule3.sum_rain_24': 0.0, u'70:ee:50:2f:0b:ee.NAMain.time_utc': 1536119262, u'02:00:00:2f:3b:02.NAModule1.firmware': 46, u'02:00:00:2f:3b:02.NAModule1.rf_status': 70, u'70:ee:50:2f:0b:ee.NAMain.co2_calibrating': False, u'05:00:00:04:d8:c6.NAModule3.battery_vp': 5974, u'05:00:00:04:d8:c6.NAModule3.last_setup': 1531927585, u'02:00:00:2f:3b:02.NAModule1.last_setup': 1531925072, u'70:ee:50:2f:0b:ee.NAMain.date_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Pressure': 1021, u'05:00:00:04:d8:c6.NAModule3.firmware': 8, u'06:00:00:02:6c:ac.NAModule2.firmware': 18, u'70:ee:50:2f:0b:ee.NAMain.last_status_store': 1536119275, u'06:00:00:02:6c:ac.NAModule2._id': u'06:00:00:02:6c:ac', u'02:00:00:2f:3b:02.NAModule1.battery_vp': 5920, u'06:00:00:02:6c:ac.NAModule2.battery_vp': 5845, u'06:00:00:02:6c:ac.NAModule2.last_setup': 1531927785, u'06:00:00:02:6c:ac.NAModule2.time_utc': 1536119080, u'70:ee:50:2f:0b:ee.NAMain.firmware': 135, u'02:00:00:2f:3b:02.NAModule1._id': u'02:00:00:2f:3b:02', u'02:00:00:2f:3b:02.NAModule1.Humidity': 94, u'06:00:00:02:6c:ac.NAModule2.WindStrength': 2, u'70:ee:50:2f:0b:ee.NAMain.wifi_status': 45, u'70:ee:50:2f:0b:ee.NAMain.last_setup': 1531925025, u'70:ee:50:2f:0b:ee.NAMain.Humidity': 62, u'05:00:00:04:d8:c6.NAModule3.sum_rain_1': 0.0, u'70:ee:50:2f:0b:ee.NAMain.AbsolutePressure': 1037, u'06:00:00:02:6c:ac.NAModule2.rf_status': 83, u'06:00:00:02:6c:ac.NAModule2.module_name': u'Vind', u'02:00:00:2f:3b:02.NAModule1.last_seen': 1536119259, u'02:00:00:2f:3b:02.NAModule1.module_name': u'Ude', u'06:00:00:02:6c:ac.NAModule2.WindAngle': 349, u'02:00:00:2f:3b:02.NAModule1.time_utc': 1536119259, u'70:ee:50:2f:0b:ee.NAMain._id': u'70:ee:50:2f:0b:ee', u'05:00:00:04:d8:c6.NAModule3.battery_percent': 99, u'06:00:00:02:6c:ac.NAModule2.GustStrength': 5, u'70:ee:50:2f:0b:ee.NAMain.Temperature': 22.7, u'70:ee:50:2f:0b:ee.NAMain.last_upgrade': 1531925026, u'05:00:00:04:d8:c6.NAModule3.rf_status': 79, u'05:00:00:04:d8:c6.NAModule3.Rain': 0.0, u'06:00:00:02:6c:ac.NAModule2.GustAngle': 342}
Sep  5 05:55:35 bnj-desktop-haven weewx[32245]: netatmo: MainThread: packet: {'outHumidity': 94, 'wifi_status': 45, 'out_battery_vp': 5920, 'rainBatteryStatus': 99, 'co2': 1420, 'outTempBatteryStatus': 97, 'inTemp': 22.7, 'wind_rf_status': 83, 'rain_total': 0.0, 'windGustDir': 342, 'noise': 37, 'rain_rf_status': 79, 'rain': 0.0, 'pressure': 1037, 'rain_battery_vp': 5974, 'usUnits': 16, 'out_rf_status': 70, 'wind_battery_vp': 5845, 'windBatteryStatus': 92, 'dateTime': 1536119736, 'windDir': 349, 'outTemp': 11.8, 'windSpeed': 2, 'inHumidity': 62, 'windGust': 5}
Sep  5 05:55:35 bnj-desktop-haven weewx[32245]: manager: Added record 2018-09-05 05:55:00 CEST (1536119700) to database 'archive_mysql'
Sep  5 05:55:35 bnj-desktop-haven weewx[32245]: manager: Added record 2018-09-05 05:55:00 CEST (1536119700) to daily summary in 'archive_mysql'
Sep  5 05:55:36 bnj-desktop-haven weewx[32245]: reportengine: Running reports for latest time in the database.
Sep  5 05:55:36 bnj-desktop-haven weewx[32245]: reportengine: Running report StandardReport
Sep  5 05:55:36 bnj-desktop-haven weewx[32245]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report StandardReport
Sep  5 05:55:36 bnj-desktop-haven weewx[32245]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Sep  5 05:55:36 bnj-desktop-haven weewx[32245]: manager: Daily summary version is 2.0
Sep  5 05:55:36 bnj-desktop-haven weewx[32245]: restx: StationRegistry: Published record 2018-09-05 05:55:00 CEST (1536119700)
Sep  5 05:55:37 bnj-desktop-haven weewx[32245]: restx: Wunderground-PWS: Published record 2018-09-05 05:55:00 CEST (1536119700)
Sep  5 05:55:38 bnj-desktop-haven weewx[32245]: cheetahgenerator: Generated 14 files for report StandardReport in 1.94 seconds
Sep  5 05:55:39 bnj-desktop-haven weewx[32245]: manager: Daily summary version is 2.0
Sep  5 05:55:42 bnj-desktop-haven weewx[32245]: imagegenerator: Generated 24 images for StandardReport in 3.70 seconds
Sep  5 05:55:43 bnj-desktop-haven weewx[32245]: copygenerator: copied 9 files to /var/www/detlillehus.info/web/weewx
Sep  5 05:55:43 bnj-desktop-haven weewx[32245]: reportengine: Running report FTP
Sep  5 05:55:43 bnj-desktop-haven weewx[32245]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Sep  5 05:55:43 bnj-desktop-haven weewx[32245]: ftpgenerator: FTP upload not requested. Skipped.
Sep  5 05:55:43 bnj-desktop-haven weewx[32245]: reportengine: Running report RSYNC
Sep  5 05:55:43 bnj-desktop-haven weewx[32245]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Sep  5 05:55:43 bnj-desktop-haven weewx[32245]: rsyncgenerator: rsync upload not requested. Skipped.

As you can see it "hangs" at 4:34 and never makes new pages nor new log entries. I had to restart it at 5:50. And there are no clue at all in the log as to what could cause the "hanging"

Best regards
Bent

gjr80

unread,
Sep 5, 2018, 6:04:00 AM9/5/18
to weewx-user
Not a netatmo user but I suspect that the client thread in the netatmo driver encounters an error and silently dies thus leaving WeeWX running but with no data coming in so no activity happens. Suggest you make the following changes to /usr/share/weewx/user/netatmo.py (circa line 310):

    def collect_data(self):
       
"""Loop forever, wake up periodically to see if it is time to quit."""
        last_poll
= 0
       
while self._collect_data:
            now
= int(time.time())
           
if now - last_poll > self._poll_interval:
               
for tries in range(self._max_tries):
                   
try:
                       
CloudClient.get_data(self._sd, self._device_id)
                       
break
                   
except (socket.error, socket.timeout, urllib2.HTTPError, urllib2.URLError), e:
                        logerr
("failed attempt %s of %s to get data: %s" %
                               
(tries + 1, self._max_tries, e))
                        logdbg
("waiting %s seconds before retry" %
                               
self._retry_wait)
                        time
.sleep(self._retry_wait)
                    except Exception, e:
                        logerr
("Caught unrecoverable exception in netatmo-client:")
                        logerr
("    ****  %s" % e)
                else:
                    logerr
("failed to get data after %d attempts" %
                           
self._max_tries)
                last_poll
= now
                logdbg
('next update in %s seconds' % self._poll_interval)
            time
.sleep(1)


Restart WeeWX and monitor the log and post a log extract showing the error when it occurs.

Gary

Bent Jensen

unread,
Sep 11, 2018, 8:24:41 AM9/11/18
to weewx-user
Sorry Gary, I didn't see you answer. Thank you for your suggestion.

I am currently triyng your suggestion, but it might take a day or two until it shows. It almost allways happens at night (my night), but not at the same time.

But in the meantime I can tell that I have installed weewx on another server on another Network some 20 kilometers apart from the first one (since I'm just taking data from a server, I don't have to be near the weatherstation :-))
And interesting enough, both servers stop collecting data at the exact same time! which proves that weewx is not the faulty part.

So now it's just a matter of leaning back and wait to see if both my servers fail to get data, If not, your trick works. If they do it is somwhere in the driver or on the netatmo servers.

I'll get back whenever I have some news.

Bent

Bent Jensen

unread,
Sep 11, 2018, 11:52:48 AM9/11/18
to weewx-user
Ok now I got an output in the log, that is actually usefull.

Sep 11 16:31:05 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: url: https://api.netatmo.com/api/getstationsdata data: access_token=5b4f50a7ac34a571728b5a93%7C72e86abdc6201e4d8722f$
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: resp_obj: {u'body': {u'user': {u'mail': u'neu...@bnjpro.dk', u'administrative': {u'lang': u'en-GB', u'reg_locale': $
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: failed to get data after 5 attempts
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: next update in 300 seconds
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:36:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'


So the problem has to do with "time_utc". But I don't really know what to do about it. It's either the driver for netatmo or The API at netatmo servers.

Bent

mwall

unread,
Sep 11, 2018, 3:59:13 PM9/11/18
to weewx-user
On Tuesday, September 11, 2018 at 11:52:48 AM UTC-4, Bent Jensen wrote:
Ok now I got an output in the log, that is actually usefull.

Sep 11 16:31:05 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: url: https://api.netatmo.com/api/getstationsdata data: access_token=xxxx
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: resp_obj: {u'body': {u'user': {u'mail': u'neumann', u'administrative': {u'lang': u'en-GB', u'reg_locale': $
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client: Caught unrecoverable exception in netatmo-client:
Sep 11 16:31:06 bnj-desktop-haven weewx[7275]: netatmo: netatmo-client:     ****  'time_utc'

looks like the server is not sending the time.  it should have an element called time_utc, but you are not getting that.

in netatmo.py, try changing this line:

        data = {'time_utc': x['dashboard_data']['time_utc']}


to this line:

        data = {'time_utc': x['dashboard_data'].get('time_utc', 0)}


then restart.

m
 

Bent Jensen

unread,
Sep 12, 2018, 1:42:42 PM9/12/18
to weewx-user
I will try that. I'll get back with an answer in approx. 24 hours.

Bent

Bent Jensen

unread,
Sep 13, 2018, 1:38:12 AM9/13/18
to weewx-user
Well this morning at 5.00 am My server without the suggested codefixes stopped. But the one with the codefixes, seem to carry on its bussines without any complaints about "time_utc".

So for now it seems to have done the job. I'll watch it closely the coming days, but it looks promising.

I am very grateful and happy about your help, thank you.

How do I suggest the changes to the driver, so the driver can be updated for others to prevent the same headache?


Bent

mwall

unread,
Sep 13, 2018, 4:58:50 AM9/13/18
to weewx-user
On Thursday, September 13, 2018 at 1:38:12 AM UTC-4, Bent Jensen wrote:

How do I suggest the changes to the driver, so the driver can be updated for others to prevent the same headache?

you already did.  thank you!

m

Juan Antonio Mosquera

unread,
Sep 14, 2018, 6:10:24 AM9/14/18
to weewx-user
Similar problem when i enable Belchertown extension.
Sep  4 00:46:37 bnj-desktop-haven weewx[14399]: netatmo: netatmo-client: resp_obj: {u'body': {u'user': {u'mail': u'ne...@bnjpro.dk', u'administrative': {u'lang': u'en-GB', u'reg_locale': u'da-DK', u'windu$

Sep  4 00:46:37 bnj-desktop-haven weewx[14399]: netatmo: netatmo-client: cloud units: {'windunit': 2, 'unit': 0, 'pressureunit': 0}
Reply all
Reply to author
Forward
0 new messages