3 if [ "$TMPFS" == "" ]; then
9 echo "------- start player --------" | myLog
13 ## narrativeStructureReset # creating files for each location in /tmp/...
19 # ------------------------ main player ---------------------------------------------------------------
23 if [ ! -s "$TMPFS/$state" ]; then # no side messages (state file is empty)
26 CURRENTGPSStr=$(cat $CURRENTGPS)
27 prevtime=$(echo $CURRENTGPSStr | awk -F'|' '{print $3; exit}')
29 if [ "$prevtime" == "" ]; then prevtime=0; fi
30 tdiff=$(( $time - $prevtime ))
32 # -------- searchign for location based on GPS data ---------------------
34 # TODO: YOUR LOCATION SEARCHING HERE
36 # -------- if location has been found -----------------------------------
38 # TODO: YOUR PLAYBACK ROUTNE HERE
40 # playFile <your_current_file.mp3>
47 # echo "[$0] Main playback is busy (message playing?)" | myLog