As can be seen from the log extract below WeeWX logs such errors just fine. The real problem is, as I alluded to in my earlier post, that your system is not logging anything higher in level than INFO. Hence when WeeWX caught and logged the incorrect unit problem nothing was recorded in the log as the entries were logged at the CRITICAL level.
As I suggested earlier you might like to have a look at your system logging. Gary Aug 10 03:36:13 buster31 weewx[746] INFO weewx.engine: Starting main packet loop. Aug 10 03:36:16 buster31 weewx[746] DEBUG weewx.units: Unable to convert from feet to foot Aug 10 03:36:16 buster31 weewx[746] INFO weewx.engine: Main loop exiting. Shutting engine down. Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: Caught unrecoverable exception: Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** 'feet' Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** Traceback (most recent call last): Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewxd", line 157, in main Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** engine.run() Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/engine.py", line 210, in run Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet)) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/engine.py", line 245, in dispatchEvent Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** callback(event) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/wxservices.py", line 112, in new_loop_packet Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** self.do_calculations(event.packet, self.loop_calc_dict) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/wxservices.py", line 137, in do_calculations Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** new_value = weewx.xtypes.get_scalar(obs_type, data_dict, self.db_manager) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/xtypes.py", line 73, in get_scalar Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** return xtype.get_scalar(obs_type, record, db_manager) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/wxxtypes.py", line 381, in get_scalar Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** return self.altimeter(record) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/wxxtypes.py", line 430, in altimeter Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** altitude = weewx.units.convertStd(self.altitude_vt, record['usUnits']) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/units.py", line 1605, in convertStd Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** return StdUnitConverters[target_std_unit_system].convert(val_t) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/units.py", line 1023, in convert Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** new_val_t = convert(val_t, new_unit_type) Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** File "/home/weewx/bin/weewx/units.py", line 1569, in convert Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** conversion_func = conversionDict[val_t[1]][target_unit] Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** KeyError: 'feet' Aug 10 03:36:16 buster31 weewx[746] CRITICAL __main__: **** Exiting. On Monday, 9 August 2021 at 22:37:35 UTC+10 [email protected] wrote: > ARE YOU FREAKING KIDDING ME!!! > > So, I switched to use the manual install instead of the apt version, and > started messing around with the config, using simulator and interceptor, > etc. > It wasn't until I did only /opt/weewx/bin/weewxd (no other options) that > I then saw an error that gave me a breadcrumb. > > Turns out if the altitude config has "feet" Weewx has a tendency to crash. > Changed it to "foot" launched using /opt/weewx/bin/weewxd, no more error, > and the process did not die. > > Modified /etc/weewx/weewx.conf, made sure the GW1000 driver was chosen, > systemctl restart weewx, and the process continues to run, and I can see > data collection in the messages log. > > Thanks for not putting that key error in the messages log Weewx. sigh... > > Thanks for the help. grrrrrr. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/00aba6c3-2f2b-4db4-8327-f9f45c7ee68dn%40googlegroups.com.
