limitless-pushbullet
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -73,3 +73,3 @@ var Pushbullet = require('pushbullet'); | ||
} | ||
console.log('time', +new Date() - lastTime); | ||
if (gracePeriod && +new Date() - lastTime <= gracePeriod * 1000) { | ||
@@ -80,3 +80,3 @@ enabled = false; | ||
} | ||
if (fileLocation) { | ||
@@ -89,8 +89,5 @@ promise = promise.then(function () { return readFile(fileLocation, { encoding: 'utf-8' }) }).then(function (data) { | ||
if (!enabled) { | ||
console.log('Received data but was disabled'); | ||
return; | ||
} | ||
console.log('Received data'); | ||
milight.sendCommands(Commands.rgbw.on(group), Commands.rgbw.brightness(20)); | ||
@@ -97,0 +94,0 @@ milight.pause(500); |
{ | ||
"name": "limitless-pushbullet", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Use this app to make your LimitlessLED / MiLight blink when you receive a pushbullet notification", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15803
82