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 63a290703080bd6c0a5a89e41207153e3c54fd5b
parent 0e9d43e1c71f85d0d667883e9f1fe5eab75c6b8f
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Fri,  2 Jun 2017 14:58:31 +0200

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

diff --git a/handlers/parseNodes.js b/handlers/parseNodes.js @@ -21,7 +21,7 @@ var _ = require("lodash"); */ module.exports = { saveNodes: function () { - request.get('https://cdn.rawgit.com/MTRNord/gluon-web-remote/01677d6f/configs/communities.json', function (err, res, body) { + request.get('https://cdn.rawgit.com/MTRNord/gluon-web-remote/c956a185/configs/communities.json', function (err, res, body) { if (!err && res.statusCode === 200) { /** * Content of communities @@ -58,7 +58,7 @@ module.exports = { return console.log(err); } var communities = obj - _.find(communities.communities, function (key) { + _.find(communities, function (key) { var ccode = key; if (ccode.toLowerCase() == ccode_func.toLowerCase()) { var nodesFile_link = key["nodesURL"]; @@ -119,7 +119,7 @@ module.exports = { throw new Error(err); } var communities = obj - _.find(communities.communities, function (key) { + _.find(communities, function (key) { var ccode = key; if (ccode.toLowerCase() == ccode_func.toLowerCase()) { var nodesFile_link = key["nodesURL"];