https://github.com/pimuzzo/git-siren
The aim of this project is to turn on a REAL beacon light when a new urgent issue is created!
https://github.com/pimuzzo/git-siren
beacon-light git-siren issues raspberry-pi tickets
Last synced: 4 months ago
JSON representation
The aim of this project is to turn on a REAL beacon light when a new urgent issue is created!
- Host: GitHub
- URL: https://github.com/pimuzzo/git-siren
- Owner: pimuzzo
- License: agpl-3.0
- Created: 2017-04-25T15:46:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:26:27.000Z (almost 3 years ago)
- Last Synced: 2025-05-23T00:23:48.744Z (5 months ago)
- Topics: beacon-light, git-siren, issues, raspberry-pi, tickets
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 20
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Siren
The aim of this project is to turn on a REAL beacon light when a new urgent issue is created on github!## What do you need:
- Raspberry Pi
- Micro USB cable
- Power converter DC 12V to DC 5V (e.g. http://www.dx.com/p/390976) (~ 3.50€)
- Power adapter DC 12V (e.g. http://www.dx.com/p/411920) (~ 3.50€)
- Relay module (e.g. http://www.dx.com/p/121354) (~ 2.00€)
- Emergency siren light 12V (e.g. http://www.ebay.it/itm/161668609157) (~ 10.00€)## Schema:
Wiring Raspberry Pi to relay depends by your Raspberry Pi GPIO schema and your relay schema, you can find them online.
You need 3 wires: GND, 5V and signal.
In my script signal is on pin 17.## Configuration:
You need to take inspiration from `config_example.py` and create your own `config.py` file.## Usage:
With `python siren.py [port]` you will manage the beacon light (default port is 8080).With `python github_adapter.py` you will check for new issues and a POST request will be sent when a new issue will be found.
You can also use only `python siren.py [port]` and make a POST:
`http POST http://localhost:8080/light actor=my_test duration=3`
I manage it with [supervisord](http://supervisord.org/) on Raspbian.
## Still to do:
- Ansible script to install and configure supervisor
- recognise urgent from PR rather than from issue
- split the project in 2 partsAny help (PR) is really appreciated