Hello, I want to use BMP280 sensor with cayenne connected to RPI 3. The sensor has default address 0x76. I as read in Cayenne Docs, the supported sensor by the platform - BMP180 has default address 0x77.
Is there anyway to change the discover address of the sensor so I can display the data in dashboard using this sensor?
Any other methods with custom widgets?
You can use the MQTT API. I have an example here that demonstrates using the DHT11/22 sensor. You can use it as a guide and replace the bits that read DHT sensors with your code that reads the BMP. If you need any help let me know.
For testing you can also take out that ātime.sleep(30) #Sleep to allow wireless to connect before starting MQTTā line so you donāt have to wait 30 seconds every time you run the script. Thatās only in there because I had problems with the script running before there was a connection available on boot.
Hello,
I use to try your code and when I try to run it with python āfilenameā, it gives me the following error:
Traceback (most recent call last):
File "bmp280.py", line 12, in <module>
sensor = BMP085.BMP085()
File "build/bdist.linux-armv7l/egg/Adafruit_BMP/BMP085.py", line 69, in __init__
File "build/bdist.linux-armv7l/egg/Adafruit_BMP/BMP085.py", line 72, in _load_calibration
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 200, in readS16BE
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 177, in readS16
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 164, in readU16
File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 173, in read_word_data
IOError: [Errno 5] Input/output error
On my dashboard, a device with name 737f appeared. It is with empty dashboard. When I try to add widget, it asks for an address which I donāt know.
Hmm I think I have one of these sensors but finding it will be the problem. Iāll try to test it tonight if I can find it. Until then maybe someone that has one accessible can try? As far as the dashboard your widgets will show up automatically when the script successfully runs.