ayeks / bme680_to_influxdb

Simple script that sends your BME680 temp, pressure, humidity and gas sensor data to InfluxDB.
MIT License
23 stars 16 forks source link

Update senddata.py - initialize BME680 via I2C addresses #12

Closed mathiashro closed 3 years ago

mathiashro commented 3 years ago

Avoid following error:

Traceback (most recent call last): File "senddata.py", line 56, in sensor = bme680.BME680() File "/usr/lib/python3/dist-packages/bme680/init.py", line 25, in init self.chip_id = self._get_regs(CHIP_ID_ADDR, 1) File "/usr/lib/python3/dist-packages/bme680/init.py", line 296, in _get_regs return self._i2c.read_byte_data(self.i2c_addr, register)

ayeks commented 3 years ago

Looks good to me, thanks! However I cannot test it because I do not run the setup anymore.