Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple TeamCity notification client for the Raspberry PI. Provides support for notifications via the Speaker and lighting control.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
TeamCity.js
client.js
gpio.test.js
package.json
settings.sample.json

README.md

TeamCity Raspberry Pi Notifications

A simple TeamCity notification client for the Raspberry PI. Provides support for notifications via the Speaker and lighting control.

Requirement

You will need to copy settings.sample.json to a new file called "settings.json" and update it to include your TeamCity Specific information.

Concept

The core concept behind the project is based around Teams, where each team has a single owner, and a set of projects that they are working on (that needs to be monitored). Each team is also associated to a "Good Light" and a "Bad Light". Good light is triggered with the build is good, and the bad light when the build is broken.

Right now, for audio notifications it leverages a module "node-tts-google", which relies on node-speaker; which has issues running on Windows (basically stalls); so we disable audio notifications when this app is run on windows.

Also, if you want the light automation portion to be working, this must be run on a Rasberry Pi.

See https://npmjs.org/package/pi-gpio for light <-> pin setup for each project.

Getting started

  • Copy settings.sample.json to a new file called settings.json
  • Update settings.json to be appropriate for your TeamCity installation and team/project structure.
  • Plugin your lights (or relay switches) to the GPIO pins as described here: https://npmjs.org/package/pi-gpio
  • Update settings.json to indicate the good/bad pins for each "goodLight"/"badLight"
  • Deploy script to a Raspberry Pi
  • ssh into your pi
  • run:
  • npm install
  • git clone git://github.com/quick2wire/quick2wire-gpio-admin.git
  • cd quick2wire-gpio-admin
  • make
  • sudo make install
  • sudo adduser $USER gpio
  • Finally execute our script by:
  • sudo node client.js

Notes

If you have an issue when building / installing (on windows) you will need to setup this envrionment variable:

set VisualStudioVersion=11.0

Something went wrong with that request. Please try again.