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