OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Starting ospi.py automatically Re: Re: Starting ospi.py automatically

#24725

Dan in CA
Participant

Hi Mike,

Try this simplified script in RC.local:


### Start the OSPi interval program
cd /home/pi/OSPi/
python ospi.py 0.0.0.0:8080 &

To make sure the rc.local file is executable, issue the following command:


sudo chmod +x /etc/rc.local

Once you reboot the Pi the program should start running in the background and you can ssh in and do other stuff.

There are more details in the wiki at:
http://rayshobby.net/mediawiki/index.php?title=Python_Interval_Program_for_OSPi

Dan