############################################################# # script to listen to artnet/dmx commands and trigger stuff # # you can edit as you like # # written by marc-andre gasser (pocketvj.com) # ############################################################# #first number is the slot number, second number to dmx value #if there are several functions on the same channel, leave out the 0 value, it can cause trouble, so start 1-255 #show incoming values on command line: #1 % `echo "Slot ${slot_offset} is at ${slot_value}"` #slot 1 is for play, pause, recording #stops all tasks: 1 200-255 `/var/www/sync/stopall` #pause video player, hit again to unpause 1 1-10 `/var/www/sync/dbuscontrol.sh pause` #fast forward videoplayer #needs a sepearate script since its not possible to direct trigger bash commands # create screenshot from hdmi output 1 21-30 `/var/www/sync/screenshot` # show testscreen 1 31-40 `/var/www/sync/testscreen` # stop dmx recording 1 41-50 `/var/www/sync/ola_stoprec` # start dmx recording 1 51-60 `/var/www/sync/startdmxrecord01` 1 61-70 `/var/www/sync/startdmxrecord02` 1 71-80 `/var/www/sync/startdmxrecord03` 1 81-90 `/var/www/sync/startdmxrecord04` 1 91-100 `/var/www/sync/startdmxrecord05` # start dmx playback show 1 101-110 `/var/www/sync/startdmxplayback01` 1 111-120 `/var/www/sync/startdmxplayback02` 1 121-130 `/var/www/sync/startdmxplayback03` 1 131-140 `/var/www/sync/startdmxplayback04` 1 141-150 `/var/www/sync/startdmxplayback05` #slot 2 is for triggering videos loop without sync 2 1-20 `/var/www/sync/startless` 2 21-30 `/var/www/sync/startless01` 2 31-40 `/var/www/sync/startless02` 2 41-50 `/var/www/sync/startless03` 2 51-60 `/var/www/sync/startless04` 2 61-70 `/var/www/sync/startless05` 2 71-80 `/var/www/sync/startless06` 2 81-90 `/var/www/sync/startless07` 2 91-100 `/var/www/sync/startless08` 2 101-110 `/var/www/sync/startless09` 2 111-120 `/var/www/sync/startless10` 2 241-255 `/var/www/sync/stopall` #slot 3 is for triggering videos once without sync 3 1-30 `/var/www/sync/once01` 3 31-40 `/var/www/sync/once02` 3 41-50 `/var/www/sync/once03` 3 51-60 `/var/www/sync/once04` 3 61-70 `/var/www/sync/once05` 3 71-80 `/var/www/sync/once06` 3 81-90 `/var/www/sync/once07` 3 91-100 `/var/www/sync/once08` 3 101-110 `/var/www/sync/once09` 3 111-120 `/var/www/sync/once10` 3 241-255 `/var/www/sync/stopall` #slot 4 is reserved for other video triggers #slot 5 is for adjusting speed, its value ranges from 0 to 4 in 0.1 increments 5 0-4 `/var/www/sync/dbuscontrol.sh range ${slot_value}` #you can also scale the actual playing video, for this you woul map to following command: #5 0-100 `/var/www/sync/omxsizetocenter ${slot_value}` #slot 6 is for adjusting alpha/opacity of played video: # here make sure to go to zero 6 0-255 `/var/www/sync/dbuscontrol.sh setalpha ${slot_value}` #slot 7 is to trigger mapping presets 7 1-30 `/var/www/sync/mapperimport1` 7 31-40 `/var/www/sync/mapperimport2` 7 41-50 `/var/www/sync/mapperimport3` 7 51-60 `/var/www/sync/mapperimport4` 7 61-70 `/var/www/sync/mapperimport5` 7 241-255 `/var/www/sync/stopall` #testscreen on, turn off with stop command 29 128-255 `/var/www/sync/testscreen` #imageplayer 30 128-255 `/var/www/sync/startimage` #startaudio only 31 128-255 `/var/www/sync/startaudio` #slot 50 is reserved for display/beamer functions # beamer on/off via pjlink 50 1-30 `/var/www/sync/beameron` 50 31-40 `/var/www/sync/beameroff` # It is possible to add way more commands, #open an issue on github if you need more functions or just add them. ####################################################################### #uncomment following lines to display the dmx values on each slots: # ####################################################################### #1 % `echo "Slot ${slot_offset} is at ${slot_value}"` # #2 % `echo "Slot ${slot_offset} is at ${slot_value}"` # #3 % `echo "Slot ${slot_offset} is at ${slot_value}"` # #4 % `echo "Slot ${slot_offset} is at ${slot_value}"` # #5 % `echo "Slot ${slot_offset} is at ${slot_value}"` # #######################################################################