Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ola_trigger Improvements was Add Elegato light control #1848

Open
peternewman opened this issue Mar 31, 2023 · 5 comments
Open

ola_trigger Improvements was Add Elegato light control #1848

peternewman opened this issue Mar 31, 2023 · 5 comments

Comments

@peternewman
Copy link
Member

Some useful info:
https://web.archive.org/web/20210806013041/https://trevorsullivan.net/2020/08/17/automate-the-elgato-key-light-air-with-powershell/
https://github.com/pcgeek86/elgato/blob/master/elgato/elgato.psm1
https://github.com/NickParks/elgato-light-api

Basic functionality ought to be possible via ola_trigger, like so:
https://github.com/OpenLightingProject/ola/blob/master/tools/ola_trigger/contrib/philips_hue_osram_lightify.conf

But a plugin would offer nicer integration of e.g. discovery via Bonjour etc and generally simplify patching and controlling a whole load of them on different channel numbers.

@peternewman
Copy link
Member Author

@gobo-ws strikes again! https://github.com/gobo-ws/ola-trigger-elgato-key-light-dmx

Do you want to put this in the contrib folder too @gobo-ws ?

Or maybe we should just link to your projects list or something?

I'm also wondering with some of the rest of these, do we need to improve ola_trigger to make them a bit more useable for situations like this? E.g. as step one, if you could pass in some variables on the command line, you could control 2 or many more of them with one common config file by running multiple instances like so:
ola_trigger elgato_key_light.conf --offset 0 --config "hostname='192.168.0.1:9123'"
ola_trigger elgato_key_light.conf --offset 2 --config "hostname='192.168.0.2:9123'"

I think that could potentially be as simple as just prepending the config lines to the beginning of the parsed config file, with maybe multiple lines being passed in via multiple --config options.

I guess the next extension would be a meta config, where you don't need to run two copies of ola_trigger, you can pass in one config file which sets all those options for multiple internal instances, but that's perhaps one for the future.

@gobo-ws
Copy link
Contributor

gobo-ws commented Mar 31, 2023

Hehe!
Certainly I can do that @peternewman but unfortunately I haven't updated the trigger configuration files that I have already contributed to OLA.
So maybe it's better to link to my other trigger files such as Elgato Key Light in my repositorie?

Your ideas regarding improvement of ola_trigger sound very good. I look forward to the further development of that part.

@peternewman
Copy link
Member Author

Adding a scale feature would also be useful:

          I think we should have the dimmer work over the full range rather than just part of it which will be rather confusing for users.

I suspect separately this means some sort of scale command would simplify repetitive config a lot.

Originally posted by @peternewman in #1849 (comment)

          > I think we should have the dimmer work over the full range rather than just part of it which will be rather confusing for users.

I suspect separately this means some sort of scale command would simplify repetitive config a lot.

I see @nomis52 did this originally with the Mac Volume example, I'm not sure I agree with it personally.

I totally agree with your opinion, but I don't see how it can be done in the configuration script since it does not support any scale commands.
Well the only thing to do it is to hard code the input range and the scaled range

Otherwise this can be solved by adding a shell script but in this case I wanted to do a simple script without the need for any shell script.
For more advanced uses I use Node-RED and the Range node wich works fine for this kind of scaling.

Originally posted by @gobo-ws in #1849 (comment)

@peternewman peternewman changed the title Add Elegato light control ola_trigger Improvements was Add Elegato light control Apr 13, 2023
@peternewman
Copy link
Member Author

Hehe! Certainly I can do that @peternewman but unfortunately I haven't updated the trigger configuration files that I have already contributed to OLA. So maybe it's better to link to my other trigger files such as Elgato Key Light in my repositorie?

Yeah I'm unsure of the right option here. We probably at least need some signposting so people know they exist, maybe an awesome list or similar:
https://github.com/sindresorhus/awesome/blob/main/awesome.md

I certainly wouldn't want to take away credit from all your hard work and the cool ones you've done.

My gut feeling is we could maybe include ones with minimal dependencies (e.g. just curl or bc or similar), but maybe leave out ones which need lots of other supporting tools/scripts. We should probably also either get them into the Debian package as examples, or shipped in another optional package (which could add the required core dependencies so they'd just run). Thoughts @yoe . But I kind of figure if you make them more available, it's a good base for someone to adapt to do what they want and get better use of the tool. Someone did a basic media player before, having that packaged so you could just run it would be pretty cool I think.

Your ideas regarding improvement of ola_trigger sound very good. I look forward to the further development of that part.

Great, I think we could gather other potential improvements to it here.

@gobo-ws
Copy link
Contributor

gobo-ws commented May 3, 2023

Hello again. I created a list, you can find it here: https://github.com/gobo-ws/misc/blob/main/ola_trigger.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants