User Tools

Site Tools


ds18b20

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ds18b20 [2013/10/18 18:13]
curlymo created
ds18b20 [2015/11/27 21:09] (current)
Line 6: Line 6:
 |Config|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}| |Config|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}|
  
-Supported Brands+==== Supported Brands ​====
 ^Brand^Protocol^ ^Brand^Protocol^
 |1-Wire|ds18b20| |1-Wire|ds18b20|
  
-Supported Brands +==== Sender Arguments ​====
- +
-Sender Arguments+
  
 //None// //None//
  
-Config+==== Config ​====
 <​code>​ <​code>​
         "​living":​ {         "​living":​ {
Line 31: Line 29:
 </​code>​ </​code>​
  
-Optional Settings+==== Optional Settings ​====
  
 ^Setting^Default^Format^Description^ ^Setting^Default^Format^Description^
-|decimals|3|number|How many decimals does the temperature information contain| +|device-decimals|3|number|How many decimals does the temperature information contain| 
-|humidity|0|1 or 0|Don'​t display the humidity ​value| +|gui-show-temperature|1|1 or 0|Don'​t display the temperature ​value| 
-|temperature|1|1 or 0|Don't display ​the temperature value+|poll-interval|5|seconds|What should be the poll interval of the sensors
-|battery|0|1 or 0|Don't display the battery ​value|+|device-temperature-offset|0|number|Correct temperature ​value|
  
-Protocol+==== Protocol ​====
  
 //None// //None//
 +
 +==== Notes ====
 +
 +Before pilight can see the sensor, you have to run the following commands:
 +<​code>​
 +sudo modprobe w1-gpio
 +sudo modprobe w1-therm
 +</​code>​
 +
 +To make sure this is done every reboot, edit ''/​etc/​modules''​ and add the following lines:
 +<​code>​
 +w1-gpio
 +w1-therm
 +</​code>​
 +
 +To find the correct sensor id, you have to run the following commands:
 +<​code>​
 +cd /​sys/​bus/​w1/​devices
 +ls
 +</​code>​
 +
 +The result will look like:
 +<​code>​
 +28-0000055bd776 ​ w1_bus_master1
 +</​code>​
 +
 +Use the part after 28- as the correct id, e.g. 0000055bd776.
ds18b20.1382119993.txt.gz · Last modified: 2015/11/27 21:08 (external edit)