X-Git-Url: https://git.rvb.name/openhab-process.git/blobdiff_plain/4a431531b59156140584a3b0f2e5f4e5188a1f75..e510b8ef776ca591d62fb19203e98e19d3d4fcda:/mqtt-mpd/mqmpd?ds=sidebyside diff --git a/mqtt-mpd/mqmpd b/mqtt-mpd/mqmpd index 5d378ea..595c08d 100755 --- a/mqtt-mpd/mqmpd +++ b/mqtt-mpd/mqmpd @@ -1,5 +1,7 @@ #!/bin/bash +id=`hostname`-$$ + if [ "$1" = "stop" ] then @@ -28,7 +30,7 @@ done # сами остаемся слушать команды -mosquitto_sub -v -h $mqhost -p $mqport -t "$mqcmd/#" -u $mquser -P $mqpassword | while read line +mosquitto_sub -i mqtt-mpd-$id -v -h $mqhost -p $mqport -t "$mqcmd/#" -u $mquser -P $mqpassword | while read line do template="s!$mqcmd/!!" @@ -113,7 +115,6 @@ do esac ;; currentnum) - $mpccmd pause $mpccmd play $arg ;; repeat|random|single|consume)