summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--music_status.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/music_status.sh b/music_status.sh
index ef468df..2e9cc87 100644
--- a/music_status.sh
+++ b/music_status.sh
@@ -1,12 +1,12 @@
#Script that writes the current mpd status
#To be called by a remote device
-SSH_HOST="localhost"
+SSH_HOST='aberrant@ceres.local'
STATUS=$(mpc status | grep paused)
REMOTE_PORT_COMMAND='(arduino-cli board list | grep dev | grep -o '^\S*')'
if [ -z $STATUS ] #not paused
then
SONG=$(mpc current)
- ssh $SSH_HOTS "echo m$SONG > $REMOTE_PORT_COMMAND"
+ ssh $SSH_HOST "echo m$SONG > $REMOTE_PORT_COMMAND"
else #paused
ssh $SSH_HOST "echo mPAUSED > $REMOTE_PORT_COMMAND"
fi