Skip to content

SaraJo/build-brite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Brite

Build Brite is an arduino hack built on top of my repo build status code. It uses a tri-color LED and an Arduino to create a physical indicator that shines green when your project on GitHub is building, red when it is not, and blue when it is pending. You can use this to monitor a shared repository among a team so you don't have to stay right on top of emails to monitor for problems.

##Dependencies Build Brite is built in Node.js. You will need Node.js and npm then run "npm install" in order to install octonode, and johnny-five.

You also need an Arduino! Any arduino will do, as long as it can load Firmata.

A USB cable to attach your Arduino to your machine.

Lastly, a tri-color LED. I got mine at Radio Shack for $1.79

###Optional You may want to buy a breadboard and some resistors to make your end product less of a hack. The purpose of not doing so was to show how little you need to get started.

##Hardware Setup

example For instructions on doing this with a breadboard go here

Your LED should have four prongs. Those are diodes. The longest one is your anode(you may have a common cathode instead of an anode), and the other three are cathodes. Your anode will receive power, and ditribute it to your cathodes. You need to put the three cathodes in three pins on the arduino. Make sure they are pins that have pulse-width modulation. Pulse-width modulation means that varying amounts of power will be provided to your LED and that is what is needed to mix light colors into the color you are looking for.

After you insert your cathodes (usually pins 9, 10, and 11 on arduino) you need to get power to your anode. In the photo above I used a wire attached to the anode on the LED to do so. Put the wire in the 5v pin.

Lastly, hook the USB up to your arduino, and then to your computer.

You're ready to go! Time to move onto the software part.

##Software setup First, copy the config.js.example file to config.js:

cp config.js.example config.js

In order to authenticate to github, you need to create a token on your account and replace the example api token in config.js. It's important to authenticate as you need to be someone with push access to a repo to get its build status. Then, replace the placeholder text for your user name and the repository name.

That's it! You're ready to go! Start build-brite by running:

node index.html

Please fork and customize for your environment, OR, make it your own by adding components and sending a pull request.


This repository is dedicated to Jessica Lord for her hard and amazing work documenting Sheetsee.js.

About

This is a physical build indicator made with an arduino, a tri-color LED, and johnny-five

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published