GithubHelp home page GithubHelp logo

Comments (12)

ChrisM510 avatar ChrisM510 commented on August 17, 2024 1

@ThePeePs Thank you! That worked! Not sure what the issue was, but I frankly don't care now. haha

from weewx-belchertown.

ChrisM510 avatar ChrisM510 commented on August 17, 2024

Ping...

from weewx-belchertown.

ThePeePs avatar ThePeePs commented on August 17, 2024

what did you change in the template?

from weewx-belchertown.

ChrisM510 avatar ChrisM510 commented on August 17, 2024

Its at the default now. Making changes had no effect...I had to make changes to the kiosk.html file itself that was created during the install.

from weewx-belchertown.

ThePeePs avatar ThePeePs commented on August 17, 2024

the kiosk.html.tmpl in the main Belchertown directory is what's used to generate the new kiosk.html page on every achieve loop of weewx. If the changes you are making are outside of the the elements that get updated by the JavaScript from MQTT events, you will need to refresh the page to see the changes.

from weewx-belchertown.

ChrisM510 avatar ChrisM510 commented on August 17, 2024

I know that....thats what I am saying...it is never updating. It made the kisok.html file on install, and that was it. Any recommendations on where to look to figure out what is/isn't going on? (BTW, thanks for replying, I do appreciate it.)

from weewx-belchertown.

ThePeePs avatar ThePeePs commented on August 17, 2024

Does the main page (index.html) get updated like it should?

from weewx-belchertown.

ChrisM510 avatar ChrisM510 commented on August 17, 2024

Yes. Literally everything else is working as it should.

from weewx-belchertown.

ThePeePs avatar ThePeePs commented on August 17, 2024

are there any errors or warnings in the weewx log file?

from weewx-belchertown.

ChrisM510 avatar ChrisM510 commented on August 17, 2024

Took me a while to parse through it (113MB), but I think I found something (below). Thoughts?

2024-01-08T16:15:27.965825-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: Compilation of template /etc/weewx/skins/Belchertown/kiosk.html.tmpl failed with exception '<class 'Cheetah.Parser.ParseError'>'
2024-01-08T16:15:27.966561-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Belchertown/kiosk.html.tmpl
2024-01-08T16:15:27.967605-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: **** Reason: #012#012Some #directives are missing their corresponding #end ___ tag: if#012Line 465, column 33 in file /etc/weewx/skins/Belchertown/kiosk.html.tmpl#012#012Line|Cheetah Code#012----|-------------------------------------------------------------#012462 |        </main>#012463 |    </div>#012464 |#012465 |    #include "footer.html.tmpl" #012                                     ^
2024-01-08T16:15:27.972720-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2024-01-08T16:15:27.973184-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
2024-01-08T16:15:27.973580-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****      compiled_template = Cheetah.Template.Template(
2024-01-08T16:15:27.973972-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-08T16:15:27.974642-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1337, in __init__
2024-01-08T16:15:27.975217-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****      self._compile(source, file, compilerSettings=compilerSettings)
2024-01-08T16:15:27.975766-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1634, in _compile
2024-01-08T16:15:27.976916-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****      templateClass = self.compile(source, file,
2024-01-08T16:15:27.977182-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-08T16:15:27.977304-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 775, in compile
2024-01-08T16:15:27.977407-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****      compiler.compile()
2024-01-08T16:15:27.977504-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Compiler.py", line 1810, in compile
2024-01-08T16:15:27.977673-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****      self._parser.parse()
2024-01-08T16:15:27.977820-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 1561, in parse
2024-01-08T16:15:27.977980-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****      self.assertEmptyOpenDirectivesStack()
2024-01-08T16:15:27.978152-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 2785, in assertEmptyOpenDirectivesStack
2024-01-08T16:15:27.978293-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****      raise ParseError(self, msg=errorMsg)
2024-01-08T16:15:27.978406-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  Cheetah.Parser.ParseError: 
2024-01-08T16:15:27.978556-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  
2024-01-08T16:15:27.978734-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  Some #directives are missing their corresponding #end ___ tag: if
2024-01-08T16:15:27.978851-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  Line 465, column 33 in file /etc/weewx/skins/Belchertown/kiosk.html.tmpl
2024-01-08T16:15:27.978952-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  
2024-01-08T16:15:27.979054-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  Line|Cheetah Code
2024-01-08T16:15:27.979178-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  ----|-------------------------------------------------------------
2024-01-08T16:15:27.979725-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  462 |        </main>
2024-01-08T16:15:27.980063-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  463 |    </div>
2024-01-08T16:15:27.980192-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  464 |
2024-01-08T16:15:27.980288-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  465 |    #include "footer.html.tmpl" 
2024-01-08T16:15:27.980392-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****                                       ^
2024-01-08T16:15:27.980512-05:00 weather weewx[132051] ERROR weewx.cheetahgenerator: ****  
2024-01-08T16:15:28.044969-05:00 weather weewx[132051] INFO weewx.cheetahgenerator: Generated 11 files for report Belchertown in 2.98 seconds
2024-01-08T16:15:28.052871-05:00 weather weewx[132051] INFO weewx.reportengine: Copied 3 files to /var/www/html

from weewx-belchertown.

ThePeePs avatar ThePeePs commented on August 17, 2024

Looks like an #end if might be missing. Since it doesn't say what #if it's looking at, your best bet might be to copy kiosk.html.tmpl from the repo, and replace it with your current one, and see if that fixes it.

And/or compare it to your current one to see if you can find the missing #end if line

from weewx-belchertown.

ChrisM510 avatar ChrisM510 commented on August 17, 2024

I'll give that a try, thanks for your help again!

from weewx-belchertown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.