1
0
Fork 0

Added individual links to Target-Entries in TG_List.csv

Added as new column like:
YSF,0,40,DL Multimode 263,https://c4fm.ysfreflector.de/Germany/
main
Kim Huebel 4 years ago
parent 231f829cb8
commit dab6896877

@ -1,18 +1,18 @@
MODE,TS,TG,LABEL MODE,TS,TG,LABEL,URL
DMR,1,263,DL Multimode BM DMR,1,263,DL Multimode BM,
DMR,2,8021,Pegasus DMR-DL DMR,2,8021,Pegasus DMR-DL,
DMR,2,2625,RLP/SL BM DMR,2,2625,RLP/SL BM,
YSF,0,1,Local Parrot YSF,0,1,Local Parrot,
YSF,0,2,DEV Reflector YSF,0,2,DEV Reflector,
YSF,0,10,YSF2DMR TG26250 YSF,0,10,YSF2DMR TG26250,
YSF,0,40,DL Multimode 263 YSF,0,40,DL Multimode 263,https://c4fm.ysfreflector.de/Germany/
YSF,0,41,DL-RAMSES YSF,0,41,DL-RAMSES,
YSF,0,42,DL-RAMSES-II YSF,0,42,DL-RAMSES-II,
YSF,0,43,DL-RAMSES-III YSF,0,43,DL-RAMSES-III,
YSF,0,44,DL-PEGASUS YSF,0,44,DL-PEGASUS,
YSF,0,45,DL-SAAR YSF,0,45,DL-SAAR,https://c4fm.ysfreflector.de/DL-Saar/
YSF,0,46,DE-Twitterrunde YSF,0,46,DE-Twitterrunde,https://c4fm.ysfreflector.de/Twitterrunde/
YSF,0,47,DE-Westpfalz YSF,0,47,DE-Westpfalz,https://westpfalz.ysfreflector.de
YSF,0,48,DE-Deutschland YSF,0,48,DE-Deutschland,
YSF,0,49,America Link YSF,0,49,America Link,
YSF,0,99,Network Parrot YSF,0,99,Network Parrot,

1 MODE TS TG LABEL URL
2 DMR 1 263 DL Multimode BM
3 DMR 2 8021 Pegasus DMR-DL
4 DMR 2 2625 RLP/SL BM
5 YSF 0 1 Local Parrot
6 YSF 0 2 DEV Reflector
7 YSF 0 10 YSF2DMR TG26250
8 YSF 0 40 DL Multimode 263 https://c4fm.ysfreflector.de/Germany/
9 YSF 0 41 DL-RAMSES
10 YSF 0 42 DL-RAMSES-II
11 YSF 0 43 DL-RAMSES-III
12 YSF 0 44 DL-PEGASUS
13 YSF 0 45 DL-SAAR https://c4fm.ysfreflector.de/DL-Saar/
14 YSF 0 46 DE-Twitterrunde https://c4fm.ysfreflector.de/Twitterrunde/
15 YSF 0 47 DE-Westpfalz https://westpfalz.ysfreflector.de
16 YSF 0 48 DE-Deutschland
17 YSF 0 49 America Link
18 YSF 0 99 Network Parrot

@ -160,7 +160,11 @@ function resolveTarget(mode, timeslot, target) {
break; break;
} }
if (retval.length > 0) { if (retval.length > 0) {
if (retval[0][4] != "") {
return '<a target="_new" href="'+retval[0][4]+'">'+retval[0][3]+'</a>';
} else {
return retval[0][3]; return retval[0][3];
}
} else { } else {
return target; return target;
} }
@ -890,7 +894,7 @@ function processData(data) {
var allRows = data.split(/\r?\n|\r/); var allRows = data.split(/\r?\n|\r/);
for (var singleRow = 1; singleRow < allRows.length; singleRow++) { for (var singleRow = 1; singleRow < allRows.length; singleRow++) {
var rowCells = allRows[singleRow].split(','); var rowCells = allRows[singleRow].split(',');
talkgroups.push([rowCells[0], rowCells[1], rowCells[2], rowCells[3]]); talkgroups.push([rowCells[0], rowCells[1], rowCells[2], rowCells[3], rowCells[4]]);
} }
logIt("Parsed TGs: " + talkgroups); logIt("Parsed TGs: " + talkgroups);
} }

@ -1 +1 @@
var dashboard_version = "2021-04-06 16:21:54"; var dashboard_version = "2021-04-10 19:49:13";

Loading…
Cancel
Save