Skip to content

Instantly share code, notes, and snippets.

@jacobdepriest
Created September 27, 2021 20:02
Show Gist options
  • Save jacobdepriest/1097e7bc3ac12c63c7a5a41edc6dc7af to your computer and use it in GitHub Desktop.
Save jacobdepriest/1097e7bc3ac12c63c7a5a41edc6dc7af to your computer and use it in GitHub Desktop.
Controlling Elgato Key Light Air from CLI

Situation

Wanted to control my Elgato Key Light Airs from macOS Tough Bar

Shell script

curl --location --request PUT 'http://[local ip]:9123/elgato/lights' \
--header 'Content-Type: application/json' \
--data-raw '{"lights":[{"brightness":16,"temperature":158,"on":1}],"numberOfLights":1}'

Reference:

https://vninja.net/2020/12/04/automating-elgato-key-lights-from-touch-bar/

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