blob: 71c0ae345c25254ee3910a266ca731c364d38bb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
MASU - minimalist dashboard
what: grid of blocks (clocks, weather, etc) w/ real-time updates
how: flask + vanilla js, no bloat
why: simple, tweakable, fast
setup:
git clone <url>
python -m venv .venv
source .venv/bin/activate
pip install flask requests
flask run
use:
http://localhost:5000
reload/tweak in header
files:
app.py: server
static/: css, js
templates/: html
hack:
add blocks: app.py + script.js
set intervals: script.js
deploy:
local: python app.py
server: pip install gunicorn; gunicorn -w 4 app:app
|