Belchertown - showerswn error

58 views
Skip to first unread message

gert.a...@gmail.com

unread,
Nov 21, 2020, 10:39:04 PM11/21/20
to weewx-user
Hi
Iweewx 4.2.0 and Belchertown skin version 1.2. 

I have been running the system for months with no issues. Suddenly I get this error with:
"ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
ERROR weewx.reportengine: **** 'showerswn' "

Any idea what happened here?

Part of logfile attached.

Rgds Gert
showerswn.txt

vince

unread,
Nov 22, 2020, 1:49:05 PM11/22/20
to weewx-user
On Saturday, November 21, 2020 at 7:39:04 PM UTC-8 gert.a...@gmail.com wrote:
weewx 4.2.0 and Belchertown skin version 1.2. 

I have been running the system for months with no issues. Suddenly I get this error with:
"ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
ERROR weewx.reportengine: **** 'showerswn' "


Are you sure you didn't somehow edit a file and drop a character someplace ?

Looking at the current Belchertown skin, I see no mention of "showerswn" in the code.

./skins/Belchertown/js/belchertown.js.tmpl:        "showers": "rain",
./skins/Belchertown/js/belchertown.js.tmpl:        "showersn": "rain",
./skins/Belchertown/js/belchertown.js.tmpl:        "showersw": "rain",
./skins/Belchertown/js/belchertown.js.tmpl:        "showersw": "rain",
./skins/Belchertown/js/belchertown.js.tmpl:        "snowshowers": "snow",
./skins/Belchertown/js/belchertown.js.tmpl:        "snowshowersn": "snow",
./skins/Belchertown/js/belchertown.js.tmpl:        "snowshowersw": "snow",
./skins/Belchertown/js/belchertown.js.tmpl:        "snowshowerswn": "snow",
./bin/user/belchertown.py:                    "showers": "rain",
./bin/user/belchertown.py:                    "showersn": "rain",
./bin/user/belchertown.py:                    "showersw": "rain",
./bin/user/belchertown.py:                    "snowshowers": "snow",
./bin/user/belchertown.py:                    "snowshowersn": "snow",
./bin/user/belchertown.py:                    "snowshowersw": "snow",
./bin/user/belchertown.py:                    "snowshowerswn": "snow",

You might want to check your installation to see if it matches.
 

gert.a...@gmail.com

unread,
Nov 22, 2020, 3:34:03 PM11/22/20
to weewx-user
Hi Vince 

Thanks for looking.

My best guess is that 'showerswn' is missing from belchertown.py. If you look at belchertown.js.tmpl, you have  "showersw": "rain", twice, maybe it should be 'showerswn'. You have also 'snowshowerswn' 'snow'.

After a couple of hours the error disappeared, probably when the condition changes.I have now inserted the missing tag in belchertown.py and changed the tags in belchertown.js.tmp to:
"showersw": "rain",
 'showerswn": "rain",
to see if it makes any difference the next time the condition appears.

From belchertown.js.tmpl:
        "showers": "rain",
        "showersn": "rain",
        "showersw": "rain",
        "showersw": "rain",
        "sleet": "sleet",
        "sleetn": "sleet",
        "sleetsnow": "sleet",
        "sleetsnown": "sleet",
        "smoke": "fog",
        "smoken": "fog",
        "snow": "snow",
        "snown": "snow",
        "snoww": "snow",
        "snowwn": "snow",
        "snowshowers": "snow",
        "snowshowersn": "snow",
        "snowshowersw": "snow",
        "snowshowerswn": "snow",

Gert

vince

unread,
Nov 22, 2020, 4:53:05 PM11/22/20
to weewx-user
Pat always likes patches and pull requests, so open an issue on his github page and I'm sure he'll get to it as time permits...

Reply all
Reply to author
Forward
0 new messages