-
-
Notifications
You must be signed in to change notification settings - Fork 116
Description
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[x] I have read the contributing guide lines at https://github.com/timofurrer/w1thermsensor/blob/master/.github/CONTRIBUTING.md
[x] I have read and respect the code of conduct at https://github.com/timofurrer/w1thermsensor/blob/master/.github/CODE_OF_CONDUCT.md
[x] I have searched the existing issues and I'm convinced that mine is new.
Ask your Question
Hi!
While w1thermsensor works flawlessly on my various Pi4 and Pi3, I struggle with it on the Pi zero (I've tried a few).
It will give me a "sensor not ready" error about 3 out of 10 times.
File "/home/pi/.local/lib/python3.7/site-packages/w1thermsensor/core.py", line 267, in get_temperature
raw_temperature_line = self.get_raw_sensor_strings()[1]
File "/home/pi/.local/lib/python3.7/site-packages/w1thermsensor/core.py", line 250, in get_raw_sensor_strings
raise SensorNotReadyError(self)
w1thermsensor.errors.SensorNotReadyError: Sensor 0317228c51ff is not yet ready to read temperature<
I can handle that as an exception in python, but I wonder what I should do differently on the zero.
I'm using the exact same setup in all cases (same SD card, same GPIO and sensor)
some more info:
Raspberry OS buster
python 3.7.3
w1thermsensor version 2.0.0
thanks a lot!