I have a Raspberry Pi with an I2C temperature sensor.
Python code:
import board import adafruit_mlx90614 import time i2c = board.I2C() mlx = adafruit_mlx90614.MLX90614(i2c) while True: print("Object Temp: ", mlx.object_temperature) OUTPUT:
Object Temp: 21.89 Object Temp: 22.73 Object Temp: 27.31 It's working fine. But how can I make the output shown on the local webserver? REALTIME, no page refreshing? Just like a text. Nothing fancy.
Thanks
https://stackoverflow.com/questions/67260071/python-output-on-webserver-realtime April 26, 2021 at 10:18AM
没有评论:
发表评论