OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) gzip: stdin: not in gzip format Re: Re: gzip: stdin: not in gzip format

#24764

kkpwrh2o
Member

went back and checked this code to make sure I had it in correctly. I copied and pasted the exact text from the readme file just to make sure I had it right.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %sn" "$_IP"
fi
host=$(hostname -I | sed 's/ *$//g')
port=:80
cd /home/pi/OSPi
## If you aren't sure that the path to python on your Pi is /usr/bin/, use whereis python to determine the location /usr/bin/python ospi.p$
exit 0

I notice “fi” just before host=$(hostname -i….. line. Is that correct? Or is It is supposed to be “if” and I fat fingered it somehow?