forked from freifunkMUC/nodelist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js.onmars
57 lines (53 loc) · 1.82 KB
/
config.js.onmars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copy to app/scripts/config.js
//
// NOTE: Nodelist is licensed under the terms of the GNU Affero General Public
// License. This means that any changes to the source code need to be advertised
// to users that access nodelist over the web or other networks. In addition,
// they must be pointed to a possibility to download the modified source code.
//
// This can easily be accomplished by creating a download page (e.g. on Github)
// for your fork and linking it in the About page. To do so, you can point the
// 'downstreamSource' configuration variable to your patches/source repository
// or download location. If you did not modify the source code, no action is
// necessary and you can keep the default.
window.nodelistconfig = {
dataPath: 'https://onmars.eu/ffmuc/data/',
mapPath: 'https://onmars.eu/ffmuc/map/',
siteName: 'Freifunk München',
//downstreamSource: 'https://github.com/your/fork',
nodeUpStartColor: {h: 61, s: 100, l: 50},
nodeUpEndColor: {h: 122, s: 97, l: 50},
nodeUpGamma: 0.5,
nodeUpDays: 30,
/// TODO The same for down hosts
// nodeDownStartColor: {h: 22, s: 100, l: 82},
// nodeDownEndColor: {h: 0, s: 100, l: 70},
dataMagnitudes: [
{threshold: Math.pow(1024, 2), suffix: 'KiB', scale: Math.pow(1024, 1), tailing: 3},
{threshold: Math.pow(1024, 3), suffix: 'MiB', scale: Math.pow(1024, 2), tailing: 3},
{threshold: Math.pow(1024, 4), suffix: 'GiB', scale: Math.pow(1024, 3), tailing: 3},
{threshold: Math.pow(1024, 5), suffix: 'TiB', scale: Math.pow(1024, 4), tailing: 3},
],
showCols: [
'hasVpn',
'hasLocation',
'neighbourCnt',
'id',
'hostname',
'owner',
'version',
'model',
'autoupdater',
'clients',
'gateway',
'site',
'uptime',
'firstSeen',
'lastSeen',
'rootfsUsage',
'memoryUsage',
'traFwdRate',
'traTxRate',
'traMgmtTxRate',
],
};