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.2.0.tar.gz
(15.7 kB
view details)
Built Distribution
File details
Details for the file tilty_dashboard-1.2.0.tar.gz
.
File metadata
- Download URL: tilty_dashboard-1.2.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7a016df3df19c7623de07dc33e7271850ba8a66da91c1a2e9c30d05c7f3279 |
|
MD5 | 522fd291929c09657d5427295119c02b |
|
BLAKE2b-256 | bf41fe00cd590c58f3c5f3fa9368ef25cae48995562607f8a2c115167e45204c |
File details
Details for the file tilty_dashboard-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: tilty_dashboard-1.2.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c8a7e896e57525cda248cb4af588ffcb037b8109ccd280782e38f50d4705aa |
|
MD5 | 246aacc00146dc759b5c27f9f0634674 |
|
BLAKE2b-256 | 1a984fb9d49669b3ddf855c2a419ec30c054256d4ccaa5f8874fe34fa195f080 |