rfcontroljs
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -6,3 +6,3 @@ var doesProtocolMatch, helper, protocols, sortIndices, | ||
protocols = ['weather1', 'weather2', 'weather3', 'weather4', 'weather5', 'weather6', 'switch1', 'switch2', 'switch3', 'switch4', 'switch5', 'switch6', 'switch7', 'switch8', 'rolling1', 'dimmer1', 'pir1', 'pir2', 'contact1', 'generic']; | ||
protocols = ['weather1', 'weather2', 'weather3', 'weather4', 'weather5', 'weather6', 'switch1', 'switch2', 'switch3', 'switch4', 'switch5', 'switch6', 'switch7', 'switch8', 'rolling1', 'dimmer1', 'pir1', 'pir2', 'contact1', 'contact2', 'generic']; | ||
@@ -9,0 +9,0 @@ protocols = protocols.map((function(_this) { |
@@ -34,8 +34,8 @@ module.exports = function(helper) { | ||
/* | ||
Bits: |0 0 0 0 0 0 0 0 |0 0 |1 1 1 1 1 1 1 1 1 1 2 2 2 2 |2 2 2 2 2 2 3 |3 3 3 3 3 3 | |3 | | | ||
|0 1 2 3 4 5 6 7 |8 9 |0 1 2 3 4 5 6 7 8 9 0 1 2 3 |4 5 6 7 8 9 0 |1 2 3 4 5 6 | |7 | | | ||
Pulse like:|0102010201020202|0101|0101010101010102010202010201|02010102020101|020102020101|03|01|03| | ||
|01010111 |00 |000001011010 |1001100 |101100 | |0 | | | ||
|Id |Ch ?|Temperature |Humidity |? | |? | | | ||
|87 | |90 (9.0) |76 | | | | | | ||
Bits: |0 0 0 0 0 0 0 0 |0 0 1 1 |1 1 1 1 1 1 1 1 2 2 2 2 |2 2 2 2 2 2 3 |3 3 3 3 3 3 | |3 | | | ||
|0 1 2 3 4 5 6 7 |8 9 0 1 |2 3 4 5 6 7 8 9 0 1 2 3 |4 5 6 7 8 9 0 |1 2 3 4 5 6 | |7 | | | ||
Pulse like:|0102010201020202|01010101|010101010102010202010201|02010102020101|020102020101|03|01|03| | ||
|01010111 |0000 |000001011010 |1001100 |101100 | |0 | | | ||
|Id |Ch ? |Temperature |Humidity |? | |? | | | ||
|87 | |90 (9.0) |76 | | | | | | ||
*/ | ||
@@ -53,3 +53,3 @@ var battery, binary, result; | ||
channel: helper.binaryToNumber(binary, 8, 9) + 1, | ||
temperature: helper.binaryToSignedNumber(binary, 10, 23) / 10, | ||
temperature: helper.binaryToSignedNumber(binary, 12, 23) / 10, | ||
humidity: helper.binaryToNumber(binary, 24, 30), | ||
@@ -56,0 +56,0 @@ battery: battery |
{ | ||
"name": "rfcontroljs", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Protocol support for different 433mhz switches and weather stations for the RFControl Arduino library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
121987
31
1977