0.0.2 • Published 9 years ago
emergency v0.0.2
emergency
Turn on a spinning red light when a dire situation arises, like a build breaking.

Installing
npm install emergencycp config.example.json config.jsonnano config.json(see Configuration below)
Running
sudo node .
Configuration
- checkFrequency how long to wait between polling a job, in milliseconds
- cooldownTimeout how long to wait to turn off the light automatically after it turns on (if a successful build doesn't turn it off first), in milliseconds
- gpio.pin physical pin number of the output pin connected to the + in terminal on your relay
- jobs[].name descriptive name of a job, used in logging
- jobs[].url URL of your Jenkins job, looks like
http://build.corp.com/job/mybuild, and will have/lastBuild/api/jsonappended to check the build status