Hi I'm trying to install the template using WeeWx 5.0.0b10. I copied the skin files to the relevant WeeWx directories and created the stanza in weewx.conf. as you can see from the attached syslog, there were errors.
I installed WeeWx using pip, so WeeWx is unning in a virtual environmrnt Any ideas? Gert On Wednesday, August 16, 2023 at 2:17:52 AM UTC+2 David Bätge wrote: > The error indicates that the observation type is unknown, in that case, > cloudbase. The skin should not attempt to display data for an observation > that has no data - so there seems to be something wrong here. > > Could you please remove cloudbase from > [DisplayOptions][[diagrams]][[[day]]][[[[observations]]]] in skin.conf? > > If this does not help, you can try to remove cloudbase also from > [DisplayOptions]table_tile_observations and > [DisplayOptions]stat_tile_observations. > > This error really only appears for the index page? > > Eirik Skorstad schrieb am Dienstag, 15. August 2023 um 17:05:11 UTC+2: > >> 2023-08-15T16:56:50.431510+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** Ignoring template >> /home/weewx/skins/weewx-wdc/index.html.tmpl >> 2023-08-15T16:56:50.431625+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** Reason: 'cloudbase' or 'avg' >> 2023-08-15T16:56:50.434142+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** Traceback (most recent call last): >> 2023-08-15T16:56:50.434253+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File >> "/home/weewx/bin/weewx/cheetahgenerator.py", line 348, in generate >> 2023-08-15T16:56:50.434352+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** unicode_string = >> compiled_template.respond() >> 2023-08-15T16:56:50.434442+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> 2023-08-15T16:56:50.434547+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File >> "_home_weewx_skins_weewx_wdc_index_html_tmpl.py", line 267, in respond >> 2023-08-15T16:56:50.434657+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File >> "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in >> _handleCheetahInclude >> 2023-08-15T16:56:50.434749+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** >> self._CHEETAH__cheetahIncludes[_includeID].respond(trans) >> 2023-08-15T16:56:50.434844+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File >> "_home_weewx_skins_weewx_wdc_includes_body_alternative_inc.py", line 326, >> in respond >> 2023-08-15T16:56:50.435088+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File >> "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in >> _handleCheetahInclude >> 2023-08-15T16:56:50.435180+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** >> self._CHEETAH__cheetahIncludes[_includeID].respond(trans) >> 2023-08-15T16:56:50.435278+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File >> "_home_weewx_skins_weewx_wdc_includes_diagram_tile_inc.py", line 240, in >> respond >> 2023-08-15T16:56:50.435372+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File >> "_home_weewx_skins_weewx_wdc_includes_diagram_tile_inc.py", line 106, in >> __errorCatcher6 >> 2023-08-15T16:56:50.435499+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File "<string>", line 1, in <module> >> 2023-08-15T16:56:50.435580+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File "/home/weewx/bin/user/weewx_wdc.py", >> line 1314, in get_diagram_data >> 2023-08-15T16:56:50.435673+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** obs_start_vt, obs_stop_vt, obs_vt = >> weewx.xtypes.get_series( >> 2023-08-15T16:56:50.435772+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** >> ^^^^^^^^^^^^^^^^^^^^^^^^ >> 2023-08-15T16:56:50.435867+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/xtypes.py", >> line 116, in get_series >> 2023-08-15T16:56:50.435963+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** raise weewx.UnknownType(msg) >> 2023-08-15T16:56:50.436057+02:00 odin wee_reports[334303] ERROR >> weewx.cheetahgenerator: **** weewx.UnknownType: 'cloudbase' or 'avg' >> >> tirsdag 15. august 2023 kl. 14:49:45 UTC+2 skrev Eirik Skorstad: >> >>> I think I just answered your post in a private reply to you. Just CC it >>> in to the post if you like to. >>> >>> tirsdag 15. august 2023 kl. 03:04:13 UTC+2 skrev David Bätge: >>> >>>> I assume you are using the current version 3.3.0? The error indicates >>>> that WeeWX can not find >>>> the search_list_extensions user.weewx_wdc.WdcGeneralUtil. >>>> >>>> Any chance you are using an old skin.conf file? Please compare with >>>> https://github.com/Daveiano/weewx-wdc/blob/v3.3.0/skins/weewx-wdc/skin.conf >>>> Or, perhaps, have you overwritten the search_list_extensions config >>>> for the skin via weewx.conf? >>>> >>>> Would be great if you could post the relevant section from weewx.conf >>>> and your current skin.conf so I could have a look. >>>> >>>> Eirik Skorstad schrieb am Sonntag, 13. August 2023 um 23:04:37 UTC+2: >>>> >>>>> Evaluation of template /home/weewx/skins/weewx-wdc/index.html.tmpl >>>>> failed. >>>>> 2023-08-13T23:00:40.303871+02:00 odin weewx[251007] ERROR >>>>> weewx.cheetahgenerator: **** Ignoring template >>>>> /home/weewx/skins/weewx-wdc/index.html.tmpl >>>>> 2023-08-13T23:00:40.304352+02:00 odin weewx[251007] ERROR >>>>> weewx.cheetahgenerator: **** Reason: cannot find 'get_windrose_enabled' >>>>> 2023-08-13T23:00:40.304456+02:00 odin weewx[251007] ERROR >>>>> weewx.cheetahgenerator: **** To debug, try inserting '#errorCatcher Echo' >>>>> at top of template >>>>> >>>>> >>>>> Skin is not generating any of the templates. Why is that? >>>>> torsdag 8. juni 2023 kl. 11:22:50 UTC+2 skrev Greg from Oz: >>>>> >>>>>> Yes that works. >>>>>> I did a grep of the whole directory and sub directories looking for >>>>>> that and missed it. >>>>>> But I was looking for get_base_path and not just base_path >>>>>> >>>>>> Thanks again. >>>>>> >>>>>> On Thursday, 8 June 2023 at 19:05:48 UTC+10 David Bätge wrote: >>>>>> >>>>>>> Hi Greg! Please set the base_path in skin.conf to '/wdc/': >>>>>>> >>>>>>> base_path = /wdc/ >>>>>>> >>>>>>> See >>>>>>> https://github.com/Daveiano/weewx-wdc/wiki/WeeWX-related#setting-html_root-and-basepath >>>>>>> >>>>>>> and https://github.com/Daveiano/weewx-wdc/wiki/Configuration#extras. >>>>>>> This should resolve the problem. >>>>>>> Greg from Oz schrieb am Donnerstag, 8. Juni 2023 um 10:53:53 UTC+2: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I am testing the wdc skin and have set the html document root to >>>>>>>> /var/www/html/weather/wdc >>>>>>>> If I go to https://weather.ubeaut.work/wdc/ (because I am testing >>>>>>>> and want to leave my other webpages) it shows the wdc index.html which >>>>>>>> is >>>>>>>> good. >>>>>>>> If I click on any of the menu items eg Today week month it takes >>>>>>>> me to my other web page. Yesterday doesn't work because on my other >>>>>>>> webpage >>>>>>>> there isn't a yesterday web page. >>>>>>>> I suspect it is because of the $get_base_path which would be >>>>>>>> https://weather.ubeaut.work in this case. >>>>>>>> How or where can I change this to be >>>>>>>> https://weather.ubeaut.work/wdc so I can test it out? >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> On Monday, 3 April 2023 at 00:31:31 UTC+10 gary....@gmail.com >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Version 3.1.1 has been released and this is now one of the nicest >>>>>>>>> skins I've used. >>>>>>>>> Clear text, excellent graphs, histograms, live data from MQTT. >>>>>>>>> Scales well to tablets. >>>>>>>>> For my needs, replaced the Belchertown skin. >>>>>>>>> On Friday, August 5, 2022 at 10:43:52 AM UTC-4 Andrea Di Saverio >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Sorry for my late replay. >>>>>>>>>> >>>>>>>>>> Yes, the suggestion solved my problem. I was not installing as >>>>>>>>>> root user. >>>>>>>>>> Thank you. >>>>>>>>>> >>>>>>>>>> Il giorno giovedì 4 agosto 2022 alle 01:46:26 UTC+2 >>>>>>>>>> david....@gmail.com ha scritto: >>>>>>>>>> >>>>>>>>>>> @disaveri Did this solve your problem? >>>>>>>>>>> >>>>>>>>>>> Btw: I released 2.0.1 which resolves the "non-web-root"-issue, >>>>>>>>>>> the "Pressure diagram with inHg unit"-issue and includes a few >>>>>>>>>>> other >>>>>>>>>>> bugfixes: >>>>>>>>>>> https://github.com/Daveiano/weewx-wdc/releases/tag/v2.0.1 >>>>>>>>>>> >>>>>>>>>>> Thanks for your input! >>>>>>>>>>> >>>>>>>>>>> vince schrieb am Dienstag, 2. August 2022 um 00:54:05 UTC+2: >>>>>>>>>>> >>>>>>>>>>>> On Monday, August 1, 2022 at 3:32:23 PM UTC-7 >>>>>>>>>>>> disaveri...@gmail.com wrote: >>>>>>>>>>>> >>>>>>>>>>>>> the root cause is possibly something else? >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Yes. The 'root' cause indeed. >>>>>>>>>>>> >>>>>>>>>>>> See the FAQ - >>>>>>>>>>>> https://github.com/weewx/weewx/wiki/faq-permission-denied >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> -- 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/17fe8939-5522-4770-a0bb-ff225ab77293n%40googlegroups.com.
weewx[869] ERROR weewx.cheetahgenerator: Evaluation of template /home/pi/weewx-data/skins/weewx-wdc/statistics.html.tmpl failed with exception '<class 'ZeroDivisionError'>' Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** Ignoring template /home/pi/weewx-data/skins/weewx-wdc/statistics.html.tmpl Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** Reason: division by zero Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last): Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "/home/pi/weewx-venv/lib/python3.9/site-packages/weewx/cheetahgenerator.py", line 343, in generate Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond() Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "_home_pi_weewx_data_skins_weewx_wdc_statistics_html_tmpl.py", line 258, in respond Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "/home/pi/weewx-venv/lib/python3.9/site-packages/Cheetah/Template.py", line 1708, in _handleCheetahInclude Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** self._CHEETAH__cheetahIncludes[_includeID].respond(trans) Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "_home_pi_weewx_data_skins_weewx_wdc_includes_body_alternative_inc.py", line 324, in respond Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "/home/pi/weewx-venv/lib/python3.9/site-packages/Cheetah/Template.py", line 1708, in _handleCheetahInclude Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** self._CHEETAH__cheetahIncludes[_includeID].respond(trans) Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "_home_pi_weewx_data_skins_weewx_wdc_includes_diagram_tile_wind_rose_inc.py", line 276, in respond Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "_home_pi_weewx_data_skins_weewx_wdc_includes_diagram_tile_wind_rose_inc.py", line 120, in __errorCatcher8 Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "<string>", line 1, in <module> Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** File "/home/pi/weewx-data/bin/user/weewx_wdc.py", line 2046, in get_windrose_data Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** (percent / num_of_values) * 100 Aug 16 22:31:32 WeeWx5 weewx[869] ERROR weewx.cheetahgenerator: **** ZeroDivisionError: division by zero