90 lines
3.0 KiB
JavaScript
90 lines
3.0 KiB
JavaScript
module.exports = function () {
|
|
return {
|
|
// Variables are NODE_ID and NODE_NAME (only a-z0-9\- other chars are replaced with _)
|
|
'nodeInfos': [
|
|
{
|
|
'name': 'Clientstatistik',
|
|
'href': 'https://statistik.freifunk-troisdorf.de/d/000000001/node-stats?orgId=1&var-node={NODE_ID}&var-saveinterval=60',
|
|
'image': 'https://statistik.freifunk-troisdorf.de/render/d-solo/000000001/node-stats?orgId=1&var-node={NODE_ID}&var-saveinterval=60&theme=light&panelId=1&width=1000&height=500&tz=Europe%2FBerlin',
|
|
'title': 'Knoten {NODE_ID}'
|
|
},
|
|
{
|
|
'name': 'Traffic',
|
|
'href': 'https://statistik.freifunk-troisdorf.de/d/000000001/node-stats?orgId=1&var-node={NODE_ID}&var-saveinterval=60',
|
|
'image': 'https://statistik.freifunk-troisdorf.de/render/d-solo/000000001/node-stats?orgId=1&var-node={NODE_ID}&var-saveinterval=60&theme=light&panelId=2&width=1000&height=500&tz=Europe%2FBerlin',
|
|
'title': 'Knoten {NODE_ID}'
|
|
}
|
|
],
|
|
// Array of data provider are supported
|
|
'dataPath': [
|
|
// 'https://map.freifunk-troisdorf.de/data/tdf4/',
|
|
// 'https://map.freifunk-troisdorf.de/data/tdf5/',
|
|
// 'https://map.freifunk-troisdorf.de/data/tdf6/',
|
|
// 'https://map.freifunk-troisdorf.de/data/rifu/'
|
|
'https://map.freifunk-troisdorf.de/data/api/'
|
|
],
|
|
'siteName': 'Freifunk Troisdorf',
|
|
'maxAge': 7,
|
|
'mapLayers': [
|
|
{
|
|
'name': 'Freifunk Rhein-Sieg',
|
|
// Please ask Freifunk Rhein Sieg before using its tile server c- example with retina tiles
|
|
'url': 'https://tile.freifunk-rhein-sieg.net/tile/{z}/{x}/{y}.png',
|
|
'config': {
|
|
'maxZoom': 20,
|
|
'attribution': '<a href="https://freifunk-rhein-sieg.net/" target="_blank">© Freifunk-Rhein-Sieg</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>'
|
|
}
|
|
},
|
|
{
|
|
'name': 'OSM',
|
|
'url': 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
|
|
'config': {
|
|
'maxZoom': 20,
|
|
'attribution': '<a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>'
|
|
}
|
|
}
|
|
],
|
|
// Set a visible frame
|
|
'fixedCenter': [
|
|
// Northwest
|
|
[
|
|
50.8428,
|
|
7.0367
|
|
],
|
|
// Southeast
|
|
[
|
|
50.776,
|
|
7.1919
|
|
]
|
|
],
|
|
'domainNames': [
|
|
{
|
|
'site': 'tdf',
|
|
'name': 'Troisdorf'
|
|
},
|
|
{
|
|
'site': 'inn',
|
|
'name': 'Innenstadt'
|
|
},
|
|
{
|
|
'site': 'rifu',
|
|
'name': 'Richtfunk'
|
|
},
|
|
{
|
|
'site': 'flu',
|
|
'name': 'Soziale Netze'
|
|
}
|
|
],
|
|
'linkList': [
|
|
{
|
|
'title': 'Impressum',
|
|
'href': 'http://freifunk-troisdorf.de/kontakt/impressum/'
|
|
},
|
|
{
|
|
'title': 'Datenschutz',
|
|
'href': 'http://freifunk-troisdorf.de/datenschutz/'
|
|
}
|
|
]
|
|
};
|
|
};
|