User Tools

Site Tools


ds18b20_v7_0

Differences

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

Link to this comparison view

ds18b20_v7_0 [2015/05/06 06:53]
troccolo Note about GPIO pin number.
ds18b20_v7_0 [2015/11/27 21:09]
Line 1: Line 1:
-**1-Wire ds18b20** 
  
-^Feature^Support^ 
-|Sending|{{http://​wiki.pilight.org/​lib/​images/​notsupported.gif}}| 
-|Receiving|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}| 
-|Config|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}| 
- 
-==== Supported Brands ==== 
-^Brand^Protocol^ 
-|1-Wire|ds18b20| 
- 
-==== Sender Arguments ==== 
- 
-//None// 
- 
-==== Config ==== 
-<​code>​ 
-"​devices":​ { 
- "​temperature":​ { 
- "​protocol":​ [ "​ds18b20"​ ], 
- "​id":​ [{ 
- "​id":​ "​0000052ba3ac"​ 
- }], 
- "​temperature":​ 19.562 
- } 
-}, 
-"​gui":​ { 
- "​temperature":​ { 
- "​name":​ "​Temperature Sensor",​ 
- "​group":​ [ "​Misc"​ ], 
- "​media":​ [ "​all"​ ] 
- } 
-} 
-</​code>​ 
- 
-==== Optional Settings ==== 
- 
-Device Setting 
- 
-^Setting^Default^Format^Description^ 
-|poll-interval|5|seconds|What should be the poll interval of the sensors| 
-|temperature-offset|0|number|Correct temperature value| 
- 
-GUI Settings 
- 
-^Setting^Default^Format^Description 
-|temperature-decimals|2|number|How many decimals the GUIs should display for temperature| 
-|show-temperature|1|1 or 0|Don'​t display the temperature value| 
- 
-==== 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>​ 
- 
-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>​ 
-''​Note:​ The GPIO pin number is the BCM GPIO and not the WiringX number.''​ 
- 
-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: 
-<​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_v7_0.txt ยท Last modified: 2015/11/27 21:09 (external edit)