X-Git-Url: https://git.rvb.name/openhab-process.git/blobdiff_plain/662e5ab1419852189fcf45dcfd46fef5ef66cae9..refs/heads/master:/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)