I2C LCD not work - Printable Version +- SIP (https://nosack.com/sipforum) +-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1) +--- Forum: Plugin questions (https://nosack.com/sipforum/forumdisplay.php?fid=6) +--- Thread: I2C LCD not work (/showthread.php?tid=313) Pages:
1
2
|
I2C LCD not work - ZioMauri - 2023 Aug 23 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 RE: I2C LCD not work - dan - 2023 Aug 26 I will take a look. What versions of SIP and Python are you using? Dan RE: I2C LCD not work - dan - 2023 Aug 26 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 RE: I2C LCD not work - ZioMauri - 2023 Sep 05 I modified the file, now it works, can I post the updated file? lcd_adj.html RE: I2C LCD not work - dan - 2023 Sep 06 (2023 Sep 05, 11:13 PM)ZioMauri Wrote: I modified the file, now it works, can I post the updated file? It would be best if you email the file to dkimberling59@gmail.com I will update the plugin repository. Dan RE: I2C LCD not work - ZioMauri - 2023 Sep 06 HI I sent you the file Maurizio RE: I2C LCD not work - ZioMauri - 2023 Sep 06 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 RE: I2C LCD not work - dan - 2023 Sep 07 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 RE: I2C LCD not work - ZioMauri - 2023 Sep 07 I sent it yesterday, it probably went to your spam. I have now sent it again Maurizio RE: I2C LCD not work - dan - 2023 Sep 08 (2023 Sep 07, 03:42 PM)ZioMauri Wrote: I sent it yesterday, it probably went to your spam.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 |