This is probably being caused by the "rainRate" calculator. The default is to calculate 'rainRate', despite you not having it listed in [[Calculations]].
What to do? 1. We could remove rainRate from the defaults, and require it to be listed in [[Calculations]]. In fact, we could remove *all* defaults. 2. Or, we could catch the exception and swallow it. 3. Or, both. I'm inclined to go with option #3. -tk On Sat, Mar 7, 2020 at 6:53 AM Lucas Heijst <[email protected]> wrote: > 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 > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" 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-development/7a6ad431-8806-48f1-b471-c39411de62f4%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/7a6ad431-8806-48f1-b471-c39411de62f4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/CAPq0zECxrqJLq4UNhFoPOyZUPYDG-5FH%3DOTu%2BgGVyRk-pWPCTw%40mail.gmail.com.
