A live dashboard for the tilty based on Flask-SocketIO
Project description
Tilty Dashboard
This is a minimalistic websocket based dashboard for the Tilt hydrometer.
It's fed by sqlite via tilty
Installation And Running
Docker
# assume $(pwd)/data contains tilt.sqlite that is being written to with tilty
$ docker run -it data:/etc/tilty -p 5000:5000 myoung34/tilty-dashboard:latest
# now hit http://localhost:5000
Pip
$ pip install tilty-dashboard
$ cat <<EOF >/etc/tilty/prod.config
[webapp]
host=0.0.0.0
port=5000
database_uri="sqlite:////etc/tilty/tilt.sqlite"
EOF
$ cat <<EOF >/etc/tilty/prod.configspec
[webapp]
host=string(default=127.0.0.1)
port=string(default=5000)
database_uri=string(default="sqlite:////etc/tilty/tilt.sqlite")
EOF
$ curl -sL https://raw.githubusercontent.com/myoung34/tilty-dashboard/master/config/prod_gunicorn.py >/etc/tilty/gunicorn.py
$ cd /usr/local/lib/python3.7/dist-packages
$ gunicorn --worker-class eventlet -w 1 -c /etc/tilty/gunicorn.py tilty_dashboard:app
Local Development
Seed the database:
$ make seed
Run it in docker:
$ docker-compose up
Then just hit http://localhost:5000
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tilty_dashboard-1.1.8.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for tilty_dashboard-1.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 511b45f57109cc27d6cb04103ad68892339cc40c5d6dadcc34781bda788ef70d |
|
MD5 | 62c605c9313d91a3618a500675678c34 |
|
BLAKE2b-256 | ebae2dde8835d77fe930005168f1212e36ed03b322bfa0f34166d8e2fec43de6 |