Dynamic data update on the page
📁 method, Advanced Python Topics, Flask microframework, AI, project
There is a simple Python Flask project running on Raspberry Pi. I read temperature and humidity from the sensor and display them on a Bootstrap page. Everything is displayed perfectly, but you have to refresh the page to update the data. Tell me how to make the temperature and humidity update dynamically?
Python code:
from flask import *
from main_my import *
app = Flask(__name__)
pump_sost = None
@app.route('')
@app.route('/<name>')
No answers yet.
Log in to leave an answer