* 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
		
			
				
	
	
		
			14 lines
		
	
	
		
			345 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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'])
 |