From 912dbfdf93d5003d59f15cc0798d5b548e80c0f1 Mon Sep 17 00:00:00 2001 From: mojoaxel Date: Sun, 12 Oct 2014 19:53:59 +0200 Subject: [PATCH] updates for 0.4.4 --- communitys_franken.json | 29 ++++++++++++++++++++++++++++- create_community_files.js | 19 ++++++++++--------- 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/communitys_franken.json b/communitys_franken.json index 476474f..ae1551c 100644 --- a/communitys_franken.json +++ b/communitys_franken.json @@ -56,11 +56,28 @@ "vpninternational" ] }, - "api" : "0.4.3" + "api" : "0.4.4" } }, "communities": [{ + "id" : "franken", + "radius" : 0, + "data" : { + "name" : "Freifunk Franken", + "metacommunity" : true, + "nodeMaps" : [{ + "url" : "https://netmon.freifunk-franken.de/map.php", + "technicalType" : "netmon", + "mapType" : "geographical" + }], + "timeline": [{ + "description": "Erste Mail auf der Mailingliste Freifunk-Franken", + "timestamp": "2009-02-27", + "url": "http://lists.freifunk.net/pipermail/franken-freifunk.net/2009-February/000000.html" + }] + } + }, { "id" : "nuernberg", "radius" : 10, "data" : { @@ -92,6 +109,11 @@ "url:" : "https://netmon.freifunk-franken.de/map.php?zoom=13&lat=49.47703&lon=10.96743&layers=B0000TTTTTT", "technicalType" : "netmon", "mapType" : "geographical" + }], + "timeline": [{ + "description": "Einrichten der Seite Freifunk Fürth auf wiki.freifunk.net", + "timestamp": "2008-05-29", + "url": "http://lists.freifunk.net/pipermail/franken-freifunk.net/2009-February/000000.html" }] } }, { @@ -126,6 +148,11 @@ "url" : "https://netmon.freifunk-franken.de/map.php?zoom=12&lat=49.59401&lon=11.01177&layers=B0000TTTTTT", "technicalType" : "netmon", "mapType" : "geographical" + }], + "timeline": [{ + "description": "Einrichten der Seite Freifunk_Erlangen auf wiki.freifunk.net", + "timestamp": "2008-09-05", + "url": "http://wiki.freifunk.net/index.php?title=Freifunk_Erlangen&oldid=4791" }] } }, { diff --git a/create_community_files.js b/create_community_files.js index d4a1a8f..871ca4e 100644 --- a/create_community_files.js +++ b/create_community_files.js @@ -76,15 +76,16 @@ function updateCommunities(data) { routerlist = data.netmon_response.routerlist; routers = data.netmon_response.routerlist[0].router; - -// for (var n = 0; n < routers.length; n = n + 1) { -// if (routers[n].statusdata[0].status[0] !== "online") { -// continue; -// } -// count = count + 1; -// } -// // write meta-community file -// updateCommunity(metacommunity, count); + /* + for (var n = 0; n < routers.length; n = n + 1) { + if (routers[n].statusdata[0].status[0] !== "online") { + continue; + } + count = count + 1; + } + // write meta-community file + updateCommunity(metacommunity, count); + */ // write community files var length = communities.length;