now has a picture

This commit is contained in:
2019-08-19 20:42:44 -05:00
parent 585f5c4c51
commit 8f4d49782b
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
from flask import render_template
from app import app
from flask import send_file
@app.route('/')
@app.route('/index')
@@ -7,3 +8,9 @@ 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)
@app.route('/plot.png')
def plot():
#filename = os.path.join('resources', 'blooper.jpg')
return send_from_directory('resources', 'blooper.jpg')

BIN
resources/blooper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB