Closed Rodrix33333 closed 1 year ago
I flashed the SD with the latest 1.3 image.
The latest is 1.4 which uses services as a method to run Visualizer. You run it with
sudo service visualizer start
(restart/stop)
You can stop the service and then run Visualizer with standard sudo python3 /home/Piano-LED-Visualizer/visualizer.py
command to see console output and errors.
Thanks a ton!
Should I update the code via GitHub or is there a link to the 1.4 image? (If so can you provide me the link to the image? I cannot find it).
Then I should do: sudo service visualizer stop sudo python3 /home/Piano-LED-Visualizer/visualizer.py
Correct?
If I connect to SSH to IP 192.168.0.8, will the url to visit the web console be http://192.168.0.8/?
Thanks so much for your help!!! :)
https://github.com/onlaj/Piano-LED-Visualizer/releases/tag/v1.4
Then I should do: sudo service visualizer stop sudo python3 /home/Piano-LED-Visualizer/visualizer.py
Correct?
Yep
You are the best! I will test and report asap.
If I connect to SSH to IP 192.168.0.8, will the url to visit the web console be http://192.168.0.8/?
Will the IP be the same?
Yes, unless you specified other port. It should show an error if default 80 is already taken by some other app.
Update: Installing v1.4 with BalenaEtcher results in blank screen on LCD. I tired with two SD cards. (Even waited 15-20 minutes and still blank) Reverting to original SD card with v1.3 results in correct loading of menu on LCD. System boots in about 2-3 minutes.
How should I proceed?
Any commands I can run on v1.3?
At least that one is able to boot successfully and I can access SSH.
Try to kill all python processes:
sudo pkill python3
and then launch visualizer with
sudo python3 /home/Piano-LED-Visualizer/visualizer.py
Thanks.
I am on a new fresh install of v1.3. I run that and I got:
Inport set to rtpmidi raspberrypi:Network 128:0 playport set to rtpmidi raspberrypi:Network 128:0
It does not output anything more and command does not end.
http://192.168.0.8/ still gives ERR_CONNECTION_REFUSED.
Suggestions? Thank you
Is there no message about webinterface starting? It seems that it doesn't load at all. Do you still have sd card with version 1.4? Try to load it, SSH into RPi and type
sudo service visualizer stop
and then, just to be sure
sudo pkill python3
then launch visualizer
sudo python3 /home/Piano-LED-Visualizer/visualizer.py
No there is no additional message, nor any message about webinterface starting.
The v1.4 does not boot at all. Blank screen.
Suggestions?
The v1.4 does not boot at all. Blank screen.
If the Visualizer script didn't start it will be blank, but it doesn't mean that you can't SSH into RPi.
No luck :/
If I put in the SD with v1.4 I cannot even login to SSH.
That's weird. Did you configure wifi connection through the wpa_supplicant file?
I re-did the whole procedure again with 1.4.
We are getting somewhere...
Finally! I see the web interface. So I guess I have to manually launch the sudo python3 /home/Piano-LED-Visualizer/visualizer.py every time?
I'm not sure yet. The reason I switched the boot process to service is because some users had problems with old method, which was cron. It was launching the script before RPi connected to the internet. With service method it waits for internet, but maybe something else is blocking the script.
You can try to add delay by editing it with
sudo nano /lib/systemd/system/visualizer.service
and then under [Service]
and before ExecStart=sudo python3 /home/Piano-LED-Visualizer/visualizer.py
add
ExecStartPre=/bin/sleep 30
Thanks so much! :) For others, here is the summary:
Do this everytime you turn on the device.
I am now trying with the second and last Raspberry Pi Zero WH that I have. I am trying to setup all the software part before I continue with the wiring which I haven't figured out yet (separate issue).
I cannot get the web interface working.
Steps I did:
I cannot think of anything else to test. You can see that I don't want to bother you or take your time, but I have no idea how to proceed...
Please help :.(
P.S: Trust me, I am not "lazy". I have read all the 46 issues and every single comment. I have also watched all of the following videos and read every single Youtube comment. I just cannot get this to work and I am getting desperate. I hope you can help :/ https://www.youtube.com/watch?v=IZgYViHcXdM https://www.youtube.com/watch?v=31xEZO2boNs https://www.youtube.com/watch?v=lbLjS3s74fU https://www.youtube.com/watch?v=s8uX3LVx21E