Re: [weewx-development] CRITICAL __main__: Database OperationalError exception: (1054, "Unknown column 'rain' in 'field list'")

2020-03-07 Thread Thomas Keffer
That's where I'm heading. rainRate calculations would continue to just happen because they are in the default weewx.conf that comes with WeeWX (and have been for a long time). But, they shouldn't crash the system. -tk On Sat, Mar 7, 2020 at 10:37 AM mwall wrote: > > > On Saturday, March 7, 20

Re: [weewx-development] CRITICAL __main__: Database OperationalError exception: (1054, "Unknown column 'rain' in 'field list'")

2020-03-07 Thread mwall
On Saturday, March 7, 2020 at 1:32:46 PM UTC-5, Tom Keffer wrote: > > 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 defaul

Re: [weewx-development] CRITICAL __main__: Database OperationalError exception: (1054, "Unknown column 'rain' in 'field list'")

2020-03-07 Thread Thomas Keffer
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

[weewx-development] CRITICAL __main__: Database OperationalError exception: (1054, "Unknown column 'rain' in 'field list'")

2020-03-07 Thread Lucas Heijst
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.

Re: [weewx-development] Re: DEBUG weewx.wxservices: Unknown extensible type 'dayRain'

2020-03-07 Thread Thomas Keffer
It's not an unreasonable thing to calculate (although, perhaps not on every LOOP packet). The V4 version of StdWXCalculate is extensible, so you can add it if you want, but you'd have to provide the algorithm. See the Wiki article *Proposal for user-defined types

[weewx-development] Re: How to implement rain and rainRate fields in a new driver?

2020-03-07 Thread gjr80
Bill, My two cents. This is a very common situation, many stations provide one (or more) cumulative rainfall values. Since WeeWX requires a per-interval or delta value all you do is pick one of the cumulative rain values (in your case Rain Today is the obvious choice) and calculate the differen

[weewx-development] Re: DEBUG weewx.wxservices: Unknown extensible type 'dayRain'

2020-03-07 Thread Lucas Heijst
Tom, The value of dayRain isn't used in any skin. It is used in meteotemplate.py where the value of dayRain is multiplied by 10 to convert cm to mm. It was listed under [StdWXCalculate]: [StdWXCalculate] ... [[Calculations]] ... dayRain = software I can't remember why I have put it