davemal wrote: 
> 
> 1. Will this trigger on volume events ? I have tried
> "event":[["mixer"],["volume","+1"]]}  and a few variations but not able
> to fire.
> 

"event":[["mixer"], ["volume"]]

> 
> 2. Is it possible to isolate to events from a specific player ?
> 
The player status is passed as a parameter to the executed command. This
includes the player id/name, so e.g. for a shell script one can do:


Code:
--------------------
    
  PL=$(echo $2|sed -e 's/.*player_id":"\(..:..:..:..:..:..\)".*/\1/')
  VOL=$(echo $2|sed -e 's/.*mixer volume":\([[:digit:]]*\).*/\1/')
  if [[ "$PL" == "00:11:22:33:44:55" ]]; then
        echo "volume: $VOL"
  fi
--------------------


I'd recommend using 'jq' (https://stedolan.github.io/jq/) for more
complex json processing.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI |
Playlist Editor / Generator | Music Classification | Similar Music |
Announce | EventTrigger | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=110344

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to