Hi Susan,

>From memory this is caused by a corrupted download from the BOM. One
of the xml files will be incomplete and has ## as placeholders (
instead of data) within the file.

Navigate to /var/lib/weewx/aussearch and delete the *.xml files and on
the next run aussearch should replace them and will hopefully fetch a
good file.

Ah, Just found and checked a stale directory that I backed up here -
the line that bites looks something like.

grep * -e '##'

hash-hash-IDV10753.xml:                <element
type="forecast_icon_code">##</element>
hash-hash-IDV10753.xml:                <element
type="air_temperature_minimum" units="Celsius">##</element>
hash-hash-IDV10753.xml:                <element
type="air_temperature_maximum" units="Celsius">##</element>


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie


On 1 December 2017 at 18:00,  <[email protected]> wrote:
> Weewx has just started to create this error:
>
> Dec  1 17:51:04 weather weewx[20911]: cheetahgenerator: Generate failed with
> exception '<type 'exceptions.KeyError'>'
>
> Dec  1 17:51:04 weather weewx[20911]: cheetahgenerator: **** Ignoring
> template /home/weewx/skins/Responsive/forecast.html.tmpl
>
> Dec  1 17:51:04 weather weewx[20911]: cheetahgenerator: **** Reason: '##'
>
> Dec  1 17:51:04 weather weewx[20911]: ****  Traceback (most recent call
> last):
>
> Dec  1 17:51:04 weather weewx[20911]: ****    File
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 315, in generate
>
> Dec  1 17:51:04 weather weewx[20911]: ****      print >> _file, text
>
> Dec  1 17:51:04 weather weewx[20911]: ****    File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
> __str__
>
> Dec  1 17:51:04 weather weewx[20911]: ****      rc = getattr(self,
> mainMethName)()
>
> Dec  1 17:51:04 weather weewx[20911]: ****    File
> "_home_weewx_skins_Responsive_forecast_html_tmpl.py", line 487, in respond
>
> Dec  1 17:51:04 weather weewx[20911]: ****    File
> "_home_weewx_skins_Responsive_forecast_html_tmpl.py", line 141, in
> __errorCatcher11
>
> Dec  1 17:51:04 weather weewx[20911]: ****    File "<string>", line 1, in
> <module>
>
> Dec  1 17:51:04 weather weewx[20911]: ****  KeyError: '##'
>
> Dec  1 17:51:20 weather weewx[20911]: cheetahgenerator: Generate failed with
> exception '<type 'exceptions.KeyError'>'
>
> Dec  1 17:51:20 weather weewx[20911]: cheetahgenerator: **** Ignoring
> template /home/weewx/skins/Responsive/index.html.tmpl
>
> Dec  1 17:51:20 weather weewx[20911]: cheetahgenerator: **** Reason: '##'
>
> Dec  1 17:51:20 weather weewx[20911]: ****  Traceback (most recent call
> last):
>
> Dec  1 17:51:20 weather weewx[20911]: ****    File
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 315, in generate
>
> Dec  1 17:51:20 weather weewx[20911]: ****      print >> _file, text
>
> Dec  1 17:51:20 weather weewx[20911]: ****    File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
> __str__
>
> Dec  1 17:51:20 weather weewx[20911]: ****      rc = getattr(self,
> mainMethName)()
>
> Dec  1 17:51:20 weather weewx[20911]: ****    File
> "_home_weewx_skins_Responsive_index_html_tmpl.py", line 1674, in respond
>
> Dec  1 17:51:20 weather weewx[20911]: ****    File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1615, in
> _handleCheetahInclude
>
> Dec  1 17:51:20 weather weewx[20911]: ****
> self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
>
> Dec  1 17:51:20 weather weewx[20911]: ****    File
> "_home_weewx_skins_Responsive_index_forecast_tmpl.py", line 150, in respond
>
> Dec  1 17:51:20 weather weewx[20911]: ****  KeyError: '##'
>
> Dec  1 17:51:20 weather weewx[20911]: cheetahgenerator: Generated 7 files
> for report StandardReport in 50.82 seconds
>
>
> This has managed to stop the main HTML page being generated (although the
> images are being created and displayed).
>
>
> I'm not sure if it helps but the start of the 'index-forecast.tmpl' file is:
>
> ## Australian Index Forecast panel
>
> ## Included in index.html.tmpl
>
> ##
>
> ## Depending of your location and XML file in skin.conf
>
> ## you will need to adjust this file in a few places
>
> ##
>
> #import dateutil.parser
>
>             <div class="panel panel-primary">
>
>               <div class="panel-heading">
>
>                 <h4 class="panel-title">
>
>                   <a class="accordian-toggle collapsed"
> data-toggle="collapse" data-parent="#accordionTwo"
> href="#collapseAccTwoFive">
>
>                     Forecast
>
>                   </a>
>
>                 </h4>
>
>               </div>
>
>               <div class="panel-collapse collapse" id="collapseAccTwoFive">
>
> #set $FC =
> $aus.FC_LOCAL.forecast('area',description=str($aus.index_locality))
>
>
> (There is more and I can attach it if needed.)
>
> Any suggestions on what the error might be and how to fix it?
>
> Susan
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to