OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › gzip: stdin: not in gzip format › Re: Re: gzip: stdin: not in gzip format
July 11, 2013 at 1:46 am #24763
If you are running it on startup, you should be seeing something like this:
[email protected]:~# ps -ef | grep python
root 2303 2096 0 Jul09 ? 00:06:29 /usr/bin/python ospi.py 192.168.1.60:8080
root 16020 16011 0 18:36 pts/1 00:00:00 grep python
In my case, I start it in /etc/rc.local, which should look something like this:
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# By default this script does nothing.
echo "[$(date)] rc.local executing" >> /tmp/rc.local.debug
host=$(hostname -I | sed 's/ *$//g')
echo "[$(date)] rc.local starting ospi.py $host$port" >> /tmp/rc.local.debug
/usr/bin/python ospi.py $host$port
I added the “sleep 30” because it did not always seem to start properly. After I added that, it seems to start without issue.
I don’t think there would be any issue, by the way, if you just left out the host and port stuff and started with “/usr/bin/python ospi.py 8080”