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.7.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for tilty_dashboard-1.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d730bdf3d30fed57ecdde7050e2a55da4e5651a8bf6cceb541ef0b3deb41be |
|
MD5 | d5cdb9d544b04572b86eb71d3c63b21d |
|
BLAKE2b-256 | 172ded388bc70b0fb4d3b173c821de871357a6e73c1352e0e71c2dbc0ce76433 |