KeyError: 'temperatureLow'

41 views
Skip to first unread message

Scott Grayban

unread,
Jun 15, 2019, 1:28:42 AM6/15/19
to weewx-user
Just started getting this error after a months of running with no issues....... is this a db corruption ?

Jun 14 22:22:24 weewx-pi weewx[23128]: reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****  'temperatureLow'
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****  Traceback (most recent call last):
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 204, in run
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      obj.start()
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 300, in start
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      self.run()
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 160, in run
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      ngen = self.generate(gen_dict[section_name], self.gen_ts)
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 234, in generate
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      ngen += self.generate(section[subsection], gen_ts)
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 234, in generate
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      ngen += self.generate(section[subsection], gen_ts)
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      default_binding)
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 374, in _getSearchList
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      searchList += obj.get_extension_list(timespan, db_lookup)
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****    File "/usr/share/weewx/user/belchertown.py", line 599, in get_extension_list
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****      output += '<span class="forecast-high">'+str( int( daily_data["temperatureHigh"] ) )+'&deg;</span> | <span class="forecast-low">'+str( int( daily_data["temperatureLow"] ) )+'&deg;</span>'
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****  KeyError: 'temperatureLow'
Jun 14 22:22:24 weewx-pi weewx[23128]:         ****  Generator terminated


Pat

unread,
Jun 15, 2019, 8:19:01 AM6/15/19
to weewx-user
I don't think it's database corruption, but it took me a minute to figure out what skin you're using. Looks like Belchertown. Looks like an error with the DarkSky forecast. Maybe delete the darksky json file from your html_folder/json subfolder and let it download a new copy. 

What version of Belchertown are you using? I don't remember seeing daily_data in any recent version. Version 1.0.1 is out now. 

Scott Grayban

unread,
Jun 17, 2019, 1:54:18 AM6/17/19
to weewx-user
That was the problem.

Yes it's your skin but a old one -- 0.9rc1 -- Your new version changed so omuch I really didn't want to have to redo all my customization's again.
Reply all
Reply to author
Forward
0 new messages