10/18/2023 Map Stopped Working?
Visit this post for the fix
Hello,
I recently replaced my Pi. I downloaded the latest version via the downloads page and flashed it to a new SD card. Booted up the Pi, and using the BerryLAN app, connected the Pi to the wifi. It assigned 10.0.0.70 for the IP however, when I go to the appropriate page at http://10.0.0.70:5000 it just says it cannot connect to the server. Computer and Pi are on the same wifi network. I hooked the Pi up to a monitor and it looks like its running the code fine, but I just can't access the web app. I checked the forums and didn't really see anything with this similar issue so any help would be greatly appreciated.
Good to hear from you. If you believe the code is running correctly, then on boot-up you should see text in Green that spells out what the URL is that you would have to use in the web browser to connect. So reboot and watch your monitor and take note of the URL in green.
Another way is to use the command line and enter this;
cd /NeoSectional sudo nano logfile.log
This will display the log file, and you should be able to scroll through it and see what the URL/IP address is that is assigned. Either should work to confirm what URL you should be using. Let us know. - Mark
@markyharris Hey Mark. How does one enter those commands with the script constantly running to where I can't get anything typed?
startup
I see the conundrum.
You can SSH into the RPi from another computer and see if the URL you believe it is and see if it allows you to log in. If not, then reboot and if necessary video the boot process so you can play it back. At some point you should see the webapp.py script print out the URL/IP in green. It may scroll by quickly, so video-ing it will help so you can play it back and pause at that screen.
I've not tried this, but you can also try 'ctrl-F2' to suspend the script. Let me know if that works. - Mark
of note from the video I posted is says "python3: can't open file '/NeoSectional/webapp.py' : [Errno 2] No such file or directory"
I was able to log in using WinSCP. The script looks like its trying to reference the webapp.py file but in the files themselves theres only webapp.py.orig. The source files on the GitHub seem to be more recent than the image file. I was not able to transfer that webapp.py file over though because it gave me a "you do not have permission" error.
Ok, let's do this;
cd /NeoSectional sudo wget https://raw.githubusercontent.com/markyharris/livesectional/master/webapp.py sudo reboot now
This will copy over the file from github and reboot. - Mark
SSH into the RPi using the URL listed in green when it boots up. - Mark
We are in business. So, to kill the running script it was alt+f2 for my keyboard I guess. the commands you listed above successfully copied over the file. also to note, before this post I had to set the displays in nano to "0" to get the script to run properly from he beginning. not sure what that was about but oh well. I can now access the web app. Thanks for the help.
Sorry for the hassles. But I'm glad you got it fixed. - Mark