gw1000 stopped working this morning

69 views
Skip to first unread message

Tim Tuck

unread,
Dec 23, 2021, 5:30:18 PM12/23/21
to weewx-user
Hi all,

System has been working for months and it failed this morning with this....


Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: Caught
unrecoverable exception:
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: **** 
unsupported operand type(s) for -: 'NoneType' and 'float'
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: **** 
Traceback (most recent call last):
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 214, in run
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
callback(event)
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 624, in check_loop
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
raise BreakLoop
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: **** 
weewx.engine.BreakLoop
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****  During
handling of the above exception, another exception occurred:
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: **** 
Traceback (most recent call last):
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewxd", line 157, in main
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
engine.run()
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 221, in run
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
callback(event)
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 634, in post_loop
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
self._software_catchup()
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 705, in _software_catchup
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****
self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD,
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
callback(event)
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/user/aqi/service.py", line 311, in new_archive_record
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
temp_kelvin = weewx.units.CtoK(weewx.units.FtoC(row['outTemp']))
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/units.py", line 44, in FtoC
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
return (x - 32.0) * 5.0 / 9.0
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: **** 
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****  Exiting.

System config thus...

Dec 24 09:09:52 metoffice weewx[101329] INFO __main__: Initializing
weewx version 4.5.1
Dec 24 09:09:52 metoffice weewx[101329] INFO __main__: Using Python
3.8.10 (default, Nov 26 2021, 20:14:08) #012[GCC 9.3.0]
Dec 24 09:09:52 metoffice weewx[101329] INFO __main__: Platform
Linux-5.4.0-91-generic-x86_64-with-glibc2.29
Dec 24 09:09:52 metoffice weewx[101329] INFO __main__: Locale is 'C.UTF-8'
Dec 24 09:09:52 metoffice weewx[101329] INFO __main__: PID file is
/var/run/weewx.pid
Dec 24 09:09:53 metoffice weewx[101315]:    ...done.


Any ideas ?

thanks

Tim



vince

unread,
Dec 23, 2021, 5:55:37 PM12/23/21
to weewx-user
On Thursday, December 23, 2021 at 2:30:18 PM UTC-8 ti...@skybase.net wrote:
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/user/aqi/service.py", line 311, in new_archive_record
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
temp_kelvin = weewx.units.CtoK(weewx.units.FtoC(row['outTemp']))
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****    File
"/usr/share/weewx/weewx/units.py", line 44, in FtoC
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****     
return (x - 32.0) * 5.0 / 9.0
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: **** 
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
Dec 24 09:10:25 metoffice weewx[101332] CRITICAL __main__: ****  Exiting.


Looks like you're trying to convert 'None' for outTemp to different units.
That's not going to work.
 
My 'guess' is your aqi extension is the underlying fault but that's just a guess.

We'd have to know more about your config to help much more.
Try "wee_extension --list" to list out your extensions and versions.

Tim Tuck

unread,
Dec 23, 2021, 9:31:49 PM12/23/21
to weewx...@googlegroups.com

Hi Vince,

As requested....

timt@metoffice:~$ sudo wee_extension --list
Extension Name    Version   Description
SteelSeries       2.7.6     A weeWX extension for the SteelSeries Weather Gauges.
Belchertown       1.2       A clean modern skin with real time streaming updates and interactive charts. Modeled after BelchertownWeather.com
windy             0.7       Upload weather data to Windy.
GW1000            0.4.1     WeeWX driver for GW1000/GW1100 WiFi gateways.
Rtgd              0.5.0     WeeWX support for near realtime updating of the SteelSeries Weather Gauges.
mqtt              0.23      Upload weather data to MQTT server.
aqi               1.3       Calculates air quality indexes.
timt@metoffice:~$


I'm curious as to why this should fail now since its been running for over a year now.

regards

Tim

On 24/12/21 9:55 am, vince wrote:
wee_extension --list



Tim Tuck

unread,
Dec 24, 2021, 12:42:41 AM12/24/21
to weewx...@googlegroups.com
HI all,

Problem solved. Updated AQI to latest version and everything is happy now.

Dunno why it worked until this morning  and then failed... very odd.

thanks Vince for pointing me at AQI.

regards

Tim


Reply all
Reply to author
Forward
0 new messages