Comments (15)
Just an updated shot showing MQTT sorted (the server stopped too!) but current conditions icon still thinks it's night and record snapshots still in Dec.
Here is a slightly better context of the error I think
Jan 1 12:05:15 raspberrypi weewx[1004]: manager: Added record 2019-01-01 12:05:00 NZDT (1546297500) to database 'weewx.sdb'
Jan 1 12:05:15 raspberrypi weewx[1004]: manager: Added record 2019-01-01 12:05:00 NZDT (1546297500) to daily summary in 'weewx.sdb'
Jan 1 12:05:20 raspberrypi weewx[1004]: cheetahgenerator: Generated 14 files for report StandardReport in 4.36 seconds
Jan 1 12:05:25 raspberrypi weewx[1004]: imagegenerator: Generated 36 images for StandardReport in 3.78 seconds
Jan 1 12:05:25 raspberrypi weewx[1004]: copygenerator: copied 9 files to /var/www/html/weewx
Jan 1 12:05:30 raspberrypi weewx[1004]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 5.74 seconds
Jan 1 12:05:30 raspberrypi weewx[1004]: copygenerator: copied 0 files to /var/www/html/weewx/belchertown
Jan 1 12:05:30 raspberrypi weewx[1004]: Belchertown Extension: version 0.8.1
Jan 1 12:05:30 raspberrypi weewx[1004]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Jan 1 12:05:30 raspberrypi weewx[1004]: **** 'NoneType' object has no attribute 'getitem'
Jan 1 12:05:30 raspberrypi weewx[1004]: **** Traceback (most recent call last):
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
Jan 1 12:05:30 raspberrypi weewx[1004]: **** obj.start()
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
Jan 1 12:05:30 raspberrypi weewx[1004]: **** self.run()
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Jan 1 12:05:30 raspberrypi weewx[1004]: **** ngen = self.generate(gen_dict[section_name], self.gen_ts)
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Jan 1 12:05:30 raspberrypi weewx[1004]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Jan 1 12:05:30 raspberrypi weewx[1004]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
Jan 1 12:05:30 raspberrypi weewx[1004]: **** default_binding)
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
Jan 1 12:05:30 raspberrypi weewx[1004]: **** searchList += obj.get_extension_list(timespan, db_lookup)
Jan 1 12:05:30 raspberrypi weewx[1004]: **** File "/usr/share/weewx/user/belchertown.py", line 297, in get_extension_list
Jan 1 12:05:30 raspberrypi weewx[1004]: **** year_rainiest_month_tuple = (year_rainiest_month_query[1], rain_unit, 'group_rain')
Jan 1 12:05:30 raspberrypi weewx[1004]: **** TypeError: 'NoneType' object has no attribute 'getitem'
Jan 1 12:05:30 raspberrypi weewx[1004]: **** Generator terminated
Jan 1 12:05:30 raspberrypi weewx[1004]: copygenerator: copied 22 files to /var/www/html/weewx/belchertown
from weewx-belchertown.
Hi Pat, been using this skin for a couple of weeks now, since getting a weather station. Really like your work. I've also got the 2019 error, although I don't use the MQTT side of things. my site is at https://weather.emkubed.com.au and is stuck at 11:55pm on the 31st of Dec.
Have checked and data is still being saved into the database.
pi@raspberrypi:~ $ sudo wee_reports
Using configuration file /etc/weewx/weewx.conf
Generating for all time
Traceback (most recent call last):
File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
obj.start()
File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
self.run()
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
ngen = self.generate(gen_dict[section_name], self.gen_ts)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
ngen += self.generate(section[subsection], gen_ts)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
ngen += self.generate(section[subsection], gen_ts)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
default_binding)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
searchList += obj.get_extension_list(timespan, db_lookup)
File "/usr/share/weewx/user/belchertown.py", line 297, in get_extension_list
year_rainiest_month_tuple = (year_rainiest_month_query[1], rain_unit, 'group_rain')
TypeError: 'NoneType' object has no attribute 'getitem'
Traceback (most recent call last):
File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
obj.start()
File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
self.run()
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
ngen = self.generate(gen_dict[section_name], self.gen_ts)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
ngen += self.generate(section[subsection], gen_ts)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
ngen += self.generate(section[subsection], gen_ts)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
default_binding)
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
searchList += obj.get_extension_list(timespan, db_lookup)
File "/usr/share/weewx/user/belchertown.py", line 297, in get_extension_list
year_rainiest_month_tuple = (year_rainiest_month_query[1], rain_unit, 'group_rain')
TypeError: 'NoneType' object has no attribute 'getitem'
from weewx-belchertown.
This is a weird one. Let me see if I can fix it ASAP
from weewx-belchertown.
Would one of you guys be able to send me your database? Once I add mine to a test 2019 machine it adds rain to it (since it's raining right now) and my reports are not failing.
Yours are failing because (assuming) you have no rain yet in 2019
from weewx-belchertown.
Done, hopefully
from weewx-belchertown.
Got it, thanks.
from weewx-belchertown.
@41south I emailed you a quick fix to see if it helps. If it does I'll commit to GitHub. Feels sloppy but it'll fix 2019 problems that'll come up tomorrow 😃
from weewx-belchertown.
Eagerly waiting for git commit !! Although I have about 5 hours before the bug hits me....
from weewx-belchertown.
Looks like the same/similar error, I only replaced the belchertown.py file
Jan 1 15:40:32 raspberrypi weewx[6484]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Jan 1 15:40:32 raspberrypi weewx[6484]: **** 'forecast_alert_enabled'
Jan 1 15:40:33 raspberrypi weewx[6484]: **** Traceback (most recent call last):
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
Jan 1 15:40:33 raspberrypi weewx[6484]: **** obj.start()
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
Jan 1 15:40:33 raspberrypi weewx[6484]: **** self.run()
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Jan 1 15:40:33 raspberrypi weewx[6484]: **** ngen = self.generate(gen_dict[section_name], self.gen_ts)
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Jan 1 15:40:33 raspberrypi weewx[6484]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Jan 1 15:40:33 raspberrypi weewx[6484]: **** ngen += self.generate(section[subsection], gen_ts)
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
Jan 1 15:40:33 raspberrypi weewx[6484]: **** default_binding)
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
Jan 1 15:40:33 raspberrypi weewx[6484]: **** searchList += obj.get_extension_list(timespan, db_lookup)
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/share/weewx/user/belchertown.py", line 469, in get_extension_list
Jan 1 15:40:33 raspberrypi weewx[6484]: **** forecast_alert_enabled = int( self.generator.skin_dict['Extras']['forecast_alert_enabled'] )
Jan 1 15:40:33 raspberrypi weewx[6484]: **** File "/usr/lib/python2.7/dist-packages/configobj.py", line 554, in getitem
Jan 1 15:40:33 raspberrypi weewx[6484]: **** val = dict.getitem(self, key)
Jan 1 15:40:33 raspberrypi weewx[6484]: **** KeyError: 'forecast_alert_enabled'
Jan 1 15:40:33 raspberrypi weewx[6484]: **** Generator terminated
Jan 1 15:40:33 raspberrypi weewx[6484]: copygenerator: copied 22 files to /var/www/html/weewx/belchertown
from weewx-belchertown.
Different bug now that I fixed within the last few minutes. Let me email you an update for a test.
from weewx-belchertown.
Tested and looks good
from weewx-belchertown.
Thanks for the testing!
For those looking for the fix, grab an updated copy of the bin/user/belchertown.py
file and place it into your bin/user
folder and restart weewx.
from weewx-belchertown.
So don't copy the new skin.conf ?
from weewx-belchertown.
No don't copy it, I removed it in 8b4af96 since I added it by mistake.
Late night coding mistake made me download it to the wrong folder and it got committed by mistake 😃
from weewx-belchertown.
ok
from weewx-belchertown.
Related Issues (20)
- errors after upgrading from 1.3beta1 to 1.3 final HOT 10
- Skin broken after Highcharts update HOT 42
- Missing Charts HOT 11
- Upgrading to 1.3 from 1.2 HOT 2
- "drizzle" icon is missing during install and will show as broken in forecasts HOT 2
- Can't find locale HOT 1
- If Aeris throws an exception Belchertown doesn't update HOT 7
- Forecast finds the database locked, exception issue HOT 1
- Change in default charts on home page HOT 2
- Wind Rose does not seem accurate on the longer time lines HOT 1
- Kiosk.html not updating HOT 12
- Pi page showing "undefined" and unformatted values after access/refresh HOT 2
- Belchertown taking forever on some weewx v5 systems HOT 22
- 29th February HOT 1
- Graphs appear with delay on refresh
- In js/belchertown.js.tmpl function get_outTemp_color returns incorrect color when outTemp <= 0 and unit is "degree_C"
- Data is being rounded to 0
- View from Reports / NOAA
- display miles instead of kilometer HOT 2
- I am getting errors after upgrading to weewx v5.0.1 and belchertown 1.3.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weewx-belchertown.