From 132ceaffc5b7f2a3fea6c521638d433f188f6f2d Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Tue, 15 Jul 2014 10:15:04 +0100 Subject: [PATCH] update suncalc to use fa icons --- time/79-suncalc.html | 10 +++++----- time/79-suncalc.js | 2 +- time/package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/time/79-suncalc.html b/time/79-suncalc.html index 7e595f86..112b75a3 100644 --- a/time/79-suncalc.html +++ b/time/79-suncalc.html @@ -16,15 +16,15 @@ diff --git a/time/79-suncalc.js b/time/79-suncalc.js index eef222a4..a8a667cc 100644 --- a/time/79-suncalc.js +++ b/time/79-suncalc.js @@ -40,7 +40,7 @@ module.exports = function(RED) { var e1 = (hour*60+mins) - (hour1*60+mins1); var e2 = (hour*60+mins) - (hour2*60+mins2); var moon = SunCalc.getMoonIllumination(now).fraction; - msg = { payload:0, topic:"sun", moon:moon }; + var msg = { payload:0, topic:"sun", moon:moon }; if ((e1 > 0) & (e2 < 0)) { msg.payload = 1; } if (oldval == null) { oldval = msg.payload; } if (msg.payload == 1) { node.status({fill:"yellow",shape:"dot",text:"day"}); } diff --git a/time/package.json b/time/package.json index 97de88e9..9f7becd6 100644 --- a/time/package.json +++ b/time/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-suncalc", - "version" : "0.0.1", + "version" : "0.0.2", "description" : "A Node-RED node to provide a signal at sunrise and sunset", "dependencies" : { "suncalc" : "1.5.*"