Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank Web Interface - Flask not rendering template? #140

Closed
coolbikerdad opened this issue Nov 23, 2019 · 4 comments
Closed

Blank Web Interface - Flask not rendering template? #140

coolbikerdad opened this issue Nov 23, 2019 · 4 comments
Labels

Comments

@coolbikerdad
Copy link

coolbikerdad commented Nov 23, 2019

Hi.
I have had to make a new installation of my word clock and I am not getting the web interface rendering. I get a blank page on visiting http://<ip_address of clock>, and "view source" shows me the contents of app.html as-is. Calls to the APIs give expected results though, so flask is running. Looks like Vue is not doing its thing. I have been running the clock beautifully since June (a power failure zapped my SD card), and a new build on Raspbian Stretch and Buster give the same results. Maybe something in a recent Raspbian update has broken. This is the case for a new installation just from the git sources, not my customised configuration. Has anyone else had problems with new installs lately?
Regards, Neil

@FrankX0
Copy link
Contributor

FrankX0 commented Nov 24, 2019

Hi Neil,
I can confirm that the web interface currently results in a blank screen.
And yes: Vue is not doing its thing.

It fails to load iro.min.js from static/js (which is not there).
Furthermore there is a reference error: colorByTemp is not defined

These changes have been made from end of September.
@bk1285 @plotaBot can you have a look?

bk1285 added a commit that referenced this issue Nov 24, 2019
Resolves issue #140
@bk1285
Copy link
Owner

bk1285 commented Nov 24, 2019

Thanks for reporting, @coolbikerdad, @FrankX0.

The issue of the missing iro.min.js should be resolved. Please update to lastest master. The reference error however, I cannot reproduce. Please report, if the issue continues to exist...

Best,
Bernd

@bk1285 bk1285 added the bug label Nov 24, 2019
@FrankX0
Copy link
Contributor

FrankX0 commented Nov 24, 2019

Hi Bernd,

The web interface now renders correctly again (reference error is also gone now).
I however still see two errors when loading the page:

  • Failed to load resource: vue-color-picker.css
    But with the new color picker this css is not used anymore. Correct?
  • GET method not allowed: /api/color_temperature
    The clock API does not seem to support this method. Correct?

Regards,
Frank.

@bk1285
Copy link
Owner

bk1285 commented Jul 24, 2021

Please reopen, if still unresolved.

@bk1285 bk1285 closed this as completed Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants