This lovely piece of code is designed to display traffic lights indicating the presence or absence of anything.
It is designed to run on any OS running python3 and a reasonable modern browser. Yes, even Windows is supported and it runs great under Windows 7!
The main purpose is intended for 2-3 lights indicating the availability of employees.
virtualenv -p python3 venv
pip3 install -r requirements.txt
Ampel is build with python3, flask, html5 with canvas, css3 and also
The code is quite flat. Try to hack around with it to suit your needs. All rendering is as generic as possible while fitting close to my needs. For example, adding more lights is just a matter of adjusting the CSS and adding a new line to “bearbeiter.txt” - that’s all, everything else is already done.
PRs are always welcome. Feature requests are getting noticed at least.