GithubHelp home page GithubHelp logo

2019 bug? about weewx-belchertown HOT 15 CLOSED

poblabs avatar poblabs commented on August 16, 2024
2019 bug?

from weewx-belchertown.

Comments (15)

41south avatar 41south commented on August 16, 2024

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

screen shot 2019-01-01 at 11 04 45 am

from weewx-belchertown.

monts351 avatar monts351 commented on August 16, 2024

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.

poblabs avatar poblabs commented on August 16, 2024

This is a weird one. Let me see if I can fix it ASAP

from weewx-belchertown.

poblabs avatar poblabs commented on August 16, 2024

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.

41south avatar 41south commented on August 16, 2024

Done, hopefully

from weewx-belchertown.

poblabs avatar poblabs commented on August 16, 2024

Got it, thanks.

from weewx-belchertown.

poblabs avatar poblabs commented on August 16, 2024

@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.

sgrayban avatar sgrayban commented on August 16, 2024

Eagerly waiting for git commit !! Although I have about 5 hours before the bug hits me....

from weewx-belchertown.

41south avatar 41south commented on August 16, 2024

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.

poblabs avatar poblabs commented on August 16, 2024

Different bug now that I fixed within the last few minutes. Let me email you an update for a test.

from weewx-belchertown.

41south avatar 41south commented on August 16, 2024

Tested and looks good

from weewx-belchertown.

poblabs avatar poblabs commented on August 16, 2024

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.

sgrayban avatar sgrayban commented on August 16, 2024

So don't copy the new skin.conf ?

from weewx-belchertown.

poblabs avatar poblabs commented on August 16, 2024

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.

sgrayban avatar sgrayban commented on August 16, 2024

ok

from weewx-belchertown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.