Skip to content

The aim of this project is to turn on a REAL beacon light when a new urgent issue is created!

License

Notifications You must be signed in to change notification settings

pimuzzo/git-siren

Repository files navigation

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:

Schema:

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 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 parts

Any help (PR) is really appreciated

About

The aim of this project is to turn on a REAL beacon light when a new urgent issue is created!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published