Script to control my Elgato Key Light (https://www.elgato.com/en/key-light)
$ ./elgato.sh help
usage: ./elgato.sh <on|off|brightness number|temperature number>
Example output is shown here, it is omitted in the rest for brevity.
$ ./elgato.sh on
My Key Light (my-key-light.local.:9123)
=======================================
brightness: 50
on: 1
temperature: 250
$ ./elgato.sh off
Will swap the current state (on
to off
or vice versa):
$ ./elgato.sh toggle
$ ./elgato.sh brightness 10
$ ./elgato.sh temperature 25
$ ./elgato.sh brightness +10
$ ./elgato.sh temperature -15
$ ./elgato.sh brightness +10 temperature 200 on
Expect the light to be on
and have brightness
15
(20 - 5
), leaving
temperature
constant:
$ ./elgato.sh off toggle toggle on brightness +5 brightness 20 brightness -5