Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tools/ola_trigger/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have these in order, so crelay at the top please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed now

tools/ola_trigger/contrib/mac_volume.conf \
tools/ola_trigger/contrib/philips_hue_osram_lightify.conf \
Expand Down Expand Up @@ -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
38 changes: 38 additions & 0 deletions tools/ola_trigger/contrib/crelay.conf
Original file line number Diff line number Diff line change
@@ -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}/'`