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 a3694c2afb8777c2054cf989160c2aaa1e297b30
parent 7aee376f74c9f48606d19888279d9cefc557d0df
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 11 Sep 2016 21:22:48 +0200

fix location

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

diff --git a/handlers/parseNodes.js b/handlers/parseNodes.js @@ -158,7 +158,7 @@ module.exports = { status = key["flags"]["online"] since = key["firstseen"] lat = key["nodeinfo"]["location"]["latitude"] - long = key["nodeinfo"]["location"]["longitude"] + lon = key["nodeinfo"]["location"]["longitude"] request.get('http://nominatim.openstreetmap.org/reverse?format=json&lat='+ lat + '&lon=' + lon + '&zoom=18&addressdetails=1'), function (error, response, body) { if (!error && response.statusCode === 200) { addressJson = JSON.parse(body)