Skip to content

Instantly share code, notes, and snippets.

@mudge
Last active October 30, 2023 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mudge/d1453b3c8391bee9ee6f182a504da45c to your computer and use it in GitHub Desktop.
Save mudge/d1453b3c8391bee9ee6f182a504da45c to your computer and use it in GitHub Desktop.
A Tuple Trigger to turn an Elgato Key light on and off when your webcam is shared
#!/bin/bash
if [[ "$TUPLE_TRIGGER_IS_SELF" == "true" ]]
then
curl --silent --request PUT --json '{"lights":[{"on":0}]}' http://elgato-key-light-air-2282.local:9123/elgato/lights
fi
#!/bin/bash
if [[ "$TUPLE_TRIGGER_IS_SELF" == "true" ]]
then
curl --silent --request PUT --json '{"lights":[{"on":1}]}' http://elgato-key-light-air-2282.local:9123/elgato/lights
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment