14.diff (1608B)
1 diff --git a/handlers/parseNodes.js b/handlers/parseNodes.js 2 index 4fa3eef..6ece2b1 100644 3 --- a/handlers/parseNodes.js 4 +++ b/handlers/parseNodes.js 5 @@ -159,7 +159,7 @@ module.exports = { 6 since = key["firstseen"] 7 lat = key["nodeinfo"]["location"]["latitude"] 8 long = key["nodeinfo"]["location"]["longitude"] 9 - request.get('http://nominatim.openstreetmap.org/reverse?format=json&lat='+ lat + '&lon=' + lon + '&zoom=18&addressdetails=1', function (error, response, body) { 10 + request.get('http://nominatim.openstreetmap.org/reverse?format=json&lat='+ lat + '&lon=' + lon + '&zoom=18&addressdetails=1'), function (error, response, body) { 11 if (!error && response.statusCode === 200) { 12 addressJson = JSON.parse(body) 13 _.find(addressJson.address, function (key) { 14 @@ -171,7 +171,7 @@ module.exports = { 15 adress = road + " " + house_number + ", " + postcode + " " + town + ", " + country 16 }); 17 } 18 - }); 19 + } 20 if(handler == "telegram"){ 21 output = "<b>Name: </b>" + name + "\n<b>Router Location: </b>" + adress + "\n<b>Router Model: </b>" + router + "\n<b>Firmware Version: </b>" + version + "\n<b>Autoupdater Status: </b>" + autoupdate + "\n<b>Autoupdater Branch: </b>" + autoupdateBranch + "\n<b>Clients Connected: </b>" + clients + "\n<b>Online Status: </b>" + status + "\n<b>First Seen: </b>" + since 22 }