Hi, I've changed UKMO to XXXX, WU, 'UKMO' and it's still failing with exactly the same error. I've attached the forecast template. I believe it produces a forecast page, like the one at http://sailing.mit.edu/weather/forecast.html.
Regards, Matt On Sunday, 27 October 2019 15:14:54 UTC, p q wrote: > > What's in forecast.html.tmpl? > > I'm guessing it doesn't like > current_forecast_source = UKMO > > If you comment that out or change it to something different, do you get > the same error? Try changing it to some nonsense like XXXX and see what > happens. > > > > > On Sun, Oct 27, 2019 at 7:18 AM Matt <[email protected] <javascript:>> > wrote: > >> HI Gary, >> >> Thank you for your response. I have attached everything requested. Let >> me know if there is anything else needed. >> >> I have changed some of the URLs for the weather gifs and images. They >> are the only changes i've made. >> >> Thanks, >> >> Matt >> >> On Saturday, 26 October 2019 01:40:51 UTC+1, gjr80 wrote: >>> >>> Hi, >>> >>> These sorts of errors can be particularly challenging to track down, the >>> main reason being the line numbers reported are generally meaningless as >>> the line numbers refer to a temporary file used by Cheetah that >>> unfortunately we do not have access to. Sometimes the best approach is to >>> remove portions of the template until you identify the line(s) causing the >>> error, though this doe snot work well for complex templates. I know you >>> have looked in weewx.conf and the exfoliation skin.conf, but we have >>> not nor do we have any idea of your config. Could you please post both. >>> Careful with weewx.conf as it may contain sensitive info such as >>> usernames, password, keys etc. You can use wee_debug >>> <http://weewx.com/docs/utilities.htm#wee_debug_utility> to produce a >>> report and post the report, wee_debug should obfuscate most sensitive >>> info but check first just in case. >>> >>> Can you also post a startup debug log. Edit weewx.conf, set debug = 1, >>> save weewx.conf and restart WeeWX. Post the log from WeeWX startup >>> through until the error trace is complete, don't edit or skip anything, it >>> is important to see the complete startup. >>> >>> Have you made any changes, no matter how inconsequential, to any of the >>> exfoliation skin files? If so broadly speaking what did you change? Also, >>> has the template ever worked or has it always failed? >>> >>> Gary >>> >>> On Saturday, 26 October 2019 02:24:05 UTC+10, Matt wrote: >>>> >>>> Hi, >>>> >>>> I've searched the group and the internet generally for this but cannot >>>> find any guidance. I've set up the exfoliation skin but I'm getting an >>>> error that I simply can't work out... >>>> >>>> >>>> Oct 25 17:20:30 weatherpi weewx[2455]: cheetahgenerator: Generate >>>> failed with exception '<type 'exceptions.KeyError'>' >>>> Oct 25 17:20:30 weatherpi weewx[2455]: cheetahgenerator: **** Ignoring >>>> template /etc/weewx/skins/exfoliation/forecast.html.tmpl >>>> Oct 25 17:20:30 weatherpi weewx[2455]: cheetahgenerator: **** Reason: >>>> 'U' >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** Traceback (most recent >>>> call last): >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** File >>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** >>>> fd.write(str(compiled_template)) >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** File >>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1045, in >>>> __str__ >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** rc = getattr(self, >>>> mainMethName)() >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** File >>>> "_etc_weewx_skins_exfoliation_forecast_html_tmpl.py", line 336, in respond >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** File >>>> "_etc_weewx_skins_exfoliation_forecast_html_tmpl.py", line 113, in >>>> __errorCatcher7 >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** File "<string>", line 1, >>>> in <module> >>>> Oct 25 17:20:30 weatherpi weewx[2455]: **** KeyError: 'U' >>>> >>>> >>>> I've checked my weewx.conf and skin.conf but I can't put my finger on >>>> anything. >>>> >>>> Can anyone point me in the right direction please? >>>> >>>> Many thanks, >>>> >>>> Matt >>>> >>> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/7f2a51b6-0b40-40a7-8c65-4368e4d2f153%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/7f2a51b6-0b40-40a7-8c65-4368e4d2f153%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Peter Quinn > (415)794-2264 > -- 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/07040a40-c2d4-437b-b5eb-bfb63149ca88%40googlegroups.com.
forecast.html.tmpl
Description: Binary data
