2022-01-28, 01:44 PM
(2022-01-28, 11:50 AM)Jay_cd33 Wrote:(2022-01-28, 11:10 AM)Fred90 Wrote:(2022-01-28, 10:38 AM)Jay_cd33 Wrote: Fred90,
I believe the problem is with the openplotter I2C app that reads the BME280 sensor and sends the data to signalK. The Adafruit Library for this sensor was updated last year and the I2C app has not been updated. Take a look at my post linked below. I think it will fix your problem.
https://forum.openmarine.net/showthread....1#pid20441
You might make a backup of the file before editing as suggested in a follow on post.
Good Luck,
Jay
Hi Jay,
Thanks for your answer. I saw your post before to post this question. I tried but it did not solve my issue.
Just adding two tabs :from adafruit_bme280 [tab][tab]import basic as adafruit_bme280
was generating a syntax error when runing the script openplotterI2cRead.py
So I put a newline between the two import, no syntax error anymore.
But no I2C data too
But as you say, maybe installing an older version of adafruit lib may solve the issue...
Regards,
Fred90,
Just to make sure you have the syntax correct...
The new line should be:
[tab][tab]from adafruit_bme280 import basic as adafruit_bme280
Just a single [space] between "adafruit_bme280" and "import".
Jay
Great, it was late yesterday and I did a mistake. Your fix is working.
Thanks a lot for your time!