Skip to content

Commit

Permalink
Merge pull request #13 from biddster/develop
Browse files Browse the repository at this point in the history
0.7.1
  • Loading branch information
biddster committed May 14, 2016
2 parents c8175ae + 08c3727 commit e1dea1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ module.exports = function (RED) {
RED.nodes.registerType('schedex', function (config) {
RED.nodes.createNode(this, config);
var node = this;
node.log(JSON.stringify(config, null, 4));
var events = {
on: setupEvent('on', 'dot'),
off: setupEvent('off', 'ring')
Expand Down Expand Up @@ -68,7 +67,6 @@ module.exports = function (RED) {
send(event);
schedule(event);
};
node.log(JSON.stringify(event, null, 4));
return event;
}

Expand Down Expand Up @@ -108,7 +106,6 @@ module.exports = function (RED) {
}

var delay = event.moment.diff(now);
node.log(event.name + ' scheduled for: ' + event.moment.format(fmt) + ' delay: ' + delay);
if (event.timeout) {
clearTimeout(event.timeout);
}
Expand All @@ -118,8 +115,6 @@ module.exports = function (RED) {
}
}

node.log('Scheduling suspended is: ' + config.suspended);

if (config.suspended) {
node.status({fill: 'grey', shape: 'dot', text: 'Scheduling suspended - manual mode only'});
} else {
Expand All @@ -128,7 +123,6 @@ module.exports = function (RED) {
var firstEvent = events.on.moment.isBefore(events.off.moment) ? events.on : events.off;
var message = firstEvent.name + ' ' + firstEvent.moment.format(fmt) + ', ' +
firstEvent.inverse.name + ' ' + firstEvent.inverse.moment.format(fmt);
node.log(message);
node.status({fill: 'yellow', shape: 'dot', text: message});
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-schedex",
"version": "0.7.0",
"version": "0.7.1",
"description": "",
"main": "index.js",
"keywords": ["node-red", "schedule", "scheduler", "timer", "sun events"],
Expand Down

0 comments on commit e1dea1e

Please sign in to comment.