Watch a buildbot master, turn on a green LED if everything is fine, a red one if any build on the master has failed.
The Arduino (Uno at least) has not enough memory to directly use the Buildbot JSON API. This is why a PHP parser is present in the server directory. The only thing it does is
- Parsing the JSON output
- Write 1 if there's any error, 0 otherwise
Simply drop the PHP parser in your webserver directory
The electronic part is realy simple: only plug a red LED between the pin 4 and ground (using a resistor…), and a green LED between the pin 5 and ground (with, again, a resistor).
You need to edit the main.ino, replace the first lines:
- Arduino's MAC and IP addresses
- Your webserver's IP
- At line 78, the path to the PHP wrapper (currently /bb-arduino.php)
- Optionaly, the LEDs pins (failPin and okPin)
- Optionaly, the check frequency (postingInterval), in milliseconds (5 minutes default)