Hi!

trying to add the html historic data tables in a nice colour scheme.

Added these lines to [CheetahGenerator] in skin.conf: 
user.historygenerator.MyXSearch, user.stats.MyStats

Added stats.py from /usr/share/doc/weewx/examples  to my 
/usr/share/weewx/user folder

This is the output from log file:

Jan 11 22:10:20 raspberrypi weewx[5271]: manager: Added record 2020-01-11 
22:10:00 CET (1578777000) to database 'weewx.sdb'
Jan 11 22:10:20 raspberrypi weewx[5271]: manager: Added record 2020-01-11 
22:10:00 CET (1578777000) to daily summary in 'weewx.sdb'
Jan 11 22:10:21 raspberrypi weewx[5271]: restx: WeatherCloud: Published 
record 2020-01-11 22:10:00 CET (1578777000)
Jan 11 22:10:21 raspberrypi weewx[5271]: restx: Wunderground-PWS: Published 
record 2020-01-11 22:10:00 CET (1578777000)
Jan 11 22:10:21 raspberrypi weewx[5271]: restx: WOW: Published record 
2020-01-11 22:10:00 CET (1578777000)
Jan 11 22:10:22 raspberrypi weewx[5271]: cheetahgenerator: Generated 8 
files for report StandardReport in 1.86 seconds
Jan 11 22:10:33 raspberrypi weewx[5271]: imagegenerator: Generated 15 
images for StandardReport in 10.55 seconds
Jan 11 22:10:33 raspberrypi weewx[5271]: copygenerator: copied 0 files to 
/var/www/html/weewx
Jan 11 22:10:33 raspberrypi weewx[5271]: historygenerator.pyc: Generated 8 
tables in 0.20 seconds
Jan 11 22:10:35 raspberrypi weewx[5271]: cheetahgenerator: Generated 10 
files for report Sofaskin-FW2205-master in 1.78 seconds
Jan 11 22:10:36 raspberrypi weewx[5271]: imagegenerator: Generated 9 images 
for Sofaskin-FW2205-master in 0.85 seconds
Jan 11 22:10:36 raspberrypi weewx[5271]: copygenerator: copied 0 files to 
/var/www/html/weewx/Sofaskin-FW2205-master
Jan 11 22:10:36 raspberrypi weewx[5271]: GaugeGenerator: Generated 6 images 
for Bootstrap in 0.48 seconds
Jan 11 22:10:37 raspberrypi weewx[5271]: historygenerator.pyc: Generated 15 
tables in 0.48 seconds
Jan 11 22:10:38 raspberrypi weewx[5271]: cheetahgenerator: Generated 10 
files for report Bootstrap in 1.48 seconds
Jan 11 22:10:38 raspberrypi weewx[5271]: copygenerator: copied 0 files to 
/var/www/html/weewx/Bootstrap
Jan 11 22:10:38 raspberrypi weewx[5271]: reportengine: Caught unrecoverable 
exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  'HistoryReport'
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  Traceback (most 
recent call last):
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/reportengine.py", line 204, in run
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      obj.start()
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/reportengine.py", line 300, in start
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      self.run()
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      
self.initExtensions(gen_dict[section_name])
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 202, in initExtensions
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      
self.search_list_objs.append(class_(self))
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/user/historygenerator.py", line 79, in __init__
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      self.table_dict 
= generator.skin_dict['HistoryReport']
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      val = 
dict.__getitem__(self, key)
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  KeyError: 
'HistoryReport'
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  Generator terminated
Jan 11 22:10:38 raspberrypi weewx[5271]: copygenerator: copied 0 files to 
/var/www/html/weewx/Bjurdammen
Jan 11 22:10:38 raspberrypi weewx[5271]: reportengine: Caught unrecoverable 
exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  'HistoryReport'
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  Traceback (most 
recent call last):
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/reportengine.py", line 204, in run
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      obj.start()
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/reportengine.py", line 300, in start
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      self.run()
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      
self.initExtensions(gen_dict[section_name])
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 202, in initExtensions
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      
self.search_list_objs.append(class_(self))
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/share/weewx/user/historygenerator.py", line 79, in __init__
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      self.table_dict 
= generator.skin_dict['HistoryReport']
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****    File 
"/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****      val = 
dict.__getitem__(self, key)
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  KeyError: 
'HistoryReport'
Jan 11 22:10:38 raspberrypi weewx[5271]:         ****  Generator terminated
Jan 11 22:10:38 raspberrypi weewx[5271]: copygenerator: copied 0 files to 
/var/www/html/weewx
Jan 11 22:10:39 raspberrypi weewx[5271]: imageStackedWindRose: Generated 2 
images for StackedWindRose in 0.56 seconds
Jan 11 22:10:39 raspberrypi weewx[5271]: GaugeGenerator: Generated 6 images 
for HTMLPages in 0.48 seconds
Jan 11 22:10:40 raspberrypi weewx[5271]: historygenerator.pyc: Generated 15 
tables in 0.44 seconds
Jan 11 22:10:41 raspberrypi weewx[5271]: cheetahgenerator: Generated 10 
files for report HTMLPages in 1.44 seconds
Jan 11 22:10:41 raspberrypi weewx[5271]: copygenerator: copied 0 files to 
/var/www/html/weewx/Bootstrap
Jan 11 22:10:44 raspberrypi weewx[5271]: imagegenerator: Generated 6 images 
for BigImages in 2.85 seconds
Jan 11 22:10:45 raspberrypi weewx[5271]: imagegenerator: Generated 6 images 
for SmallImages in 1.00 seconds


Can't figure out why I get the KeyError 'Historyreport'

What can be the issue?

/ Mikael


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4ef0e801-1cd3-4216-9e9d-e3920f82ce74%40googlegroups.com.

Reply via email to