w1thermsensor
See original GitHub issueHello, Great library. I have used it successfully for groups of sensors. Something I have noticed and been unable to resolve:
from w1thermsensor import W1ThermSensor
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
while True:
for sensor in W1ThermSensor.get_available_sensors():
print("Sensor %s has temperature %.2f" % (sensor.id, sensor.get_temperature()))
time.sleep(10)
the above works fine and if I run the program with 3 sensors I get a line for each.
If I then stop the program and remove a sensor and run it again it returns this message :
“w1thermsensor.core.SensorNotReadyError: Sensor is not yet ready to read temperature”
What do I need to do to clear the old list of sensors and start over. ?
thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
timofurrer/w1thermsensor - GitHub
A Python package and CLI tool to work with w1 temperature sensors like DS1822, DS18S20 & DS18B20 on the Raspberry Pi, Beagle Bone...
Read more >w1thermsensor - PyPI
This little pure python module provides a single class to get the temperature of a w1 sensor.
Read more >PythonMiniProbe - w1thermsensor - GitLab - CDG82
W1ThermSensor ![Gitter](https://badges.gitter.im/Join Chat.svg). This little pure python module provides a single class to get the temperature of a w1 therm ...
Read more >timofurrer/w1thermsensor - Docker Image
W1ThermSensor. Gitter. Get the temperature from your w1 therm sensor in a single line of code! It's designed to be used with the...
Read more >timofurrer/w1thermsensor - Gitter
oh I found it, Some w1 therm sensors support changing the resolution for the temperature reads. w1thermsensor enables to do so with the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Timo, Thank you very much. Those things make sense. M usual Python goto guy ( my son) is en route via the Alaska Highway to Anchorage and is out of touch. so I really appreciate your taking time to help me.
thanks again. Peter
On Mon, Dec 5, 2016 at 10:47 PM, Timo Furrer notifications@github.com wrote:
– Peter Carman
307.690.1881 cell 307.733.2389 land line
@natanbenchimol you’ve already opened an issue for your problem #55 , let’s keep this one clean 😃
Thanks @petert100 and @natanbenchimol 🎉