summaryrefslogtreecommitdiff
path: root/music_status.sh
diff options
context:
space:
mode:
Diffstat (limited to 'music_status.sh')
-rwxr-xr-xmusic_status.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/music_status.sh b/music_status.sh
deleted file mode 100755
index 39b806b..0000000
--- a/music_status.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#Script that writes the current mpd status
-#To be called by a remote device
-
-SSH_HOST='aberrant@ceres.local'
-REMOTE_PORT_COMMAND="\$(arduino-cli board list | grep dev | grep -o '^\S*')"
-LAST_VAL=""
-while true
-do
- STATUS=$(mpc status | grep paused)
- if [ -z "$STATUS" ];
- then
- SONG=$(mpc current)
- if [ "$SONG" != "$LAST_VAL" ];
- then
- ssh "$SSH_HOST" "echo m$SONG > $REMOTE_PORT_COMMAND"
- LAST_VAL="$SONG"
- fi
- else
- if [ "PAUSED" != "$LAST_VAL" ];
- then
- ssh "$SSH_HOST" "echo mPAUSED > $REMOTE_PORT_COMMAND"
- LAST_VAL="PAUSED"
- fi
- fi
- sleep 5
-done