OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › rc.local woes › Re: Re: rc.local woes
May 27, 2013 at 12:07 am
#23728
Ray
Keymaster
First of all, I assume your ospi.py is copied to /var/www/opensprinkler folder, otherwise it obviously won’t find the .py file to run. Second, instead of using the $host and $port variables, I believe you can just do ‘python ospi.py 80’ to start up the program on http port 80. Note that you don’t have to put the files in /var/www/opensprinkler folder — when the python server starts, it will map the http link to whatever folder it’s running the ospi.py program from. For example, you can put it in /home/yourusername/OSPI and run the python program from there.