Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tregusti/lifx-build-status
https://github.com/tregusti/lifx-build-status
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tregusti/lifx-build-status
- Owner: tregusti
- License: mit
- Created: 2015-06-18T08:30:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-18T11:27:55.000Z (over 9 years ago)
- Last Synced: 2024-10-11T13:38:25.661Z (about 1 month ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Handle Github webhooks and LIFX lamps
This [Node.js](nodejs) server handles incoming Github webhooks and
flashes a selection of [Lifx](lifx) lamps depending on the event.## Start
Run the server with `node server.js` in the root of the repo.
## Configuration
You need to create a `secrets.json` file in the root of the repo and update it
with the correct values.- `defaultBranch`: The main branch of the your at Github.
- `lifx.token`: A token you can generate at your Lifx [account settings](tokens).
- `lifx.selector`: A selector targeting a set of lamps. See [API docs](selectors).## Lamps
- Pull request opened: Soft flash blue.
- Failed build default branch: Bright repeating red flash
- Failed build other branch: Soft red flash
- Successful build default branch: Bright green flash
- Successful build other branch: Soft green flash[nodejs]: https://nodejs.org/
[lifx]: http://www.lifx.com/
[tokens]: https://cloud.lifx.com/settings
[selectors]: http://developer.lifx.com/#selectors