Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route('/environmentals')
- def environmentals():
- environmental_keys = ['pi_cpu_temp', 'enclosure_temp', 'enclosure_humidity',
- 'enclosure_baro', 'shed_temp', 'shed_humidity']
- environmental_data = {}
- for key in environmental_keys:
- environmental_data[key] = environmentals_data('readone', key, 0)
- #environmental_data[key] = read_mysql_database('environmental', key)
- return render_template('environmentals.html',**environmental_data)
Advertisement
Add Comment
Please, Sign In to add comment