Trying to send some values from the new Enviro+ to a telegram chatbot for a home weather update on demand within a group chat.
What I have come to realise though, the bot work fine, but the outputted data is always the same.
The current tempurature is 21.70818430223153 *C
The current pressure is 700.2708792437015hPa
The Current Humidty is 84.54408663293306 %
I also realised that this is always the same in the first print from the weather.py example
Temperature: 21.71 *C
Pressure: 700.27 hPa
Relative humidity: 84.54 %
Just using basic code as a demo and still getting the same:
from bme280 import BME280
from smbus2 import SMBus
from smbus import SMBus
bus = SMBus(1)
bme280 = BME280(i2c_dev=bus)
temp = bme280.get_temperature()
pressure = bme280.get_pressure()
humidity = bme280.get_humidity()
Anyone know a fix for this as I dont want it in a loop unfortunatly, just need a one time print on demand.