Closed minicatsCB closed 5 years ago
Extracted the number identifier of the cameras with this regex: /(?<=Camara).+?(?=.jpg)/gm
:
06303
06304
06305
06306
06308
09303
07306
09307
01313
09301
01314
06301
07302
05308
05304
05306
04312
01320
01301
04305
04307
04306
03303
02304
01306
01305
01304
01302
01317
01318
07308
01321
04310
07301
07305
07307
04308
01303
10302
11307
04302
04303
11304
03306
03307
20308
01308
01309
01310
01311
08317
02308
09309
09310
10309
15302
15301
08309
17301
08313
16308
10307
13305
14303
18303
08316
08315
15305
01307
03301
11302
13301
09302
13304
18301
04304
02310
11310
01312
04309
15304
04311
07303
02305
09304
09305
10305
11309
05303
13302
08310
08311
08303
06309
06310
08312
15303
05307
09306
03302
12302
08318
16306
08308
16301
20306
20307
16305
16304
16303
08307
08306
08305
06302
04313
06307
02303
02306
14302
14301
16302
13303
10306
03304
05305
08301
09311
08314
20302
07304
04314
04315
15307
06311
20303
20304
20305
20301
02301
02302
12301
11303
12309
12304
12307
12306
12305
12303
12308
01316
01315
21301
05309
10308
05301
05302
03305
04301
15306
08302
08304
11301
18304
16307
01323
01322
04316
20309
01331
01332
01319
01330
14304
07309
10304
09312
13306
01324
11305
02307
18305
20311
20310
05311
05312
18306
05310
21302
17302
20313
11306
15308
08319
13307
02311
16309
14305
18302
04317
08320
09313
08321
15310
16310
15309
01333
15311
09314
11311
04318
19301
03308
10310
11312
19302
11313
17303
15312
13308
15313
16311
06312
04319
05314
08322
10311
12310
01334
05315
02309
08323
14306
08324
11314
08325
09315
10312
13310
01335
03309
04320
04321
04322
05316
06313
07310
08326
08327
08328
08329
08330
09316
09317
09318
10313
11315
11316
11317
13311
13312
13313
13314
14307
14308
15314
15315
16312
16313
16314
17304
18307
21303
19303
Sort numbers in ascending order:
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1330
1331
1332
1333
1334
1335
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
3301
3302
3303
3304
3305
3306
3307
3308
3309
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5314
5315
5316
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
9301
9302
9303
9304
9305
9306
9307
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
10302
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
11301
11302
11303
11304
11305
11306
11307
11309
11310
11311
11312
11313
11314
11315
11316
11317
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
13301
13302
13303
13304
13305
13306
13307
13308
13310
13311
13312
13313
13314
14301
14302
14303
14304
14305
14306
14307
14308
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
17301
17302
17303
17304
18301
18302
18303
18304
18305
18306
18307
19301
19302
19303
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20313
21301
21302
21303
Not necessary to find the logic. Just put all the numbers in an array and take a random one when needed.
var cameraIds = [01301,01302,01303,01304,01305,01306,01307,01308,01309,01310,01311,01312,01313,01314,01315,01316,01317,01318,01319,01320,01321,01322,01323,01324,01330,01331,01332,01333,01334,01335,02301,02302,02303,02304,02305,02306,02307,02308,02309,02310,02311,03301,03302,03303,03304,03305,03306,03307,03308,03309,04301,04302,04303,04304,04305,04306,04307,04308,04309,04310,04311,04312,04313,04314,04315,04316,04317,04318,04319,04320,04321,04322,05301,05302,05303,05304,05305,05306,05307,05308,05309,05310,05311,05312,05314,05315,05316,06301,06302,06303,06304,06305,06306,06307,06308,06309,06310,06311,06312,06313,07301,07302,07303,07304,07305,07306,07307,07308,07309,07310,08301,08302,08303,08304,08305,08306,08307,08308,08309,08310,08311,08312,08313,08314,08315,08316,08317,08318,08319,08320,08321,08322,08323,08324,08325,08326,08327,08328,08329,08330,09301,09302,09303,09304,09305,09306,09307,09309,09310,09311,09312,09313,09314,09315,09316,09317,09318,10302,10304,10305,10306,10307,10308,10309,10310,10311,10312,10313,11301,11302,11303,11304,11305,11306,11307,11309,11310,11311,11312,11313,11314,11315,11316,11317,12301,12302,12303,12304,12305,12306,12307,12308,12309,12310,13301,13302,13303,13304,13305,13306,13307,13308,13310,13311,13312,13313,13314,14301,14302,14303,14304,14305,14306,14307,14308,15301,15302,15303,15304,15305,15306,15307,15308,15309,15310,15311,15312,15313,15314,15315,16301,16302,16303,16304,16305,16306,16307,16308,16309,16310,16311,16312,16313,16314,17301,17302,17303,17304,18301,18302,18303,18304,18305,18306,18307,19301,19302,19303,20301,20302,20303,20304,20305,20306,20307,20308,20309,20310,20311,20313,21301,21302,21303];
Array not sorted (for more randomness):
var camerasIds = [06303,06304,06305,06306,06308,09303,07306,09307,01313,09301,01314,06301,07302,05308,05304,05306,04312,01320,01301,04305,04307,04306,03303,02304,01306,01305,01304,01302,01317,01318,07308,01321,04310,07301,07305,07307,04308,01303,10302,11307,04302,04303,11304,03306,03307,20308,01308,01309,01310,01311,08317,02308,09309,09310,10309,15302,15301,08309,17301,08313,16308,10307,13305,14303,18303,08316,08315,15305,01307,03301,11302,13301,09302,13304,18301,04304,02310,11310,01312,04309,15304,04311,07303,02305,09304,09305,10305,11309,05303,13302,08310,08311,08303,06309,06310,08312,15303,05307,09306,03302,12302,08318,16306,08308,16301,20306,20307,16305,16304,16303,08307,08306,08305,06302,04313,06307,02303,02306,14302,14301,16302,13303,10306,03304,05305,08301,09311,08314,20302,07304,04314,04315,15307,06311,20303,20304,20305,20301,02301,02302,12301,11303,12309,12304,12307,12306,12305,12303,12308,01316,01315,21301,05309,10308,05301,05302,03305,04301,15306,08302,08304,11301,18304,16307,01323,01322,04316,20309,01331,01332,01319,01330,14304,07309,10304,09312,13306,01324,11305,02307,18305,20311,20310,05311,05312,18306,05310,21302,17302,20313,11306,15308,08319,13307,02311,16309,14305,18302,04317,08320,09313,08321,15310,16310,15309,01333,15311,09314,11311,04318,19301,03308,10310,11312,19302,11313,17303,15312,13308,15313,16311,06312,04319,05314,08322,10311,12310,01334,05315,02309,08323,14306,08324,11314,08325,09315,10312,13310,01335,03309,04320,04321,04322,05316,06313,07310,08326,08327,08328,08329,08330,09316,09317,09318,10313,11315,11316,11317,13311,13312,13313,13314,14307,14308,15314,15315,16312,16313,16314,17304,18307,21303,19303];
Add "Camara" prefix as, at the time of this comment, this is what the URL needs in order to work:
var camerasIds = ["Camara06303","Camara06304","Camara06305","Camara06306","Camara06308","Camara09303","Camara07306","Camara09307","Camara01313","Camara09301","Camara01314","Camara06301","Camara07302","Camara05308","Camara05304","Camara05306","Camara04312","Camara01320","Camara01301","Camara04305","Camara04307","Camara04306","Camara03303","Camara02304","Camara01306","Camara01305","Camara01304","Camara01302","Camara01317","Camara01318","Camara07308","Camara01321","Camara04310","Camara07301","Camara07305","Camara07307","Camara04308","Camara01303","Camara10302","Camara11307","Camara04302","Camara04303","Camara11304","Camara03306","Camara03307","Camara20308","Camara01308","Camara01309","Camara01310","Camara01311","Camara08317","Camara02308","Camara09309","Camara09310","Camara10309","Camara15302","Camara15301","Camara08309","Camara17301","Camara08313","Camara16308","Camara10307","Camara13305","Camara14303","Camara18303","Camara08316","Camara08315","Camara15305","Camara01307","Camara03301","Camara11302","Camara13301","Camara09302","Camara13304","Camara18301","Camara04304","Camara02310","Camara11310","Camara01312","Camara04309","Camara15304","Camara04311","Camara07303","Camara02305","Camara09304","Camara09305","Camara10305","Camara11309","Camara05303","Camara13302","Camara08310","Camara08311","Camara08303","Camara06309","Camara06310","Camara08312","Camara15303","Camara05307","Camara09306","Camara03302","Camara12302","Camara08318","Camara16306","Camara08308","Camara16301","Camara20306","Camara20307","Camara16305","Camara16304","Camara16303","Camara08307","Camara08306","Camara08305","Camara06302","Camara04313","Camara06307","Camara02303","Camara02306","Camara14302","Camara14301","Camara16302","Camara13303","Camara10306","Camara03304","Camara05305","Camara08301","Camara09311","Camara08314","Camara20302","Camara07304","Camara04314","Camara04315","Camara15307","Camara06311","Camara20303","Camara20304","Camara20305","Camara20301","Camara02301","Camara02302","Camara12301","Camara11303","Camara12309","Camara12304","Camara12307","Camara12306","Camara12305","Camara12303","Camara12308","Camara01316","Camara01315","Camara21301","Camara05309","Camara10308","Camara05301","Camara05302","Camara03305","Camara04301","Camara15306","Camara08302","Camara08304","Camara11301","Camara18304","Camara16307","Camara01323","Camara01322","Camara04316","Camara20309","Camara01331","Camara01332","Camara01319","Camara01330","Camara14304","Camara07309","Camara10304","Camara09312","Camara13306","Camara01324","Camara11305","Camara02307","Camara18305","Camara20311","Camara20310","Camara05311","Camara05312","Camara18306","Camara05310","Camara21302","Camara17302","Camara20313","Camara11306","Camara15308","Camara08319","Camara13307","Camara02311","Camara16309","Camara14305","Camara18302","Camara04317","Camara08320","Camara09313","Camara08321","Camara15310","Camara16310","Camara15309","Camara01333","Camara15311","Camara09314","Camara11311","Camara04318","Camara19301","Camara03308","Camara10310","Camara11312","Camara19302","Camara11313","Camara17303","Camara15312","Camara13308","Camara15313","Camara16311","Camara06312","Camara04319","Camara05314","Camara08322","Camara10311","Camara12310","Camara01334","Camara05315","Camara02309","Camara08323","Camara14306","Camara08324","Camara11314","Camara08325","Camara09315","Camara10312","Camara13310","Camara01335","Camara03309","Camara04320","Camara04321","Camara04322","Camara05316","Camara06313","Camara07310","Camara08326","Camara08327","Camara08328","Camara08329","Camara08330","Camara09316","Camara09317","Camara09318","Camara10313","Camara11315","Camara11316","Camara11317","Camara13311","Camara13312","Camara13313","Camara13314","Camara14307","Camara14308","Camara15314","Camara15315","Camara16312","Camara16313","Camara16314","Camara17304","Camara18307","Camara21303","Camara19303"];
These are all the cameras present in CCTV.json.
Tasks: