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
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-0.0.3.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for tilty_dashboard-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9905bae826f50ec31c0b8c75ae343a39108c8ff80000a2182880fdca2fc5e1e |
|
MD5 | 0f970da0ac90abc41c9e27ca9bb5dff3 |
|
BLAKE2b-256 | eba263f76c2e0da8203661f3967f163b6c2b3db2342fae2a57c4441d4daa9cd3 |