Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 850 Bytes

File metadata and controls

32 lines (25 loc) · 850 Bytes

Before running app make sure you have python and pip installed.

To install dependencies run:

pip install -r requirements

You can either install it inside virtualenv or globally. If installing globally you need to run it as root.

Project can be run as regular flask app in dev mode:

python dashboard.py

or using twisted which is WSGI container and supports more threads than "dev mode".

twistd -n web --port 8080 --wsgi dashboard.app

There is a possibility to pass screen orientation via command line

> python dashboard.py --help

usage: dashboard.py [-h] [--orientation O]

Screen orientation.

optional arguments:
  -h, --help       show this help message and exit
  --orientation O  Screen Orientation - possible values: horizontal, vertical

It sets the class on body and adjusts widgets layout on screen