This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openwifimap.example.json
251 lines (244 loc) · 7.6 KB
/
openwifimap.example.json
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
"_id" : "a4d15a897f851938a799e548cc000eb0", /*
* required by CouchDB: document
* id
*/
"type" : "node", /* tells couchDB that this is a node */
"hostname" : "myhostname", /* hostname == display name */
"latitude" : 52.520791, /* latitude in degrees, range [-180,180], EPSG:3857 */
"longitude" : 13.40951, /* longitude in degrees, range [-90,90], EPSG:3857 */
"updateInterval" : 6000, /* time between consecutive updates in seconds */
"ctime" : "2013-05-09T17:49:21.821Z", /*
* create time (automatically
* inserted by update handler, see
* below)
*/
"mtime" : "2013-05-10T17:50:22.123Z", /*
* modify time (automatically
* inserted by update handler, see
* below)
*/
"links" : [ {
"id" : "host2", /* document id of the neighbor node */
"quality" : 0.39016, /*
* quality of the link, range [0,1], 0==no link,
* 1==perfect link, for olsr, 1/etx can be used
* (be aware of dividing by zero)
*/
"olsr_ipv4" : { /* additional data */
"local_ip" : "104.201.1.1",
"neighbor_ip" : "104.201.1.18",
"lq" : 0.533,
"nlq" : 0.732,
"etx" : 2.5631
},
"olsr_ipv6" : { /* additional data */
"local_ip" : "2002:4e35:28e7:bd9d::1",
"neighbor_ip" : "2002:4e35:28e7:be2c::1",
"lq" : 0.533,
"nlq" : 0.732,
"etx" : 2.5631
},
} ],
"interfaces" : [
/* wire interface eth0 */
{
"name" : "eth0", /* required: name of the network interface */
"physicalType" : "ethernet", /* required: either 'ethernet' or 'wifi' */
"macAddress" : "00:66:77:88:99:AA", /* the MAC address */
"maxBitrateRX" : 100, /* max receive bitrate in Mbit/s */
"maxBitrateTX" : 100, /* max transmit bitrate in Mbit/s */
"ipv4Addresses" : [ /* list of ipv4 addresses+subnets in CIDR notation */
"104.201.0.29/28" ],
"ipv6Addresses" : [ /* list of ipv6 addresses+subnets in CIDR notation */
"dead:beef::2/56", "0455:dead::1235/64" ]
},
/* wifi interface wlan0 */
{
"name" : "wlan0",
"physicalType" : "wifi",
"macAddress" : "00:11:22:33:44:55",
"maxBitrateRX" : 300,
"maxBitrateTX" : 300,
"ipv4Addresses" : [ "104.201.111.1/28" ],
"ipv6Addresses" : [ "1234:5678::1/64" ],
/* wifi fields: */
"mode" : "master", /*
* 802.11 operation mode: 'master' (access point),
* 'client' or 'adhoc'
*/
"encryption" : "none", /*
* used encryption: 'none', 'wep', 'wpa',
* 'wpa2', ...
*/
"access" : "free", /* access policy: */
/* * 'free' as in freedom: use if everyone can use this network */
/* without password, prior registration and restrictions. */
/* This means no time limit or port restrictions! */
/* However, a splash screen with information fits into */
/* this definition. */
/* * 'password': use if everyone can obtain the password for free, */
/* and without registration, for example at the bar in your pub. */
/* * 'registration': use if everyone can use this network */
/* after registration but without any further restrictions. */
/* * 'restricted': use if time limits or port blocks are enforced */
/* in this network. Shame on you! */
/* * 'pay': use if users have to pay in order to use this network. */
/* Shame on you capitalist b4st4rd! */
"accessNote" : "everyone is welcome!", /*
* a message explaining your
* access policy.
*/
"channel" : 10, /*
* channel number, see
* http:/*en.wikipedia.org/wiki/List_of_WLAN_channels
* "txpower": 15, /* transmit power in dBm
*/
"bssid" : "00:11:22:33:44:55", /* BSSID */
"essid" : "liebknecht.freifunk.net", /* ESSID */
"dhcpSubnet" : "104.201.111.1/28", /*
* offered ipv4 DCHP address subnet
* in CIDR notation
*/
"radvdPrefixes" : [ /* list of advertised ipv6 prefixes in CIDR notation */
"1234:5678::/64" ],
"antenna" : { /*
* description of the antenna that is attached to this
* interface
*/
"builtin" : false, /* is this antenna built into the device? */
"manufacturer" : "IT ELITE", /*
* if isbuiltin==false: antenna
* manufacturer
*/
"model" : "PAT24014", /* if isbuiltin==false: antenna model */
"type" : "directed", /* type of antenna: 'omni' or 'directed' */
"gain" : 5, /* antenna gain in dBi */
"horizontalDirection" : 310, /*
* if type=='directed': horizontal
* direction of antenna in degrees,
*/
/* range [0,360], 0 is north, 90 is east,... you got it! */
"horizontalBeamwidth" : 120, /*
* horizontal beamwidth of antenna
* in degrees, range [0,360],
*/
/* value of 60 means that the antennas main beam is between */
/* horizontalDirection-30 and horizontalDirection+30 degrees */
"verticalDirection" : -12.3, /*
* tilt of the antenna in degrees,
* range [-90,90],
*/
/* -90 means oriented towards ground, 0 parallel to ground, */
/* 90 means oriented towards sky */
"verticalBeamwidth" : 17, /*
* vertical beamwidth of antenna in
* degrees, range [-90,90],
*/
/* see horizontalBeamwidth */
"polarization" : "vertical" /* polarization of antenna */
},
"wireless" : [ {
"ifname" : "wlan0-1",
"encryption" : {
"enabled" : false,
"auth_algs" : [],
"description" : "None",
"wep" : false,
"auth_suites" : [ "PSK" ],
"wpa" : 0,
"pair_ciphers" : [],
"group_ciphers" : []
},
"bssid" : "82:CA:FF:EE:BA:BE",
"probereq" : "1",
"mode" : "Ad-Hoc",
"quality" : 64,
"noise" : -95,
"ssid" : "ch8.freifunk.net",
"up" : "1",
"device" : "radio0",
"bgscan" : "0",
"bitrate" : 79000,
"txpower" : 19,
"wirelessdevice" : {
"type" : "mac80211",
"disabled" : "0",
"country" : "DE",
"txpower" : "19",
"ht_capab" : [ "SHORT-GI-40", "DSSS_CCK-40" ],
"hwmode" : "11ng",
"name" : "radio0",
"channel" : "8",
"macaddr" : "d8:5d:XX:XX:19:b2",
"htmode" : "HT20"
},
"channel" : 8,
"assoclist" : [ {
"rx_short_gi" : false,
"noise" : -95,
"rx_mcs" : 0,
"tx_40mhz" : false,
"rx_40mhz" : false,
"mac" : "00:1E:XX:XX:6C:79",
"tx_rate" : 54000,
"tx_packets" : 265,
"tx_short_gi" : false,
"rx_packets" : 41061,
"tx_mcs" : 0,
"inactive" : 70,
"rx_rate" : 5500,
"signal" : -51
}, {
"rx_short_gi" : false,
"noise" : -95,
"rx_mcs" : 0,
"tx_40mhz" : false,
"rx_40mhz" : false,
"mac" : "54:E6:XX:XX:32:1E",
"tx_rate" : 104000,
"tx_packets" : 1192505,
"tx_short_gi" : false,
"rx_packets" : 11742264,
"tx_mcs" : 13,
"inactive" : 70,
"rx_rate" : 5500,
"signal" : -41
} ],
"quality_max" : 70,
"network" : "wireless0",
"signal" : -46
} ],
} ],
"community" : {
"name" : "Freifunk Berlin",
"url" : "http:/*berlin.freifunk.net/"
},
"postalAddress" : {
"name" : "Café Kotti",
"street" : "Adalbertstraße 96",
"zip" : "10999",
"city" : "Berlin",
"country" : "Germany"
},
"hardware" : {
"manufacturer" : "Ubiquiti",
"model" : "Bullet M2",
"revision" : "3.5",
"powersupply" : "Ubiquiti PoE 24V"
},
"height" : 15.5, /* height in meters above ground level */
"indoor" : true, /* is this node placed indoors? */
"ipv4defaultGateway" : "104.201.0.33",
"ipv6defaultGateway" : "dead:1337::1",
"tags" : [ "Berlin", "freifunk", "Kreuzberg" ],
"_attachments" : {
"avatar.jpg" : {
"content_type" : "image/jpeg",
"revpos" : 9,
"digest" : "md5-s3yeZmYBgM4+UxbaNvQlsw==",
"length" : 84923,
"stub" : true
}
}
}