Skip to content

Commit

Permalink
Clarify IP Address in install.sh
Browse files Browse the repository at this point in the history
Displays option of viewing on localhost or LAN IP.
  • Loading branch information
Taylor Kline committed Dec 24, 2013
1 parent 9d18e7b commit 81f7d9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ fifo = $HOME/pidora/ctl" >> ~/.config/pianobar/config
echo "We think we're done. Let's test it, shall we?"
read -n1 -r -p "Press any key to continue..."
clear
echo "We're going to start the Pidora webserver now. You can access it by going to http://127.0.0.1:8080 in a browser."
LANip=`ip addr show | awk '$1=="inet" {print $2}' | cut -f1 -d'/'`
echo "We're going to start the Pidora webserver now."
echo "You can access it by going to http://127.0.0.1:8080 in the RPi's browser or"
echo "http://"$LANip":8080 on a device on the same Local Area Network."
echo "You should have full control of pianobar. Experiment with it to be sure."
echo "You can stop the server at any time by pressing Ctrl+C."
python pidora/hello.py
Expand Down

0 comments on commit 81f7d9a

Please sign in to comment.