Im new to this, i havd a raspberry pi 4 and piicodev bme280
I can run some code and see temps pressures rolling over every sec, is there a way to have a dashboard or something to display temp in a nice way like a guage so its not just a massive line of code ?
so i have been playing round with the temp sensoor and rpi4,
i have been uploading to weather underground dont know if any one uses this but the code will run for about 2 days then have an error and stop uploading, can restart code then all good again for 2 days,
not sure this issue,
another questin is there some filtering i can use for this sensor?
i am using temp, hum, press aswell as a formula for dew point,
data is uploaded every 3 mins also
Could you please send through your code so we can take a look - alongside this what hardware are you using?
Since the sensor uses I2C rather than an analog, filtering has to be done in software. There are some super simple filters that you could implement such as a moving average(MA) filter, each filter has some drawbacks (MA has a time delay but noise suppression)
ok sorry for delayed reply, so i have as raspberry pi4 and a piicodev bme280 and an adaptor board
i have this code now i wasn’t the designer of this but i have moded this to work with this sensor, added a 3min refresh and am able to calculate due point, i removed station id and password,
after about 2 days it stops uploading as says connection error and the code stops i can start it again and its fine again for about 2 days then same thing happens,
i have this = sensor = PiicoDev_BME280(t_mode=2, p_mode=5, h_mode=1, iir=2)
and i think it is filtering but not realy sure
all this work on weather underground
Is this the error you get ?
How is the Pi4 connected to the internet, Wifi or Ethernet Cable ?
If it is “Error communicating with server”.
Exiting the program because the server cannot be communicated with just once, is not good programming. Internet communications are far from perfect. If anything the program should print the error message and continue, one reading lost.
You could try removing the exit() in the above code and see what happens.
Of course it may be something else.
You could try printing the readings to the Pi4 screen and not send to the URL and see if it runs for more than 2 days. If not it is something in the Pi4 that is stopping the program. If it runs ok then it could be the internet connection to the Pi4.
The aim is to find what it causing the program to exit.