As a test I replaced service ComputerMonitor with service alarm (copied from examples/alarm.py) and got a similar exception.
weewx_cmon.conf
...
[[Services]]
prep_services = weewx.engine.StdTimeSynch
data_services = ,
process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx.wxxtypes.StdDelta
archive_services = weewx.engine.StdArchive
restful_services = ""
report_services = weewx.engine.StdPrint, weewx.engine.StdReport, user.alarm.MyAlarm
I wonder if line 1624 in units.py has something to do with the error (arbitrarily, pick the US unit system:)
# Is the record None?
if record_dict is None:
# Yes. Signal a value of None and, arbitrarily, pick the US unit system:
val = None
std_unit_system = weewx.US
else:
# There is a record. Get the value, and the unit system.
val = record_dict[obs_type]
std_unit_system = record_dict['usUnits']
Op dinsdag 21 februari 2023 om 11:48:03 UTC-3 schreef Lucas Heijst: