-
Notifications
You must be signed in to change notification settings - Fork 203
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
Sensor Si7021 not working #471
Comments
I had the same issue, I actually opened an issue a few posts earlier on how upgrading to Python 3 broke the sensor here. Unfortunately I've not had any responses yet. |
yes, same for me |
I had the same problem, and I have a temporary solution. The log file shows the temp sensor reading tracebacks. From the trace back, it appears sensor[] variable is missing a key value for temp_sensor_i2cbus
There is a temporary solution.
Note the argument: 40 is the i2c address, 1 is the i2c bus. Next, open _ _ init _ _ .py and manually hardcode the temp_sensor_address and temp_sensor_i2cbus to line 996 Reboot Octoprint, it should now be able to read the temp and humidity. |
The approach by jx2014 worked for me. I simply used putty and did:
edited the line: Saved the file, exited nano sudo reboot and presto, working! Obviously an update to octoprint enclosure will delete the modification, but works for now! |
Hi, I have a problem with temperature sensor.
The sensor was detected on 0x40 address but enclosure plugin showing only 0.
Disable SUDO not helped, sudo without password.
Octoprint log:
2022-01-18 17:20:20,933 - octoprint.plugins.enclosure - INFO - Failed to execute python scripts, try disabling use SUDO on advanced section of the plugin. 2022-01-18 17:20:20,933 - octoprint.plugins.enclosure - WARNING - An exception of type ValueError occurred on log_error. Arguments: ('not enough values to unpack (expected 2, got 1)',) Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/__init__.py", line 1283, in read_si7021_temp temp, hum = stdout.decode("utf-8").split("|") ValueError: not enough values to unpack (expected 2, got 1)
OctoPrint 1.7.2 Python 3.7.3 OctoPi 0.18.0
The text was updated successfully, but these errors were encountered: