Closed webby619 closed 7 years ago
That's strange that you're not getting any errors. First of all, did you run python as root? (sudo python controller.py)?
I will try that next BRB
Still sitting there....
Ok whatever I have done since the OP it now goes to the my garage page with :8081
Ok I take that back... what happen was when I input sudo python controller.py in SSH then let that hang there (like the screen grab) It works. So I have in putty it sitting there, doing it's python thing then go to the browser type in 192.168.11.3:8081 it reads it. Otherwise nothing.
I'm not sure I fully understand your last comment? Are you still having an issue or do you have it worked out?
When I sudo python controller.py it is working (like the screen grab) when I close out of Putty/SSH I can't log into 192.168.11.3:8081
So to me it looks like python-twisted is not staying active? Running?
That's the expected behavior. You can't simply run it inside a putty/ssh connection and expect it to live past your closing the connection.
See the readme for instructions on how to set the controller to automatically start when the RPI is booted. Copied below:
Set to launch at startup Simply add the following line to your /etc/rc.local file, just above the call to exit 0: (cd ~pi/garage-door-controller; python controller.py)&
Done that unless I have "wrote" it in there wrong. I have rebooted a couple times since too.
after your pi boots up, run "ps -ax | python" . What do you get?
Ok really, truelly I think I have it set up, or at least this problem solved.
I had to modify the code for:
(cd ~pi/garage-door-controller; python controller.py)&
to this: (cd /home/pi/¬pi/garage-door-controller; python controller.py)&
In rc.local
Hey so when I do put in (iphost):8080 I get nothing. When I python controller.py in putty (SSH) it bumps down to the next line and hangs there until I closed out of Putty after about 10 min.
What must I be doing wrong? I am using a Pi Zero W
Can't get into :8080 (or :8081 for that matter) but can SSH in and WinSCP has access.