How I learn is take the program apart line by line and understand what each line does , change things and see what happens.
In this bit of code :-
Code: Select all
@app.route("/temp")
def html(req, resp):
hw_sensor.measure()
t = hw_sensor.temperature()
Thank in advanced Peter A