emergency

0.0.2 • Public • Published

emergency

Turn on a spinning red light when a dire situation arises, like a build breaking.

spinning red light

Installing

  1. npm install emergency
  2. cp config.example.json config.json
  3. nano config.json (see Configuration below)

Running

  1. 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/json appended to check the build status

Recommended Hardware

Package Sidebar

Install

npm i emergency

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • aldaviva