first commit, raspi temp display

This commit is contained in:
2019-08-13 23:28:00 -05:00
commit 585f5c4c51
8 changed files with 31 additions and 0 deletions

9
app/routes.py Normal file
View File

@@ -0,0 +1,9 @@
from flask import render_template
from app import app
@app.route('/')
@app.route('/index')
def index():
device = {'name': 'find how to get name later'}
status = {'temperature': float(open('/sys/class/thermal/thermal_zone0/temp').read())}
return render_template('status.html', device=device, status=status)