This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BMP280 no data in Opencpn
#1
Well, I'm lost.
I'm trying to get data from my BMP280 (4pin) into Opencpn.
What is working:

- Sensor showing up with address 0x76 (all most all info is referred to BME280 with his address 0x77)
- in terminal he is showing the right results
- in SignalK it is showing the right results

But no data in Opencpn.
- connection between Opencpn and SignalK established (on the same Raspberry PI)

- Modified "openplotterI2cRead.py" according to this thread BME280 > SignalK no data/gauges (openmarine.net)
- Modified in openplotteri2cRead.py both sections bme280 and bmp280
- when executing openplotter-i2c-read I'm getting depending on my changes: 

"Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py", line 383, in work_BMP280
    sensor = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=int(address, 16))
  File "/usr/local/lib/python3.7/dist-packages/adafruit_bmp280.py", line 457, in __init__
    super().__init__()
  File "/usr/local/lib/python3.7/dist-packages/adafruit_bmp280.py", line 143, in __init__
    raise RuntimeError("Failed to find BMP280! Chip ID 0x%x" % chip_id)
RuntimeError: Failed to find BMP280! Chip ID 0x60"

or

"pi@raspberrypi:/usr/bin $ openplotter-i2c-read
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py", line 383, in work_BMP280
    sensor = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=int(address, 16))
NameError: name 'adafruit_bmp280' is not defined"

I'm not a dev but I believe that the key to fix this is openplotterI2cRead.py file. 

Any help / hint / solution is highly appreciated.

Thanks.
Reply
#2
Fixed that problem by making a bme280 out of the bmp280 by following this guide. https://lastminuteengineers.com/bme280-a...-tutorial/

But there is another problem. Dashboard tactics is not showing any data. Whereas the "standard" dashboard is showing data.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)