jonathankoren / weewx-aqi

Air Quality Calculations for WeeWx
GNU General Public License v3.0
9 stars 4 forks source link

Weewx Died This Morning #31

Closed Overcon closed 1 year ago

Overcon commented 3 years ago

I am not sure what is happening, but this morning, it seems Weewx stopped working. I can reboot and it works for a little bit, then stops working. Here is the log excerpt.

This is the log after a reboot.

Sep 30 14:48:14 weewx-pi systemd[1]: Finished Update UTMP about System Runlevel Changes. Sep 30 14:48:15 weewx-pi cloud-init[1985]: Cloud-init v. 21.2-3-g899bfaa9-0ubuntu2~20.04.1 running 'modules:final' at Thu, 30 Sep 2021 20:48:15 +0000. Up 56.14 seconds. Sep 30 14:48:15 weewx-pi cloud-init[1985]: Cloud-init v. 21.2-3-g899bfaa9-0ubuntu2~20.04.1 finished at Thu, 30 Sep 2021 20:48:15 +0000. Datasource DataSourceNone. Up 56.49 seconds Sep 30 14:48:15 weewx-pi cloud-init[1985]: 2021-09-30 20:48:15,466 - cc_final_message.py[WARNING]: Used fallback datasource Sep 30 14:48:15 weewx-pi systemd[1]: Finished Execute cloud user/final scripts. Sep 30 14:48:15 weewx-pi systemd[1]: Reached target Cloud-init target. Sep 30 14:48:15 weewx-pi systemd[1]: Startup finished in 9.642s (kernel) + 46.957s (userspace) = 56.599s. Sep 30 14:48:23 weewx-pi weewx[867] DEBUG user.gw1000: Next update in 20 seconds Sep 30 14:48:23 weewx-pi weewx[867] DEBUG weewx.restx: Wunderground-RF: wait interval (20 < 80) has not passed for record 2021-09-30 14:48:23 MDT (1633034903) Sep 30 14:48:23 weewx-pi weewx[867] INFO weewx.restx: MQTT: Published record 2021-09-30 14:48:23 MDT (1633034903) Sep 30 14:48:43 weewx-pi weewx[867] DEBUG user.gw1000: Next update in 20 seconds Sep 30 14:48:43 weewx-pi weewx[867] DEBUG weewx.restx: Wunderground-RF: wait interval (40 < 80) has not passed for record 2021-09-30 14:48:43 MDT (1633034923) Sep 30 14:48:43 weewx-pi weewx[867] INFO weewx.restx: MQTT: Published record 2021-09-30 14:48:43 MDT (1633034923) Sep 30 14:49:03 weewx-pi weewx[867] DEBUG user.gw1000: Next update in 20 seconds Sep 30 14:49:03 weewx-pi weewx[867] DEBUG weewx.restx: Wunderground-RF: wait interval (60 < 80) has not passed for record 2021-09-30 14:49:03 MDT (1633034943) Sep 30 14:49:03 weewx-pi weewx[867] INFO weewx.restx: MQTT: Published record 2021-09-30 14:49:03 MDT (1633034943) Sep 30 14:49:23 weewx-pi weewx[867] DEBUG user.gw1000: Next update in 20 seconds Sep 30 14:49:23 weewx-pi weewx[867] DEBUG user.aqixtypes: UsEpaAqiXTypes.get_scalar(aqi_pm2_51_24h_avg,,) Sep 30 14:49:23 weewx-pi weewx[867] DEBUG user.aqixtypes: UsEpaAqiXTypes.get_scalar(aqi_pm2_52_24h_avg,,) Sep 30 14:49:23 weewx-pi weewx[867] DEBUG user.aqixtypes: UsEpaAqiXTypes.get_scalar 'pm2_52_24h_avg' not in record Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.wxservices: Unknown extensible type 'aqi_pm2_52_24h_avg' Sep 30 14:49:23 weewx-pi weewx[867] DEBUG user.aqixtypes: UsEpaAqiXTypes.get_scalar(aqi_pm2_51_instant,,) Sep 30 14:49:23 weewx-pi weewx[867] DEBUG user.aqixtypes: UsEpaAqiXTypes.get_scalar(aqi_pm2_52_instant,,) Sep 30 14:49:23 weewx-pi weewx[867] DEBUG user.aqixtypes: UsEpaAqiXTypes.get_scalar 'pm2_52' not in record Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.wxservices: Unknown extensible type 'aqi_pm2_52_instant' Sep 30 14:49:23 weewx-pi weewx[867] INFO weewx.engine: Main loop exiting. Shutting engine down. Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.restx: Shut down WeatherCloud thread. Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.restx: Shut down OWM thread. Sep 30 14:49:23 weewx-pi weewx[867] INFO weewx.restx: MQTT: Published record 2021-09-30 14:49:23 MDT (1633034963) Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.restx: Shut down MQTT thread. Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.restx: Shut down AWEKAS thread. Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.restx: Shut down WOW thread. Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.restx: Shut down CWOP thread. Sep 30 14:49:23 weewx-pi weewx[867] DEBUG weewx.restx: Shut down PWSWeather thread. Sep 30 14:49:24 weewx-pi weewx[867] INFO weewx.restx: Wunderground-RF: Published record 2021-09-30 14:49:23 MDT (1633034963) Sep 30 14:49:24 weewx-pi weewx[867] DEBUG weewx.restx: Shut down Wunderground-RF thread. Sep 30 14:49:24 weewx-pi weewx[867] DEBUG weewx.restx: Shut down StationRegistry thread. Sep 30 14:49:24 weewx-pi weewx[867] INFO user.gw1000: Gw1000Collector thread has been terminated Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Caught unrecoverable exception: Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: unsupported operand type(s) for -: 'NoneType' and 'float' Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Traceback (most recent call last): Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 214, in run Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet)) Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 245, in dispatchEvent Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: callback(event) Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 624, in check_loop Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: raise BreakLoop Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: weewx.engine.BreakLoop Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: During handling of the above exception, another exception occurred: Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Traceback (most recent call last): Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 640, in post_loop Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: self._catchup(self.engine.console.genArchiveRecords) Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 687, in _catchup Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: for record in generator(lastgood_ts): Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/drivers/init.py", line 30, in genArchiveRecords Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: raise NotImplementedError("Method 'genArchiveRecords' not implemented") Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: NotImplementedError: Method 'genArchiveRecords' not implemented Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: During handling of the above exception, another exception occurred: Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Traceback (most recent call last): Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewxd", line 157, in main Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: engine.run() Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 221, in run Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: self.dispatchEvent(weewx.Event(weewx.POST_LOOP)) Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 245, in dispatchEvent Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: callback(event) Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 642, in post_loop Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: self._software_catchup() Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 705, in _software_catchup Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/engine.py", line 245, in dispatchEvent Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: callback(event) Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/user/aqi/service.py", line 311, in new_archive_record Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: temp_kelvin = weewx.units.CtoK(weewx.units.FtoC(row['outTemp'])) Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: File "/home/weewx/bin/weewx/units.py", line 44, in FtoC Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: return (x - 32.0) * 5.0 / 9.0 Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: TypeError: unsupported operand type(s) for -: 'NoneType' and 'float' Sep 30 14:49:24 weewx-pi weewx[867] CRITICAL main: Exiting. Sep 30 15:02:21 weewx-pi systemd[1]: Starting Cleanup of Temporary Directories... Sep 30 15:02:22 weewx-pi systemd[1]: systemd-tmpfiles-clean.service: Succeeded. Sep 30 15:02:22 weewx-pi systemd[1]: Finished Cleanup of Temporary Directories. ^C

jonathankoren commented 3 years ago

What version are you using?

What sensor is this?

This is saying that you don't have an exterior temperature.

This worked until today?

Have you tried disabling weewx-aqi?

Overcon commented 3 years ago

I just downloaded the one from GitHub and installed it over the other one (which I had installed in July of this year). But it broke this morning, around 4:53 AM.

Is there a way I can get a version number?

From: jonathankoren @.> Sent: Thursday, September 30, 2021 5:23 PM To: jonathankoren/weewx-aqi @.> Cc: Overcon @.>; Author @.> Subject: Re: [jonathankoren/weewx-aqi] Weewx Died This Morning (#31)

What version are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jonathankoren/weewx-aqi/issues/31#issuecomment-931774799 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEPSHQZMVXDSWLOD4ZNXF3UETWNJANCNFSM5FDHH6ZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/ACEPSHRA4VJTJM6ULYDQBY3UETWNJA5CNFSM5FDHH6ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG6E4CTY.gif

jonathankoren commented 3 years ago

It's probably 1.3 if you downloaded it recently.

I just pushed 1.4. Try that.