fixed?
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from flask import render_template
|
from flask import render_template
|
||||||
from app import app
|
from app import app
|
||||||
from flask import send_file
|
from flask import send_file
|
||||||
|
from flask import send_from_directory
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
@app.route('/index')
|
@app.route('/index')
|
||||||
@@ -9,7 +10,7 @@ def index():
|
|||||||
status = {'temperature': float(open('/sys/class/thermal/thermal_zone0/temp').read())}
|
status = {'temperature': float(open('/sys/class/thermal/thermal_zone0/temp').read())}
|
||||||
return render_template('status.html', device=device, status=status)
|
return render_template('status.html', device=device, status=status)
|
||||||
|
|
||||||
@app.route('/plot.png')
|
@app.route('/blooper.png')
|
||||||
def plot():
|
def plot():
|
||||||
#filename = os.path.join('resources', 'blooper.jpg')
|
#filename = os.path.join('resources', 'blooper.jpg')
|
||||||
return send_from_directory('resources', 'blooper.jpg')
|
return send_from_directory('resources', 'blooper.jpg')
|
||||||
|
|||||||
Reference in New Issue
Block a user