Skip to content
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

Adafruit BME680 Temperature sensor not connecting to Enclosure Plugin #462

Open
BSBarrows opened this issue Dec 31, 2021 · 3 comments
Open

Comments

@BSBarrows
Copy link

I have a Raspberry Pi 4 wired up to an Adafruit BME680 board over the 4 cable quick connector, connected like this
temperature___humidity_BME680_RasPi_I2C_breadboard_bb
But I am not able to get it to work with the Enclosure plugin. I believe I would set the Enclosure plugin for GPIO 2 or 3 but any time I change it from 4 I am not able to run: i2cdetect -y 1 without it taking forever or failing.
Enclosure_Settings
I believe the BME680.py script runs correctly, and this is with GPIO set to 4, I can run i2cdetect and it quickly returns 0x77.
Python_Script

Any help would be great, I would love to be able to see the Temp and Humidity in my Enclosure and on my Plotty graph.

@BSBarrows
Copy link
Author

If I select logging, this is what I found in the octoprint log:

2022-01-09 10:46:24,700 - octoprint.plugins.enclosure - WARNING - An exception of type ValueError occurred on log_error. Arguments:
('not enough values to unpack (expected 3, got 1)',)
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/init.py", line 1177, in read_bme680_temp
temp, hum, airq = output.split("|")
ValueError: not enough values to unpack (expected 3, got 1)
2022-01-09 10:46:24,700 - octoprint.plugins.enclosure - WARNING - An exception of type ValueError occurred on log_error. Arguments:
('not enough values to unpack (expected 3, got 2)',)
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/init.py", line 993, in get_sensor_data
temp, hum, airquality = self.read_bme680_temp(sensor['temp_sensor_address'])
ValueError: not enough values to unpack (expected 3, got 2)
2022-01-09 10:46:24,700 - octoprint.plugins.enclosure - WARNING - An exception of type TypeError occurred on log_error. Arguments:
('cannot unpack non-iterable NoneType object',)
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/init.py", line 811, in check_enclosure_temp
temp, hum, airquality = self.get_sensor_data(sensor)
TypeError: cannot unpack non-iterable NoneType object

@BSBarrows
Copy link
Author

octoprint-systeminfo-20220109120332.zip
I have attached the Octoprint System Info bundle now as well in case that helps.

@n8many
Copy link
Contributor

n8many commented Feb 23, 2022

Hi,

I think I have this fixed in #482. Can you test to make sure the changes in that pull request resolve this for you?

Thanks

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

No branches or pull requests

2 participants