diff --git a/AUTHORS b/AUTHORS index b7dd1d9bce..048265c9eb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -14,7 +14,7 @@ Contributors: Heikki Junnila, bug fixes for the debian packaging files Laurent (Renzo), Debian packages, FreeBSD & RDM testing. Lukas Erlinghagen, win32 port. - Johan Nilsson, Philips Hue trigger config + Johan Nilsson, Philips Hue, Osram Lightify & crelay trigger config Joshua Moyerman, ArtNet fixes. Masaki Muranaka, various patches Nicolas, for the win32 port of libartnet diff --git a/tools/ola_trigger/Makefile.mk b/tools/ola_trigger/Makefile.mk index 4575ff3b06..c880cb46b7 100644 --- a/tools/ola_trigger/Makefile.mk +++ b/tools/ola_trigger/Makefile.mk @@ -3,6 +3,7 @@ EXTRA_DIST += \ tools/ola_trigger/config.ypp dist_noinst_DATA += \ + tools/ola_trigger/contrib/crelay.conf \ tools/ola_trigger/contrib/mac_itunes.conf \ tools/ola_trigger/contrib/mac_volume.conf \ tools/ola_trigger/contrib/philips_hue_osram_lightify.conf \ @@ -73,7 +74,7 @@ tools_ola_trigger_ActionTester_LDADD = $(COMMON_TESTING_LIBS) \ test_scripts += tools/ola_trigger/FileValidateTest.sh tools/ola_trigger/FileValidateTest.sh: tools/ola_trigger/Makefile.mk - echo "for FILE in ${srcdir}/tools/ola_trigger/example.conf ${srcdir}/tools/ola_trigger/test_file.conf ${srcdir}/tools/ola_trigger/contrib/mac_volume.conf ${srcdir}/tools/ola_trigger/contrib/mac_itunes.conf ${srcdir}/tools/ola_trigger/contrib/philips_hue_osram_lightify.conf; do echo \"Checking \$$FILE\"; ${top_builddir}/tools/ola_trigger/ola_trigger${EXEEXT} --validate \$$FILE; STATUS=\$$?; if [ \$$STATUS -ne 0 ]; then echo \"FAIL: \$$FILE caused ola_trigger to exit with status \$$STATUS\"; exit \$$STATUS; fi; done; exit 0" > tools/ola_trigger/FileValidateTest.sh + echo "for FILE in ${srcdir}/tools/ola_trigger/example.conf ${srcdir}/tools/ola_trigger/test_file.conf ${srcdir}/tools/ola_trigger/contrib/crelay.conf ${srcdir}/tools/ola_trigger/contrib/mac_volume.conf ${srcdir}/tools/ola_trigger/contrib/mac_itunes.conf ${srcdir}/tools/ola_trigger/contrib/philips_hue_osram_lightify.conf; do echo \"Checking \$$FILE\"; ${top_builddir}/tools/ola_trigger/ola_trigger${EXEEXT} --validate \$$FILE; STATUS=\$$?; if [ \$$STATUS -ne 0 ]; then echo \"FAIL: \$$FILE caused ola_trigger to exit with status \$$STATUS\"; exit \$$STATUS; fi; done; exit 0" > tools/ola_trigger/FileValidateTest.sh chmod +x tools/ola_trigger/FileValidateTest.sh CLEANFILES += tools/ola_trigger/FileValidateTest.sh diff --git a/tools/ola_trigger/contrib/crelay.conf b/tools/ola_trigger/contrib/crelay.conf new file mode 100644 index 0000000000..ff1488736c --- /dev/null +++ b/tools/ola_trigger/contrib/crelay.conf @@ -0,0 +1,38 @@ +# OLA Trigger config to control relays using crelay - https://github.com/ondrej1024/crelay/ +# Copyright (C) 2016-2017 Johan Nilsson. www.gobo.ws + + + +# DMX protocol + +############################################################################### + +# Channel 1 relay 1 on/off. Value 0-114 off. 140-255 on +# Channel 2 relay 2 on/off. Value 0-114 off. 140-255 on +# Channel 3 relay 3 on/off. Value 0-114 off. 140-255 on +# Channel 4 relay 4 on/off. Value 0-114 off. 140-255 on + + + +# Configuration + +############################################################################### + +hostname='127.0.0.1' # crelay hostname or IP address +port='8000' # crelay port + + + +# Triggers + +############################################################################### +# Slot Values Action + +1 0-114 -`curl '--data' '"pin=1&status=0"' 'http://${hostname}:${port}/'` +1 140-255 +`curl '--data' '"pin=1&status=1"' 'http://${hostname}:${port}/'` +2 0-114 -`curl '--data' '"pin=2&status=0"' 'http://${hostname}:${port}/'` +2 140-255 +`curl '--data' '"pin=2&status=1"' 'http://${hostname}:${port}/'` +3 0-114 -`curl '--data' '"pin=3&status=0"' 'http://${hostname}:${port}/'` +3 140-255 +`curl '--data' '"pin=3&status=1"' 'http://${hostname}:${port}/'` +4 0-114 -`curl '--data' '"pin=4&status=0"' 'http://${hostname}:${port}/'` +4 140-255 +`curl '--data' '"pin=4&status=1"' 'http://${hostname}:${port}/'`