freifunk-bot

Modular parser for the hackerspace door status with handlers for multiple services
git clone git://archive.git.mtrnord.blog/MTRNord/freifunk-bot.git
Log | Files | Refs | README | LICENSE

commit 503608c027a7cebe8cf82bd5efd9a033850235e8
parent 71cd2b7b5007a8d66fca543ce06ed54c30744a8a
Author: Marcel Radzio <marcel@radzio-sh.de>
Date:   Sat, 19 Dec 2015 01:00:01 +0100

Some optimizings

Diffstat:
Mhandlers/pushbullet.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/handlers/pushbullet.js b/handlers/pushbullet.js @@ -2,9 +2,9 @@ var curl = require('curlrequest'); module.exports = { pushbulletSend: function (door_status){ curl.request({ url: 'https://api.pushbullet.com/v2/pushes', method: 'POST', headers: { "Access-Token": 'Access-Token', "Content-Type": 'application/json' }, data: '{"channel_tag": "space-door", "body":"'+ door_status + '","title":"Door Status","type":"note"}'}, function (err, stdout, meta) { - console.log(err); - console.log('\n STDOUT: \n'); - console.log(stdout); + if (err){ + console.log(err); + } }); } }; \ No newline at end of file