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 7b83fc06751d2c6cef9eafc3cc5d4ed2309cc926
parent 44e30f7927bba1b520bb10c18a414b0abbed60be
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Mon,  5 Sep 2016 16:43:24 +0200

Update pushbullet.js
Diffstat:
Mhandlers/pushbullet.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handlers/pushbullet.js b/handlers/pushbullet.js @@ -17,7 +17,7 @@ module.exports = { */ pushbulletSend: function (door_status){ var token = process.env.pushbullet_api - curl.request({ url: 'https://api.pushbullet.com/v2/pushes', method: 'POST', headers: { "Access-Token": 'token', "Content-Type": 'application/json' }, data: '{"channel_tag": "space-door", "body":"'+ door_status + '","title":"Door Status","type":"note"}'}, function (err, stdout, meta) { + curl.request({ url: 'https://api.pushbullet.com/v2/pushes', method: 'POST', headers: { "Access-Token": token, "Content-Type": 'application/json' }, data: '{"channel_tag": "space-door", "body":"'+ door_status + '","title":"Door Status","type":"note"}'}, function (err, stdout, meta) { if (err){ /** * Fired when an error occurs...