meshviewer/config.js

90 lines
3.0 KiB
JavaScript
Raw Permalink Normal View History

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',
2021-04-03 10:10:05 +00:00
'href': 'https://statistik.freifunk-troisdorf.de/d/000000001/node-stats?orgId=1&var-node={NODE_ID}&var-saveinterval=60',
2021-04-11 09:42:48 +00:00
'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',
2021-04-11 08:12:22 +00:00
'title': 'Knoten {NODE_ID}'
2018-04-19 10:06:43 +00:00
},
{
2018-06-25 19:59:11 +00:00
'name': 'Traffic',
2021-04-03 10:10:05 +00:00
'href': 'https://statistik.freifunk-troisdorf.de/d/000000001/node-stats?orgId=1&var-node={NODE_ID}&var-saveinterval=60',
2021-04-11 09:42:48 +00:00
'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',
2021-04-11 08:12:22 +00:00
'title': 'Knoten {NODE_ID}'
2017-11-10 19:23:20 +00:00
}
],
2018-06-10 09:27:38 +00:00
// Array of data provider are supported
2018-06-25 20:04:50 +00:00
'dataPath': [
2021-02-13 23:30:50 +00:00
// '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/'
2018-06-25 20:04:50 +00:00
],
'siteName': 'Freifunk Troisdorf',
2018-06-10 09:27:38 +00:00
'maxAge': 7,
2017-11-10 19:23:20 +00:00
'mapLayers': [
2019-11-09 17:00:37 +00:00
{
'name': 'Freifunk Rhein-Sieg',
2019-11-10 14:21:24 +00:00
// Please ask Freifunk Rhein Sieg before using its tile server c- example with retina tiles
2020-11-12 17:40:23 +00:00
'url': 'https://tile.freifunk-rhein-sieg.net/tile/{z}/{x}/{y}.png',
2019-11-09 17:00:37 +00:00
'config': {
2019-11-10 14:21:24 +00:00
'maxZoom': 20,
2019-11-23 10:22:34 +00:00
'attribution': '<a href="https://freifunk-rhein-sieg.net/" target="_blank">&copy; Freifunk-Rhein-Sieg</a> <a href="http://www.openstreetmap.org/about/" target="_blank">&copy; OpenStreetMap contributors</a>'
2019-11-09 17:00:37 +00:00
}
},
2018-06-10 09:27:38 +00:00
{
2019-05-07 14:36:06 +00:00
'name': 'OSM',
2019-05-07 14:39:07 +00:00
'url': 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
2018-06-10 09:27:38 +00:00
'config': {
2019-11-10 14:21:24 +00:00
'maxZoom': 20,
2019-01-31 18:36:27 +00:00
'attribution': '<a href="http://www.openmaptiles.org/" target="_blank">&copy; OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">&copy; OpenStreetMap contributors</a>'
2017-11-10 19:23:20 +00:00
}
}
],
// Set a visible frame
'fixedCenter': [
2018-06-10 09:27:38 +00:00
// Northwest
2017-11-10 19:23:20 +00:00
[
2018-06-25 20:04:50 +00:00
50.8428,
7.0367
2017-11-10 19:23:20 +00:00
],
// Southeast
[
2018-06-25 20:04:50 +00:00
50.776,
7.1919
2017-11-10 19:23:20 +00:00
]
],
2018-10-07 13:04:12 +00:00
'domainNames': [
2017-11-10 19:23:20 +00:00
{
2018-06-25 20:04:50 +00:00
'site': 'tdf',
'name': 'Troisdorf'
},
{
'site': 'inn',
'name': 'Innenstadt'
},
2020-07-19 22:06:10 +00:00
{
'site': 'rifu',
'name': 'Richtfunk'
},
2018-06-25 20:04:50 +00:00
{
'site': 'flu',
'name': 'Soziale Netze'
2018-06-10 09:27:38 +00:00
}
],
'linkList': [
2017-11-10 19:23:20 +00:00
{
2018-06-10 09:27:38 +00:00
'title': 'Impressum',
2018-06-25 20:07:47 +00:00
'href': 'http://freifunk-troisdorf.de/kontakt/impressum/'
2018-04-10 14:51:02 +00:00
},
2018-04-09 20:21:31 +00:00
{
2018-06-10 09:27:38 +00:00
'title': 'Datenschutz',
2018-06-25 20:07:47 +00:00
'href': 'http://freifunk-troisdorf.de/datenschutz/'
2018-05-23 22:51:41 +00:00
}
2017-11-10 19:23:20 +00:00
]
};
};