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

senddata.py IO error line 56 #6

Closed bobiii84 closed 3 years ago

bobiii84 commented 3 years ago

Originally I had an issue where it would not run properly, gave a IO error with senddata.py. In order to work around, I edited a small portion of code here: Line 56 Changed sensor = bme680.BME680() to read: try: sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY) except IOError: sensor = bme680.BME680(bme680.I2C_ADDR_SECONDARY)

Just posting this in case someone else runs into the issue. Thanks for putting this up!