Skip to content

Commit

Permalink
Changes to Alectov3 to support Fine Offset WH2
Browse files Browse the repository at this point in the history
  • Loading branch information
nlrb committed Sep 25, 2017
1 parent 4745e51 commit efdb17f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "com.weather-sensors",
"version": "1.2.1",
"version": "1.2.2",
"compatibility": ">=1.2.0",
"category": ["climate"],
"name": {
Expand All @@ -11,7 +11,7 @@
"en": "Reads data from several brands of wireless weather sensors.",
"nl": "Leest data van verschillende merken draadloze weersensoren."
},
"keywords": ["Weather sensor", "Alecto", "Auriol", "Cresta", "Esic", "LaCrosse", "TFA", "Orgeon Scientific", "UPM"],
"keywords": ["Weather sensor", "Alecto", "Auriol", "Cresta", "Esic", "LaCrosse", "TFA", "Orgeon Scientific", "Rubicson", "UPM"],
"author": {
"name": "Ramón Baas"
},
Expand Down
25 changes: 16 additions & 9 deletions node_modules/alecto/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions test/WeatherSignalTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ var testSignals = [
{ // 3d00 - WGR918N?
data: [0,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,1,0], protocol: "oregonv2"
},
{ // ???
data: [1,1,0,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,0,1,0,1,0,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,1,0,1,0,1,0,1,0,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,0,0,1,0,1], protocol: "oregonv2"
},
// Oregon v3
{
data: [1,1,1,1,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,0,0,1,1,0,1,1,0,0,1,0,1,0,0,1,0,1,0,0], protocol: "oregonv3",
Expand All @@ -160,6 +163,12 @@ var testSignals = [
// UPM/Esic
{ data: [1,0,3,2,1,1,2,2,1,1,1,2,1,2,1,2,2,0,3,1,0,3], protocol: "upm",
result: {id:10,channel:1,data:{temperature:22.1,humidity:14,lowbattery:false}}
},
{
data: [1,1,0,1,0,0,1,0,0,1,0,1,1,1,0,0,0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,1], protocol: "alectov3"
},
{
data: [1,1,0,1,0,0,1,0,0,1,0,1,1,1,0,0,0,0,1,1,1,1,0,0,1,0,1,1,1,1,1,1,1,1,0,0,1,0,0,1,0,1], protocol: "alectov3"
}
]

Expand Down

0 comments on commit efdb17f

Please sign in to comment.