-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
[BUG]: LCD Display isn't working #631
Comments
Hi, for TP4 the display is not working yet. I need to fix that. And the notification system is also not yet fully developed. I hope to fix that in the next month. |
Hi, I think I fixed the code, so that it should work... Only the placeholders data is not complete (UI). But, you should now be able to add a display. And when you have added one, you should at least some startup and shutdown messages on your display. The code is currently in the 4.x.y.z branch. |
I tried a git pull and then reinstall but now I'm getting fatal errors... when I try to debug the system I get the following: pi@terrariumpi4:~ $ sudo service terrariumpi restart pi@terrariumpi4:~ /TerrariumPI $ source venv/bin/activate When I try to (venv) pi@terrariumpi4:~ /TerrariumPI $ sudo python terrariumPI.py Traceback (most recent call last): The worst part is that the system isn't working anymore :( |
Do this without sudo. https://theyosh.github.io/TerrariumPI/faq/how-to-debug-terrariumpi/ If that does not help, please rerun the installer: But I hope when you run it without sudo it should work. If that still produces an |
Crap, maybe my fault. I have added new hardware so there are new modules needed. So a rerun of the installer is needed. That should fix it. Maybe a rule of thumb to remember: When after a |
hey there :) Nope, I tried to re-run the installer (sudo ./install.sh) but the error continues. it says the following: pi@terrariumpi4:~ $ cd /home/pi/TerrariumPI/ I tried to: but it says: (I don't know if it helps somehow) |
Hmm this is strange... With TP3 this is indeed the correct way of fixing. But for TP4 it is a bit different. The So, the last thing you could, is to stop TP4. Then move the All the python packages are installed in the venv folder. By removing it and then reinstalling will enforce to install all packages again from online. As the old packages are gone. When the venv folder is not removed, the installer will only update packages that are newer. So that is not a full install then. Now you have installed something system wide, which I would not expect to work. Also, do a git pull again, as I have made again new updates for the notification part. Summary:
If this does not fix it.... then it could be wise to start preparing a new SD card and make backup of this one.... get some strange feeling your SD card is start to fail... |
Hello, Now I tried two things: It didn't work, and when I try to debug, here's what I got: pi@terrariumpi:~ $ sudo service terrariumpi stop thanks for your kind support and merry christmas :D |
OS Bullseye is not supported. You need to use the older Buster Lite image: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-legacy (Raspberry Pi OS Lite (Legacy)) |
Hmm, So you are now also testing on a different PI, so your animals stay happy? ;) |
actually i'm back to basics: using a mechanical timer and the automatic heater. since it's summer here in Brasil, the weather is quite warm so the systems are 'kinda' working offline. |
Hello, what I found out so far: |
I give up, I tried everything I could possibly know, even trying to pull the 4.000 version from github, but it just doesn't work at all. Tried deleting venv folder, everything. |
Damm, that is strange... But there is still another solution. You could use Docker to run TP4. https://theyosh.github.io/TerrariumPI/install/#docker That could make it work again. But not sure if this will work on a Raspberry PI zero. I have not tested my software with Zero W. I can try to see if I can get it to work. But this is a strange issue..... I wish I could help more. |
Hey there :) I tried to install using the docker image, and it says: pi@terrariumpi:~ $ sudo docker-compose up -d But when I try to access the web interface the system doesn't load. How can I debug the system installed with docker? I'm not very good when it comes to programming languages... the folders /opt/terrariumpi/logs, /data and /media are empty |
Hmm, ok, now it is getting a bit complicated... Because I think I found the original problem with the Pi Zero. There are two libraries that do not work in the Pi Zero and causing the crashes. So I would first try that, before we are going to debug Docker. As I do not know much about Docker, it will be a very long way, which I hope to skip with by using the original installation again. So, if you have installed TP4 on your Pi Zero at the manual way, using the
After this, the software should be working again. Start with And a quick Docker tip: |
hello, I tried the steps you told me, and had the following results: pi@terrariumpi:~ $ sudo -i pi@terrariumpi:~ $ sudo service terrariumpi start and when I try to debug the installation, I have the same error: pi@terrariumpi:~ $ cd /home/pi/TerrariumPI/ |
I just reformated the sd card and started all over again, installed RPI and when I try to install the numbered versions of numpy and lxml I have the following result: root@terrariumpi: /home/pi/TerrariumPI# source venv/bin/activate But the system have the same error: (venv) root@terrariumpi: /home/pi/TerrariumPI# python terrariumPI.py |
I have updated the code so that the numpy and lxml package should be already the right version. So that should not be needed anymore. This morning (in europe ;) ) I found that also
The you could try to start it manually: |
Hello there, I think that gevent was the culprit... What I did to make TPI starts: Install in a new formatted disk, when asked to reboot, chose to not reboot. Then I did the 'pip install gevent==21.8.0' as you said in the previous message. (venv) pi@terrariumpi:~/TerrariumPI $ python terrariumPI.py And when i hit ctrl+c: ^CKeyboardInterrupt |
Do a |
Pffffff, that was a journey to find it. But, now we know, I have updated the installer to install the older python packages for Pi Zero. So next time, it should work without any manual changes. So, the notification system is a bit different then on TP3. I hope you can work it out how to use it. Use the question mark icon to get help about using placeholders in messages. |
So, after a week, it is still working? Can we close this issue? |
Sure, it's working like a charm :D |
Hello!
I'm trying to put the LCD Display to work, but I can't make it..
First some background:
The LCD is correctly connected since i2c can detect it at 0x23:
i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- 23 -- -- -- -- -- -- -- -- -- -- -- --
(...)
Using a Rasp Zero W, Raspbian buster:
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
When I add a LCD in the notifications setup, I used the address "23" and "0x23", but the lcd still shows a line full of squares.
I tried to turn on some notifications (I don't know what to fill in those fields) and tried to turn on the 'show name' to get the display to at least show date/time.
Is there a step I'm missing?
The text was updated successfully, but these errors were encountered: