Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I2C LCD not work
#1
lcd_adj plugin returns blank page with "internal server error"
I started SIP manually with these commands:
sudo systemctl stop sip
cd SIP
sudo python sip.py

When I select the SETTING LCD button it returns blank page with "internal server error"
This is the error it gives me:

File "/home/mauri/SIP/web/template.py", line 1130, in _template
    self._cache[name] = self._load_template(name)
  File "/home/mauri/SIP/web/template.py", line 1108, in _load_template
    return Template(
  File "/home/mauri/SIP/web/template.py", line 943, in __init__
    code = self.compile_template(text, filename)
  File "/home/mauri/SIP/web/template.py", line 1020, in compile_template
    compiled_code = compile(code, filename, "exec")
  File "templates/lcd_adj.html", line 7
    // Initialize behaviors
                          ^
SyntaxError: invalid syntax

Template traceback:
    File 'templates/lcd_adj.html', line 7
            // Initialize behaviors

::ffff:192.168.10.103:53596 - - [23/Aug/2023 23:47:55] "HTTP/1.1 GET /lcd" - 500 Internal Server Error
Reply
#2
I will take a look.

What versions of SIP and Python are you using?

Dan
<p><br></p>
Reply
#3
That plugin has not been updated to work with Python 3 yet.
I will work on it but it will probably take some time.

I will post here when it has been updated.

Dan
<p><br></p>
Reply
#4
I modified the file, now it works, can I post the updated file?
lcd_adj.html
Reply
#5
(2023 Sep 05, 11:13 PM)ZioMauri Wrote: I modified the file, now it works, can I post the updated file?
lcd_adj.html

It would be best if you email the file to
dkimberling59@gmail.com

I will update the plugin repository.

Dan
<p><br></p>
Reply
#6
HI
I sent you the file

Maurizio
Reply
#7
I would like to ask one more question, the time displayed on lcd is different from the one displayed in the web interface.
Is it possible to solve the problem?
Thank you

Maurizio
Reply
#8
I did not get the file yet.
could you try sending it again?

When I get your update I will take a look at the time issue.

Dan
<p><br></p>
Reply
#9
I sent it yesterday, it probably went to your spam.
I have now sent it again

Maurizio
Reply
#10
(2023 Sep 07, 03:42 PM)ZioMauri Wrote: I sent it yesterday, it probably went to your spam.
I have now sent it again

Maurizio
got it.

am checking the time issue.

Looks like SIP is showing local time and the LCD is showing UTC time.
I'll check the plugin code.

Dan
<p><br></p>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)