Skip to content

Add an ola_trigger config to control relays using crelay - #1270

Merged
peternewman merged 7 commits into
OpenLightingProject:masterfrom
gobo-ws:patch-5
Jun 29, 2017
Merged

peternewman merged 7 commits into
OpenLightingProject:masterfrom
gobo-ws:patch-5

Conversation

@gobo-ws

@gobo-ws gobo-ws commented Jun 26, 2017

Copy link
Copy Markdown
Contributor

Add an ola_trigger config to control relays using crelay - https://github.com/ondrej1024/crelay/

Add an ola_trigger config to control relays using crelay - https://github.com/ondrej1024/crelay/
@gobo-ws gobo-ws changed the title Create crelay.conf Add an ola_trigger config to control relays using crelay Jun 26, 2017

@gobo-ws gobo-ws left a comment

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 copy/paste mistake.

@peternewman peternewman left a comment •

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.

Hi @gobo-ws ,

Can you merge the changes in #1271 and #1272 into this PR please?

If you edit here it will do what is necessary:
https://github.com/gobo-ws/ola/edit/patch-5/tools/ola_trigger/Makefile.mk

@gobo-ws

gobo-ws commented Jun 27, 2017

Copy link
Copy Markdown
Contributor Author

Hi @peternewman ,
Is it ok now? I am still learning Github.

@peternewman peternewman self-assigned this Jun 28, 2017

@peternewman peternewman left a comment

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.

Just a few minor comments.

Comment thread AUTHORS Outdated
Laurent (Renzo), Debian packages, FreeBSD & RDM testing.
Lukas Erlinghagen, win32 port.
Johan Nilsson, Philips Hue trigger config
Johan Nilsson, Philips Hue & crelay trigger config

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.

Up to you, but you may want to change the Philips Hue bit to include Osram Lightify too now?

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.

Yeah good point. Updated now.

@@ -6,6 +6,7 @@ dist_noinst_DATA += \
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

Comment thread tools/ola_trigger/Makefile.mk Outdated

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/mac_volume.conf ${srcdir}/tools/ola_trigger/contrib/mac_itunes.conf ${srcdir}/tools/ola_trigger/contrib/philips_hue_osram_lightify.conf ${srcdir}/tools/ola_trigger/contrib/crelay.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

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 you update this to match above please

@peternewman

Copy link
Copy Markdown
Member

That's as intended now @gobo-ws . No worries about it, GitHub seems to make it very easy to do the first edit, but harder to do subsequent ones, I've certainly been caught out in the same way in the past.

@peternewman peternewman added this to the 0.11.0 milestone Jun 28, 2017
@peternewman
peternewman merged commit 15280d2 into OpenLightingProject:master Jun 29, 2017
@peternewman

Copy link
Copy Markdown
Member

Retrospective review if you fancy it @nomis52 .

@gobo-ws
gobo-ws deleted the patch-5 branch September 27, 2017 10:17
@peternewman peternewman mentioned this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants