This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
ds18s20_v6_0 [2015/01/27 19:05] curlymo created |
ds18s20_v6_0 [2015/02/11 14:02] curlymo |
||
---|---|---|---|
Line 18: | Line 18: | ||
"devices": { | "devices": { | ||
"temperature": { | "temperature": { | ||
- | "protocol": [ "ds18b20" ], | + | "protocol": [ "ds18s20" ], |
"id": [{ | "id": [{ | ||
"id": "0000052ba3ac" | "id": "0000052ba3ac" | ||
Line 48: | Line 48: | ||
==== 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 60: | Line 59: | ||
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: |