Let your twitch viewers control your Hue lights
$ docker run --rm -it --env-file .env stjohnjohnson/hue-twitch-bridge:latest
> hue-twitch-bridge@1.0.0 start
> node --experimental-specifier-resolution=node app.js
[15:19] info: Connecting to irc-ws.chat.twitch.tv on port 443..
[15:19] info: Sending authentication to server..
[15:19] info: Connected to server.
[15:19] info: Executing command: JOIN #stjohnjohnson
[15:19] info: Joined #stjohnjohnson
Set the following environment variables:
TWITCH_USERNAME
: Your Bot's UsernameTWITCH_OAUTH
: The code from https://twitchapps.com/tmi/TWITCH_CHANNEL
: The Twitch channel to sit inHUE_IPADDRESS
: IP Address of your Hue BridgeHUE_USERNAME
: The local username to auth against your Hue BridgeHUE_GROUPID
: Hue Group to change the color of
The bot reads in the color from chat using !color <name>
You can use most of the CSS colors like !color lightblue
or !color orange
.
Additionally, you can pass the hex string of your choice !color #112233
If you don't have a preference, you can use !color random
.
And if you want to make it really silly, you can use !color party
which changes to a random color every second for 15 seconds.
Right now we have color changes limited to 1 per second (that's also the limit on the Hue API). And parties are limited to 1 per minute (just because).