hello Pat,
I continue my modifications, I want to add ( or change ) 2 graphs but they
are not displayed
*weewx.conf:*
[[MobileReport]]
# The MobileReport uses the 'Mobile' skin, and the images and files
# are placed in a dedicated subdirectory.
skin = Mobile
enable = True
HTML_ROOT = /var/www/html/weewx/mobile
[[Highcharts_Belchertown]]
HTML_ROOT = /var/www/html/weewx/belchertown
skin = Highcharts_Belchertown
[[Belchertown]]
HTML_ROOT = /var/www/html/weewx/belchertown
skin = Belchertown
[[[Extras]]]
belchertown_root_url = "http://192.168.0.211/weewx/belchertown"
logo_image =
"http://192.168.0.211/weewx/belchertown/images/leRotoir.png"
footer_copyright_text = "BelchertownWeather.com"
#earthquake_enabled = 1
[[FTP]]
*skin.conf:*
[Extras]
# General Site Defaults
belchertown_root_url = "http://192.168.0.211/weewx/belchertown"
logo_image = ""
site_title = "My Weather Website"
radar_html = ""
footer_copyright_text = "My Weather Website"
footer_disclaimer_text = "Never make important decisions based on
info from this website."
# Manifest Settings
manifest_name = "My Weather Website"
manifest_short_name = "MWW"
# Enabled by default since majority of the theme is wrapped around the
charts
highcharts_enabled = 1
highcharts_graph_1 = "temperatureplot"
highcharts_graph_2 = "windplot"
highcharts_graph_3 = "rainplot"
highcharts_graph_4 = "winddirplot"
highcharts_graph_5 = "pressureplot" ===> graph not display
highcharts_graph_6 = "soilTemp1plot" ===> graph not display
highcharts_show_windchill = 1
highcharts_show_heatindex = 1
highcharts_show_apptemp = 0
highcharts_show_intemp = 0
Where did I forgot somethings or file to modify ?
thanks again for your help
Patrick
On Sunday, March 3, 2019 at 7:29:28 PM UTC+1, Patrick Tranchant wrote:
>
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.