mqtt-dash/mqtt_dash/app.py
0xee 75a07bac21 Make project fit for deployment
* Read config from file - see config.py.example
* Split HTML/JS/CSS, move static stuff to mqtt_dash/static/
* Move widget definitions to mqtt_dash.widgets
2019-10-31 20:59:07 +01:00

14 lines
345 B
Python
Executable File

#!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
return render_template('base.html',
widgets=app.config['WIDGETS'],
mqtt_broker=app.config['MQTT_BROKER'],
page_title=app.config['PAGE_TITLE'])