Tom,
The following three weewx programs got a critical error after startup of weewx version 4.0.0b14.
CRITICAL __main__: Database OperationalError exception: (1054, "Unknown column 'rain' in 'field list'")
weewx_klim formerly running version 4.0.0.a4
weewx_mben formerly running version 3.9.1
weewx_tfrc formerly running version 3.9.1
Note:
Program weewx_klim (klimalogg driver) does not have a rain database field
Program weewx_mben (modbus energy monitor) does not have a rain database field
All three programs use the same weewx_conf file with the old and with the new weewx version.
What can be done to debug this?
Note: the syslog says (see attachment):
INFO weewx.wxservices: The following values will be calculated: pressure=prefer_hardware, altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
while none of these values exist in the database.
Snippet of weewx.conf:
=====
##############################################################################
# This section can adjust data using calibration expressions.
[StdCalibrate]
[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
##############################################################################
# This section is for quality control checks. If units are not specified,
# values must be in the units defined in the StdConvert section.
[StdQC]
[[MinMax]]
##############################################################################
# This section controls the origin of derived values.
[StdWXCalculate]
[[Calculations]]
# How to calculate derived quantities. Possible values are:
# hardware - use the value provided by hardware
# software - use the value calculated by weewx
# prefer_hardware - use value provide by hardware if available,
# otherwise use value calculated by weewx
##############################################################################
=====
Luc