Difference between revisions of "BuildStatusTrafficLight"

From RevSpace
Jump to navigation Jump to search
Line 29: Line 29:
 
== Software ==
 
== Software ==
 
=== ESP8266 ===
 
=== ESP8266 ===
Software is written C/C++ for Arduino for quick and easy development using existing libraries, like WifiManager, PubSubClient.
+
Source code can be found [https://github.com/bertrik/BuildStatusLight here].
 +
 
 +
It is written in C/C++ for Arduino for quick and easy development using existing libraries, like WifiManager, PubSubClient.
  
 
The plan is to simply listen to an MQTT stream.
 
The plan is to simply listen to an MQTT stream.
To keep things secure and secret as much as possible, we use an encrypted link to the MQTT server along with a username/password.
+
To keep things secure and secret as much as possible, I plan to use an encrypted link to the MQTT server along with a username/password.
  
 
== External links ==
 
== External links ==
 
* [https://wiki.jenkins.io/display/JENKINS/Traffic+Light+Plugin Jenkins traffic light plugin] seems to have the wrong kind of interface, designed to directly drive a bunch of wireless 230V sockets instead of just sending the information like I need
 
* [https://wiki.jenkins.io/display/JENKINS/Traffic+Light+Plugin Jenkins traffic light plugin] seems to have the wrong kind of interface, designed to directly drive a bunch of wireless 230V sockets instead of just sending the information like I need
 
* [https://jobs.zalando.com/tech/blog/signalling-your-jenkins-build-status-with-a-mini-usb-traffic-light Signalling Your Jenkins Build Status with a Mini USB Traffic Light]
 
* [https://jobs.zalando.com/tech/blog/signalling-your-jenkins-build-status-with-a-mini-usb-traffic-light Signalling Your Jenkins Build Status with a Mini USB Traffic Light]

Revision as of 07:15, 23 October 2018

Project BuildStatusTrafficLight
350px
A traffic light showing CI build status
Status Initializing
Contact bertrik
Last Update 2018-10-23

Introduction

The end result of this project is a traffic light that shows the status of a software build.

It can show the following statuses:

  • green: build is OK
  • yellow: build compiles but a unit test fails
  • red: build has failed to compile
  • yellow flashing: build status unknown, e.g. still starting up, connection problem, or we receive a status we don't understand

Hardware

The plan is to use an ESP8266 along with a modified toy traffic light. For example a Wemos D1 mini.

Bonus point if we can add sound when the status changes.

Perhaps this one -> shipping too expensive? Or this one.


Software

ESP8266

Source code can be found here.

It is written in C/C++ for Arduino for quick and easy development using existing libraries, like WifiManager, PubSubClient.

The plan is to simply listen to an MQTT stream. To keep things secure and secret as much as possible, I plan to use an encrypted link to the MQTT server along with a username/password.

External links