Skip to content

Commit

Permalink
[water-level] Add soil moisture sensor with ifttt integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sigorilla committed Feb 1, 2020
1 parent be177c5 commit 0362b63
Show file tree
Hide file tree
Showing 10 changed files with 1,153 additions and 455 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.env
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
registry=http://npm.yandex-team.ru
registry=https://registry.npmjs.org/
save=true
save-exact=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.11.3
1 change: 1 addition & 0 deletions .tesselinclude
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
server/
client/
node_modules/socket.io-client/dist/socket.io.js
Expand Down
3 changes: 1 addition & 2 deletions examples/sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const Tessel = require('tessel-io');
const j5 = require('johnny-five');
const debug = require('debug')('j5:sensor');

const board = new j5.Board({
io: new Tessel()
Expand All @@ -13,7 +12,7 @@ board.on('ready', () => {
const led = new j5.Led('b5');

sensor.on('change', () => {
debug(sensor);
console.log(sensor.analog, sensor.value);
led.brightness(sensor.analog);
});
});
Loading

0 comments on commit 0362b63

Please sign in to comment.