-
Notifications
You must be signed in to change notification settings - Fork 8
/
fixedCommunities.php
111 lines (99 loc) · 4.41 KB
/
fixedCommunities.php
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
<?php
/**
* @var NodeListParser $parser
*/
$ff_ddfl = new stdClass();
$ff_ddfl->name = 'Freifunk Duesseldorf-Flingern';
$ff_ddfl->nameShort = 'Duesseldorf Flingern';
$ff_ddfl->url = 'https://karte.ffdus.de/data/nodes.json';
$ff_ddfl->homePage = 'http://www.ffdus.de/';
$ff_ddfl->parser = 'Ffmap';
$parser->addAdditional('ff_duesseldorf-flingern', $ff_ddfl);
$ff_wt = new stdClass();
$ff_wt->name = 'Freifunk Wuppertal';
$ff_wt->nameShort = 'Wuppertal';
$ff_wt->url = 'https://map.freifunk-wuppertal.net/data/nodes.json';
$ff_wt->homePage = 'http://www.freifunk-wuppertal.net';
$ff_wt->parser = 'Ffmap';
$parser->addAdditional('ff_wt', $ff_wt);
foreach (["wtbg","sdlh","hd","mdb","doerfer","ln","hlb","bs","mb","mq","su","wa","ar"] as $index => $identifier) {
${'ff_winterb_'.$index} = new stdClass();
${'ff_winterb_'.$index}->name = 'Freifunk Winterberg '.$identifier;
${'ff_winterb_'.$index}->nameShort = 'Winterberg'.$identifier;
${'ff_winterb_'.$index}->url = 'https://map.freifunk-winterberg.net/data/'.$identifier.'/meshviewer.json';
${'ff_winterb_'.$index}->homePage = 'https://map.freifunk-winterberg.net/';
${'ff_winterb_'.$index}->parser = 'Ffmap';
$parser->addAdditional('ff_winterberg_'.$index, ${'ff_winterb_'.$index});
}
$ff_lz = new stdClass();
$ff_lz->name = 'Freifunk Leipzig';
$ff_lz->nameShort = 'Leipzig';
$ff_lz->url = 'http://db.leipzig.freifunk.net/uptime/hopglass/v2/nodes.json';
$ff_lz->homePage = 'http://leipzig.freifunk.net/';
$ff_lz->parser = 'Ffmap';
$parser->addAdditional('ff_lz', $ff_lz);
$ff_lp = new stdClass();
$ff_lp->name = 'Freifunk Lippe';
$ff_lp->nameShort = 'Lippe ';
$ff_lp->url = 'https://map.freifunk-lippe.de/map/data/meshviewer.json';
$ff_lp->homePage = 'http://freifunk-lippe.de/';
$ff_lp->parser = 'Ffmap';
$parser->addAdditional('ff_lp', $ff_lp);
$ff_eb = new stdClass();
$ff_eb->name = 'Freifunk Einbeck';
$ff_eb->nameShort = 'Einbeck ';
$ff_eb->url = 'http://vps643489.ovh.net/meshviewer/data/meshviewer.json';
$ff_eb->homePage = 'https://freifunk-einbeck.de/';
$ff_eb->parser = 'Ffmap';
$parser->addAdditional('ff_eb', $ff_eb);
$ff_en = new stdClass();
$ff_en->name = 'Freifunk Ennepetal';
$ff_en->nameShort = 'Ennepetal';
$ff_en->url = 'https://karte.ff-en.de/data/meshviewer.json';
$ff_en->homePage = 'https://freifunk-en.de/';
$ff_en->parser = 'Ffmap';
$parser->addAdditional('ff_en', $ff_en);
foreach (range(1, 4) as $index) {
${'ff_gt_'.$index} = new stdClass();
${'ff_gt_'.$index}->name = 'Freifunk Kreis GT '.$index;
${'ff_gt_'.$index}->nameShort = 'Gütersloh'.$index;
${'ff_gt_'.$index}->url = 'https://map03.4830.org/data/map_0'.$index.'/nodes.json';
${'ff_gt_'.$index}->homePage = 'https://freifunk-kreisgt.de/';
${'ff_gt_'.$index}->parser = 'Ffmap';
$parser->addAdditional('ff_gt_'.$index, ${'ff_gt_'.$index});
}
$ff_goettingen = new stdClass();
$ff_goettingen->name = 'Freifunk Göttingen';
$ff_goettingen->nameShort = 'Göttingen';
$ff_goettingen->url = 'https://cccgoe.de/map2data/nodes.json';
$ff_goettingen->homePage = 'http://freifunk-goettingen.de';
$ff_goettingen->parser = 'Ffmap';
$parser->addAdditional('ff_goettingen', $ff_goettingen);
$ff_weimar = new stdClass();
$ff_weimar->name = 'Freifunk Weimar';
$ff_weimar->nameShort = 'Weimar';
$ff_weimar->url = 'https://hopglass.weimarnetz.de/data/nodes.json';
$ff_weimar->homePage = 'https://weimarnetz.de/';
$ff_weimar->parser = 'Ffmap';
$parser->addAdditional('ff_weimar', $ff_weimar);
$ff_chemnitz2 = new stdClass();
$ff_chemnitz2->name = 'Freifunk Chemnitz';
$ff_chemnitz2->nameShort = 'Chemnitz';
$ff_chemnitz2->url = 'https://gianotti.routers.chemnitz.freifunk.net/nodelist.json';
$ff_chemnitz2->homePage = 'https://www.chemnitz.freifunk.net/';
$ff_chemnitz2->parser = 'nodelist';
$parser->addAdditional('ff_chemnitz2', $ff_chemnitz2);
$ff_kbumland = new stdClass();
$ff_kbumland->name = 'Freifunk KoelnBonnUmland';
$ff_kbumland->nameShort = 'KBU';
$ff_kbumland->url = 'https://map.kbu.freifunk.net/data/ffkbuu/meshviewer.json';
$ff_kbumland->homePage = 'https://map.kbu.freifunk.net/#!/de/map';
$ff_kbumland->parser = 'Ffmap';
$parser->addAdditional('ff_kbumland', $ff_kbumland);
$ff_euskirchen = new stdClass();
$ff_euskirchen->name = 'Freifunk Euskirchen';
$ff_euskirchen->nameShort = 'Euskirchen';
$ff_euskirchen->url = 'https://map.kbu.freifunk.net/data/ffeu/meshviewer.json';
$ff_euskirchen->homePage = 'https://ffeu.de/';
$ff_euskirchen->parser = 'Ffmap';
$parser->addAdditional('ff_euskirchen', $ff_euskirchen);