ampel/README.md

33 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2017-06-27 22:36:02 +02:00
## Ampel - Version 0.2 aka "now it's almost pretty"
2017-04-03 22:57:46 +02:00
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!
2017-04-03 22:57:46 +02:00
The main purpose is intended for 2-3 lights indicating the availability of employees.
2017-04-03 22:57:46 +02:00
2017-06-27 22:36:02 +02:00
![dashboard](https://files.geekify.de/ampel/dashboard.png)
![management](https://files.geekify.de/ampel/management.png)
![login](https://files.geekify.de/ampel/login.png)
## Installation
1. `virtualenv -p python3 venv`
2. `source ./venv/bin/activate`
3. `pip3 install -r requirements.txt`
4. `python3 ampel.py`
2017-04-03 22:57:46 +02:00
## Technical stuff
2017-06-27 22:38:28 +02:00
Ampel is build with python3, flask, html5 with canvas, css3 and also ~~some~~ javascript (at least it does not depend on jquery…).
2017-04-03 22:57:46 +02:00
## Hack me
The code is quite flat. Try to hack around with it to suit your needs.
2017-04-03 22:57:46 +02:00
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.
2017-04-03 22:57:46 +02:00
PRs are always welcome. Feature requests are getting noticed at least.