This is a python script that will set off an alarm when github repositories continuous integration tests fail.
Because I want to build something simple, but useful demonstrating IoT using ARM mbed Device Connector
To shame co-workers into fixing critical repositories when they break by putting a siren light above their desk and setting it off when something they are responsible for has broken / failed its CI tests. Its easy to ignore or filter email, its very hard to ignore a siren going off above your head.
- The mbed_connector_api python package
- Python 2.7.9+
- device running mbed-client-example
- Requires developer.mbed.org / connector.mbed.com account
- Github repository with CI tests, suggesting either TravisCI or CircleCI as they integrate very nicely.
- Load board with mbed-client-example. Plug in power and ethernet to connect the board to the internet.
- Optional Bonus : use relay to control super awesome police siren instead of onboard LED on board. To do this replace the deffinition of
led1
insource/main.cpp
.
DigitalOut led1(D3); // where D3 controls the relay
- Optional Bonus : use relay to control super awesome police siren instead of onboard LED on board. To do this replace the deffinition of
- Modify the values in the
standalone.py
script. You will need to fill in the token field, theendpoint
field, and you can change repo the build badge is on by changing theowner
,repo
, andref
fields. - Run the standalone python script on an internet connected computer.
python ./src/standalone.py
The LED (or the awesome siren light if you enable it) will blink on and off if the build is broken. If the build is passing then the siren will not go off.
Apache 2.0, see the Liscense file. It means you are free to re-use it in personal or commercial but make sure to give credit where its due. Preferred credit in the form of backlinks to this repo.