This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ds18b20_v5_0 [2015/01/27 18:57] curlymo created |
ds18b20_v5_0 [2015/11/27 21:09] (current) |
||
---|---|---|---|
Line 42: | Line 42: | ||
==== Notes ==== | ==== Notes ==== | ||
- | |||
Before pilight can see the sensor, you have to run the following commands: | Before pilight can see the sensor, you have to run the following commands: | ||
<code> | <code> | ||
Line 54: | Line 53: | ||
w1-therm | w1-therm | ||
</code> | </code> | ||
+ | |||
+ | If you have enabled "Device tree support" (since Raspbian with kernel 3.18 it's the default configuration), you have to add the following line to ''/boot/config.txt'': | ||
+ | <code> | ||
+ | dtoverlay=w1-gpio-pullup,gpiopin=4 | ||
+ | </code> | ||
+ | This will load the module w1-gpio, so you only have to add ''w1-therm'' to your ''/etc/modules''. | ||
+ | |||
To find the correct sensor id, you have to run the following commands: | To find the correct sensor id, you have to run the following commands: |