Skip to content

Commit

Permalink
Show hostname on startup
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
avanc committed May 5, 2021
1 parent e3a705b commit e2ef3b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package/photoframe/photoframe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ function get_image {


function start {
counter=0
error_settopic 01_Startup
error_write "Go to http://$(hostname) to configure photOS"

while true; do
IMAGE=$(get_image)
Expand All @@ -135,6 +138,13 @@ function start {
fbv $PARAMS_FBV "$IMAGE"
error_display
sleep $SLIDESHOW_DELAY

counter=$((counter+1))
if [ $counter -eq 10 ]
then
error_settopic 01_Startup
fi

done
}

Expand Down

0 comments on commit e2ef3b8

Please sign in to comment.