2022-05-06, 02:15 PM
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.
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.