Generic, low security traffic light indicator for monitors
Go to file
sqozz 0b9b781fef Make ampel aware of the order in bearbeiter.txt
Technically this commit makes ampel way more fragile.
It now uses an array to store each employee and identifies
employees now by the index of this array. All this requires
everything to be in order (e.g. the dropdown in the login -
if this is out of order, then login results in another user
than the displayed one).
This was just a simple solution which works way to good.
An alternative whould be of cause another entry in the
previously used dict which shows an index.
2017-06-30 21:34:32 +02:00
assets Make ampel aware of the order in bearbeiter.txt 2017-06-30 21:34:32 +02:00
README.md Update README.md 2017-06-27 22:38:28 +02:00
ampel.py Make ampel aware of the order in bearbeiter.txt 2017-06-30 21:34:32 +02:00
bearbeiter.txt Huge rewrite to make ampel more dynamic and more responsive 2017-06-27 18:47:03 +02:00
requirements.txt Add bottle as dependency 2017-06-28 09:23:13 +02:00

README.md

Ampel - Version 0.2 aka "now it's almost pretty"

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 but not yet tested (comming soon™).

The main porpuse is intendet for 2-3 lights indicating the availability of employees.

dashboard

management

login

Installation

  1. virtualenv -p python3 venv
  2. source ./venv/bin/activate
  3. pip3 install -r requirements.txt
  4. python3 ampel.py

Technical stuff

Ampel is build with python3, flask, html5 with canvas, css3 and also some javascript (at least it does not depend on jquery…).

Hack me

The code is quiet flat. Try to hack around with it to suit your needs. All rendering is as generic as possible while fitting close to my needs. But adding more lights is for example just a matter of adjusting the CSS and adding a new line to "bearbeiter.txt" - thats all, everything else is already done.

PRs are always welcome. Feature requests beeing noticed at least.