2017-11-10 19:23:20 +00:00
|
|
|
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://regensburg.freifunk.net/netz/statistik/node/{NODE_ID}/',
|
2018-03-05 12:04:37 +00:00
|
|
|
'image': 'https://grafana.regensburg.freifunk.net/render/d-solo/000000026/node?panelId=1&var-node={NODE_ID}&from=now-7d&width=650&height=350&theme=light&_t={TIME}',
|
2017-11-10 19:23:20 +00:00
|
|
|
'title': 'Knoten {NODE_ID} - weiteren Statistiken'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'Trafficstatistik',
|
|
|
|
'href': 'https://regensburg.freifunk.net/netz/statistik/node/{NODE_ID}/',
|
2018-03-05 12:04:37 +00:00
|
|
|
'image': 'https://grafana.regensburg.freifunk.net/render/d-solo/000000026/node?panelId=2&from=now-7d&var-node={NODE_ID}&width=650&height=350&theme=light&_t={TIME}',
|
|
|
|
'title': 'Knoten {NODE_ID} - weiteren Statistiken'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'Airtime',
|
|
|
|
'href': 'https://regensburg.freifunk.net/netz/statistik/node/{NODE_ID}/',
|
|
|
|
'image': 'https://grafana.regensburg.freifunk.net/render/d-solo/000000026/node?panelId=5&from=now-7d&var-node={NODE_ID}&width=650&height=350&theme=light&_t={TIME}',
|
2017-11-10 19:23:20 +00:00
|
|
|
'title': 'Knoten {NODE_ID} - weiteren Statistiken'
|
|
|
|
}
|
|
|
|
],
|
2018-03-05 12:04:37 +00:00
|
|
|
'linkInfos': [
|
2017-11-10 19:23:20 +00:00
|
|
|
{
|
2018-03-05 12:04:37 +00:00
|
|
|
'name': 'Statistik für alle Links zwischen diese Knoten',
|
|
|
|
'image': 'https://grafana.regensburg.freifunk.net/render/d-solo/000000026/node?panelId=7&var-node={SOURCE_ID}&var-nodetolink={TARGET_ID}&from=now-7d&&width=650&height=350&theme=light&_t={TIME}',
|
|
|
|
'title': 'Linkstatistik des letzten Tages, min und max aller Links zwischen diesen Knoten'
|
2017-11-10 19:23:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
// Array of data provider are supported
|
|
|
|
'dataPath': [
|
|
|
|
'https://regensburg.freifunk.net/data/'
|
|
|
|
],
|
|
|
|
'siteName': 'Freifunk Regensburg',
|
|
|
|
'mapLayers': [
|
|
|
|
{
|
|
|
|
'name': 'Freifunk Regensburg',
|
|
|
|
// Please ask Freifunk Regensburg before using its tile server c- example with retina tiles
|
|
|
|
'url': 'https://{s}.tiles.ffrgb.net/{z}/{x}/{y}{retina}.png',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 20,
|
|
|
|
'subdomains': '1234',
|
|
|
|
'attribution': '<a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>',
|
|
|
|
'start': 6
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'Freifunk Regensburg Night',
|
|
|
|
// Please ask Freifunk Regensburg before using its tile server - example with retina and dark tiles
|
|
|
|
'url': 'https://{s}.tiles.ffrgb.net/n/{z}/{x}/{y}{retina}.png',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 20,
|
|
|
|
'subdomains': '1234',
|
|
|
|
'attribution': ' <a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>',
|
|
|
|
'mode': 'night',
|
|
|
|
'start': 19,
|
|
|
|
'end': 7
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'OpenStreetMap.HOT',
|
|
|
|
'url': 'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 19,
|
|
|
|
'attribution': '© Openstreetmap France | © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'HERE',
|
|
|
|
// Please use your own API key - Free plan is on right side after the pay plans
|
|
|
|
'url': 'https://{s}.base.maps.api.here.com/maptile/2.1/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?app_id=YOUR_KEY&app_code=YOUR_CODE&lg=deu',
|
|
|
|
'config': {
|
|
|
|
'attribution': 'Map © 1987-2014 <a href="http://developer.here.com">HERE</a>',
|
|
|
|
'subdomains': '1234',
|
|
|
|
'maxZoom': 20
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'Esri.WorldImagery',
|
|
|
|
'url': '//server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 20,
|
|
|
|
'attribution': 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'HERE.hybridDay',
|
|
|
|
// Please use your own API key - Free plan is on right side after the pay plans
|
|
|
|
'url': 'https://{s}.aerial.maps.api.here.com/maptile/2.1/maptile/newest/{variant}/{z}/{x}/{y}/256/png8?app_id=YOUR_KEY&app_code=YOUR_CODE&lg=deu',
|
|
|
|
'config': {
|
|
|
|
'attribution': 'Map © 1987-2014 <a href="http://developer.here.com">HERE</a>',
|
|
|
|
'subdomains': '1234',
|
|
|
|
'variant': 'hybrid.day',
|
|
|
|
'maxZoom': 20
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
// Set a visible frame
|
|
|
|
'fixedCenter': [
|
|
|
|
// Northwest
|
|
|
|
[
|
|
|
|
49.3522,
|
|
|
|
11.7752
|
|
|
|
],
|
|
|
|
// Southeast
|
|
|
|
[
|
|
|
|
48.7480,
|
|
|
|
12.8917
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'siteNames': [
|
|
|
|
{
|
|
|
|
'site': 'ffrgb-bat15',
|
|
|
|
'name': 'Regensburg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'site': 'ffrgb',
|
|
|
|
'name': 'Regensburg'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|