add options to sync only future events

This commit is contained in:
basti76
2018-09-15 16:43:18 +02:00
parent 4e8147a50b
commit 3020de0816
2 changed files with 14 additions and 2 deletions

View File

@ -20,6 +20,8 @@ module.exports = function (RED) {
RED.nodes.createNode(this, n)
this.server = RED.nodes.getNode(n.server)
this.calendar = n.calendar
this.future = n.future || true;
this.futureWeeks = n.futureWeeks || 4;
let node = this
node.on('input', function (msg) {