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)