Skip to content

It appears that relative was removed and is now just humidity #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

JTurpin
Copy link

@JTurpin JTurpin commented Nov 30, 2020

if I'm following this correctly from here:
https://adafruit.github.io/Adafruit_BME680/html/class_adafruit___b_m_e680.html#a2fd214a02735b0e1c80aabf63203410b

It appears that relative_humidity should actually be just humidity.

@ladyada
Copy link
Member

ladyada commented Nov 30, 2020

@ladyada
Copy link
Member

ladyada commented Nov 30, 2020

@anecdata

@JTurpin
Copy link
Author

JTurpin commented Nov 30, 2020

strange, when I run it as is I get:

jim@pi4:~/bme680# python3 bme680.py

Temperature: 19.7 C
Gas: 103010 ohm
Traceback (most recent call last):
File "bme680.py", line 21, in
print("Humidity: %0.1f %%" % bme680.relative_humidity)
AttributeError: 'Adafruit_BME680_I2C' object has no attribute 'relative_humidity'

but as in the PR:

Temperature: 20.0 C
Gas: 37634 ohm
Humidity: 23.8 %
Pressure: 845.358 hPa
Altitude = 1502.21 meters

@anecdata
Copy link
Member

anecdata commented Nov 30, 2020

relative_humidity is new (#34 ), to be compatible with other humidity sensors. It's in the examples folder, but the code is merged but hasn't been released yet. Are you using the last released library version 3.2.4 (same as in the last released bundle), or the current library .py from the code of this repo?

The example and code in this repo are consistent with each other, as are the released example and code, but no mix and match for the moment.

@anecdata
Copy link
Member

Once released, either relative_humidity or humidity will work. relative_humidity will be the preferred.

@JTurpin
Copy link
Author

JTurpin commented Nov 30, 2020

installed via pip3 install adafruit-circuitpython-bme680 today and verified 3.2.4

jim@pi4:~/bme680# pip3 freeze
Adafruit-BBIO==1.2.0
Adafruit-Blinka==5.4.0
adafruit-circuitpython-bme680==3.2.4
adafruit-circuitpython-busdevice==5.0.1
adafruit-circuitpython-framebuf==1.4.3
adafruit-circuitpython-ssd1306==2.9.2
Adafruit-GPIO==1.0.3
Adafruit-PlatformDetect==2.17.0
Adafruit-PureIO==1.1.5
Adafruit-SSD1306==1.6.2

Happy to close if I'm the oddity. I'm just trying to help others out if they run into the same issue.

@anecdata
Copy link
Member

@JTurpin Released 3.2.4 code doesn't have the change to include relative_humidity yet.

A new version should be released soon, then the example will match the library with relative_humidity all around.

@anecdata
Copy link
Member

anecdata commented Dec 1, 2020

Version 3.3.0 of this BME680 library has now been released, and is in the released 20201201 library bundle. Code for relative_humidity, consistent with the design guide, should now match the example. So I think this can be closed.

@ladyada ladyada closed this Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants