hello,

I recently installed Belchertown 0.9; Goog Job and Skin.
I modified index.html.tmpl of Records to add a value " soiltemp1 " but I 
have an error, I don't understand.

see syslog:

Mar  3 19:25:38 raspberrypi weewx[8126]: copygenerator: copied 0 files to 
/var/www/html/weewx/belchertown
Mar  3 19:25:42 raspberrypi weewx[8126]: cheetahgenerator: Generate failed 
with exception '<class 'Cheetah.Parser.ParseError'>'
Mar  3 19:25:42 raspberrypi weewx[8126]: cheetahgenerator: **** Ignoring 
template /home/weewx/skins/Belchertown/records/index.html.tmpl
Mar  3 19:25:42 raspberrypi weewx[8126]: cheetahgenerator: **** Reason: 
#012#012#end found, but nothing to end#012Line 363, column 1 in file 
/home/weewx/skins/Belchertown/records/index.html.tmpl#012#012Line|Cheetah 
Code#012----|-------------------------------------------------------------#012360
 
|                                    </tr>#012361 
|                                    #end if#012362 
|                                    #end if#012363 
|                                </tbody>#012     ^#012364 
|                            </table>#012365 |                        
</div>#012366 |                        <!-- End records table row -->
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  Traceback (most recent call 
last):
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      
filtersLib=weewx.cheetahgenerator)
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1259, in 
__init__
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      self._compile(source, 
file, compilerSettings=compilerSettings)
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1553, in 
_compile
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      
keepRefToGeneratedCode=True)
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 743, in compile
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      compiler.compile()
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Compiler.py", line 1664, in 
compile
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      self._parser.parse()
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Parser.py", line 1489, in parse
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      self.eatDirective()
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Parser.py", line 1613, in 
eatDirective
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      directiveParser()
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Parser.py", line 1764, in 
eatEndDirective
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      
self.popFromOpenDirectivesStack(directiveName)
Mar  3 19:25:42 raspberrypi weewx[8126]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Parser.py", line 2644, in 
popFromOpenDirectivesStack
Mar  3 19:25:42 raspberrypi weewx[8126]: ****      raise ParseError(self, 
msg="#end found, but nothing to end")
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  ParseError:
Mar  3 19:25:42 raspberrypi weewx[8126]: ****
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  #end found, but nothing to 
end
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  Line 363, column 1 in file 
/home/weewx/skins/Belchertown/records/index.html.tmpl
Mar  3 19:25:42 raspberrypi weewx[8126]: ****
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  Line|Cheetah Code
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  
----|-------------------------------------------------------------
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  360 
|                                    </tr>
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  361 
|                                    #end if
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  362 
|                                    #end if
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  363 
|                                </tbody>
Mar  3 19:25:42 raspberrypi weewx[8126]: ****       ^
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  364 
|                            </table>
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  365 |                        
</div>
Mar  3 19:25:42 raspberrypi weewx[8126]: ****  366 |                        
<!-- End records table row -->
Mar  3 19:25:42 raspberrypi weewx[8126]: ****

and I join the end of file that I modified.

<tr>
                                        <td class="records-header" 
colspan=5>Enregistrements Température du Sol</td>
                                    </tr>
                                    <tr>
                                        <td class="records-header" 
colspan=1> </td>
                                        <td class="records-header" 
colspan=2>$current.dateTime.format("%Y")</td>
                                        <td class="records-header-alltime" 
colspan=2>All Time</td>
                                    </tr>
                                    <tr>
                                       <td>Température du Sol Maximum</td>
                                       <td 
class="leftborder">$year.soilTemp1.max</td>
                                       <td 
id="year-soilTemp1-max-ts"></td><!-- moment.js -->
                                       <td class="leftborder" 
id="at-soilTemp1-max-ts"></td><!-- moment.js -->
                                       <td>$alltime.soilTemp1.max</td>
                                    </tr>
                                    <tr>
                                        <td>Température du Sol Minimun</td>
                                        <td 
class="leftborder">$year.soilTemp1.min</td>
                                        <td 
id="year-soilTemp1-min-ts"></td><!-- moment.js -->
                                        <td class="leftborder" 
id="at-soilTemp1-min-ts"></td><!-- moment.js -->
                                        <td>$alltime.soilTemp1.min</td>
                                    </tr>
                                    #if $year.radiation.has_data
                                    <tr>
                                        <td>Highest Solar Radiation</td>
                                        <td 
class="leftborder">$year.radiation.max</td>
                                        <td 
id="year-radiation-max-ts"></td><!-- moment.js -->
                                        <td class="leftborder" 
id="at-radiation-max-ts"></td><!-- moment.js -->
                                        <td>$alltime.radiation.max</td>
                                    </tr>
                                    #end if
                                    #if $year.UV.has_data
                                    <tr>
                                        <td>Highest UV</td>
                                        <td 
class="leftborder">$year.UV.max</td>
                                        <td id="year-uv-max-ts"></td><!-- 
moment.js -->
                                        <td class="leftborder" 
id="at-uv-max-ts"></td><!-- moment.js -->
                                        <td>$alltime.UV.max</td>
                                    </tr>
                                    #end if
                                    #end if
                                </tbody>
                            </table>
                        </div>
                        <!-- End records table row -->


                    </div>
                </article>
            </main>
        </div>
    </div>


    #include "footer.html.tmpl"

thanks for your help

Patrick



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

Reply via email to