I've been runnning the AllSeasons skin successfully and thought I would add another table for growing degrees. It looked straight forward but something's not correct somewhere! The error I'm getting is;
ec 24 14:40:19 weepi weewx[30078] INFO weewx.restx: Wunderground-PWS: Published record 2020-12-24 14:40:00 GMT (1608820800) Dec 24 14:40:22 weepi weewx[30078] INFO weewx.restx: WOW: Published record 2020-12-24 14:40:00 GMT (1608820800) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator' Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** 'degree_C_day' Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** Traceback (most recent call last): Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/weewx/reportengine.py", line 196, in run Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** obj.start() Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/weewx/reportengine.py", line 281, in start Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** self.run() Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 149, in run Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** ngen = self.generate(gen_dict[section_name], self.gen_ts) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 219, in generate Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** ngen += self.generate(section[subsection], gen_ts) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 219, in generate Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** ngen += self.generate(section[subsection], gen_ts) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 308, in generate Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** default_binding) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 379, in _getSearchList Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** searchList += obj.get_extension_list(timespan, db_lookup) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/user/historygenerator.py", line 178, in get_extension_list Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** self.search_list_extension[table_name] = self._statsHTMLTable(table_options, table_stats, table_name, binding, NOAA=noaa) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/home/weewx/bin/user/historygenerator.py", line 279, in _statsHTMLTable Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** format_string = reading.formatter.unit_format_dict[unit_type] Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__ Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** val = dict.__getitem__(self, key) Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** KeyError: 'degree_C_day' Dec 24 14:40:31 weepi weewx[30078] ERROR weewx.reportengine: **** Generator terminated Dec 24 14:40:38 weepi weewx[30078] INFO weewx.imagegenerator: Generated 13 images for report SeasonsReport in 6.78 seconds Dec 24 14:40:38 weepi weewx[30078] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_html Dec 24 14:40:38 weepi weewx[30078] INFO weewx.cheetahgenerator: Generated 6 files for report SmartphoneReport in 0.61 seconds degree_C_day is the correct unit but it's blowing out historygenerator.py. I tried forcing the unit in skin.conf but the error message is the same. I put a few trys in the code and hardcoded stuff to help pinpoint the source but I'm not getting anywhere, my python isn't good enough! I've changed the AllSeason skin.conf and index.html.tmpl. Index.html.tmpl is not part of the problem but for completeness I've included it. I'm running weewx 4.2 using python3 on RPI Thanks for taking the time to look *skin.conf in [HistoryReport] section* [[avg_temp]] obs_type = outTemp aggregate_type = avg summary_column = true summary_heading = Avg [[grow]] obs_type = growdeg #units = degree_C # Override default table units label aggregate_type = sum summary_column = true summary_heading = Total [[rain]] obs_type = rain aggregate_type = sum *and index.html.tmpl * <div id="history_alltime" class="plot_container" style="display:none"> <p id=label>Minimum Temperature</p> <span id="data">$min_temp_table</span> <p id=label>Average Temperature</p> <span id="data">$avg_temp_table</span> <p id=label>Growing Degrees</p> <span id="data">$grow_table</span> <p id=label>Maximum Temperature</p> <span id="data">$max_temp_table</span> <p id=label>Rainfall (mm)</p> <span id="data">$rain_table</span> <p id=label>Days when rain fell</p> <span id="data">$rain_days_table</span> </div> -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/aa4028f7-0f00-456d-aa0c-6fb76723d3b1n%40googlegroups.com.