Skip to content

Instantly share code, notes, and snippets.

@StilgarBF
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save StilgarBF/c21826994b775787f739 to your computer and use it in GitHub Desktop.
Save StilgarBF/c21826994b775787f739 to your computer and use it in GitHub Desktop.
freifunk-routerdump
{
"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"
}
]
}
}
@StilgarBF
Copy link
Author

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.

@StilgarBF
Copy link
Author

rev 8: formatierung berichtigt

@StilgarBF
Copy link
Author

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