Last active
August 29, 2015 14:11
-
-
Save StilgarBF/c21826994b775787f739 to your computer and use it in GitHub Desktop.
freifunk-routerdump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0.0", | |
"updated_at": "2014-12-09T07: 39: 22+00: 00", | |
"community": { | |
"href": "URL-to_API-FILE.json", | |
"name": "Freifunk-Meinestadt" | |
}, | |
"nodes": [ | |
{ | |
"id": "r_0815", | |
"name": "Cafe kleine Möve", | |
"node_type": "AccessPoint", | |
"href": "https:www.freifunk-meinestadt.de/routers.php?id=r_0815", | |
"updated_at": "2014-12-09T07: 39: 22+00: 00", | |
"status": { | |
"online": true, | |
"clients": 10, | |
"lastcontact": "2014-12-09T07: 39: 22+00: 00" | |
}, | |
"links": { | |
"admin_c": { | |
"type": "people", | |
"id": 2 | |
} | |
}, | |
"position": { | |
"lat": 51.1, | |
"long": 10.1, | |
"alt": 32 | |
} | |
} | |
], | |
"linked": { | |
"people": [ | |
{ | |
"id": 15, | |
"name": "Horsti", | |
"href": "https:www.freifunk-meinestadt.de/users.php?id=15" | |
} | |
] | |
} | |
} |
rev 8: formatierung berichtigt
Für die Ausgabe stehen beispielhaft 2 php-klassen zur Verfügung
https://github.com/StilgarBF/nodelistexport
das File sollte dann im FreiFunk API-File verlinkt werden
nodeMaps:
technicalType: 'nodeList',
mapType: 'list/status'
url: ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In revision 7 einige Anregungen von https://gist.github.com/yanosz/eb893b929cd6d69cba3e übernommen.
Ist mir dort aber zum Teil zu viel Information.
Ziehe in Erwägung das so in Netmon zu implementieren.