An example Node.js Buildkite webhook endpoint for creating a LIFX-powered build light
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.md
Procfile
README.md
app.json
index.js
package-lock.json
package.json

README.md

LIFX Buildkite Build Light (Node.js)

An example Node.js Buildkite webhook endpoint for creating a LIFX powered build light.

✌️🐼✌️

LIFX panda build light in action

Usage

  1. Deploy it to Heroku
    Deploy

  2. Find the secret: In your new Heroku app go to Settings → Config Variables → Reveal Config Variables, and copy the WEBHOOK_TOKEN variable value.

  3. Set up the webhook: In Buildkite go to Settings → Notifications → Webhooks and add a new webhook pointing to your new Heroku app (don’t forget to choose the project and branch name). The token should be the one generated by Heroku, which you can find in your Heroku project’s environment variables.

  4. Trigger a build! 🎉

Personalising

One bulb per project? One bulb per build pipeline step? A LIFX chandelier that twinkles rainbows after each deploy? The possibilities are endless!

Check out api.developer.lifx.com to see what’s possible with the API, then fork this project, and get hacking.

License

See the LICENSE file for license rights and limitations (MIT).