This commit is contained in:
Dennis Gunia
2023-03-07 19:24:36 +01:00
commit 092e8eb790
12 changed files with 1104 additions and 0 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
# sdrpp_frequencies
A Library for SDR++ Bookmarks
Currently featuring:
- PMR446
- LPD
- Freenet
- CB-Funk
# Credits
Scripts written by Dennis Gunia

404
bookmarks_cb.json Normal file
View File

@@ -0,0 +1,404 @@
{
"bookmarks": {
"CB1": {
"bandwidth": 12500,
"frequency": 26000000,
"mode": 0
},
"CB2": {
"bandwidth": 12500,
"frequency": 26000000,
"mode": 0
},
"CB3": {
"bandwidth": 12500,
"frequency": 26000000,
"mode": 0
},
"CB4": {
"bandwidth": 12500,
"frequency": 27000000,
"mode": 0
},
"CB5": {
"bandwidth": 12500,
"frequency": 27015000,
"mode": 0
},
"CB6": {
"bandwidth": 12500,
"frequency": 27025000,
"mode": 0
},
"CB7": {
"bandwidth": 12500,
"frequency": 27035000,
"mode": 0
},
"CB8": {
"bandwidth": 12500,
"frequency": 27055000,
"mode": 0
},
"CB9": {
"bandwidth": 12500,
"frequency": 27065000,
"mode": 0
},
"CB10": {
"bandwidth": 12500,
"frequency": 27075000,
"mode": 0
},
"CB11": {
"bandwidth": 12500,
"frequency": 27085000,
"mode": 0
},
"CB12": {
"bandwidth": 12500,
"frequency": 27105000,
"mode": 0
},
"CB13": {
"bandwidth": 12500,
"frequency": 27115000,
"mode": 0
},
"CB14": {
"bandwidth": 12500,
"frequency": 27125000,
"mode": 0
},
"CB15": {
"bandwidth": 12500,
"frequency": 27135000,
"mode": 0
},
"CB16": {
"bandwidth": 12500,
"frequency": 27155000,
"mode": 0
},
"CB17": {
"bandwidth": 12500,
"frequency": 27165000,
"mode": 0
},
"CB18": {
"bandwidth": 12500,
"frequency": 27175000,
"mode": 0
},
"CB19": {
"bandwidth": 12500,
"frequency": 27185000,
"mode": 0
},
"CB20": {
"bandwidth": 12500,
"frequency": 27205000,
"mode": 0
},
"CB21": {
"bandwidth": 12500,
"frequency": 27215000,
"mode": 0
},
"CB22": {
"bandwidth": 12500,
"frequency": 27225000,
"mode": 0
},
"CB23": {
"bandwidth": 12500,
"frequency": 27255000,
"mode": 0
},
"CB24": {
"bandwidth": 12500,
"frequency": 27235000,
"mode": 0
},
"CB25": {
"bandwidth": 12500,
"frequency": 27245000,
"mode": 0
},
"CB26": {
"bandwidth": 12500,
"frequency": 27265000,
"mode": 0
},
"CB27": {
"bandwidth": 12500,
"frequency": 27275000,
"mode": 0
},
"CB28": {
"bandwidth": 12500,
"frequency": 27285000,
"mode": 0
},
"CB29": {
"bandwidth": 12500,
"frequency": 27295000,
"mode": 0
},
"CB30": {
"bandwidth": 12500,
"frequency": 27305000,
"mode": 0
},
"CB31": {
"bandwidth": 12500,
"frequency": 27315000,
"mode": 0
},
"CB32": {
"bandwidth": 12500,
"frequency": 27325000,
"mode": 0
},
"CB33": {
"bandwidth": 12500,
"frequency": 27335000,
"mode": 0
},
"CB34": {
"bandwidth": 12500,
"frequency": 27345000,
"mode": 0
},
"CB35": {
"bandwidth": 12500,
"frequency": 27355000,
"mode": 0
},
"CB36": {
"bandwidth": 12500,
"frequency": 27365000,
"mode": 0
},
"CB37": {
"bandwidth": 12500,
"frequency": 27375000,
"mode": 0
},
"CB38": {
"bandwidth": 12500,
"frequency": 27385000,
"mode": 0
},
"CB39": {
"bandwidth": 12500,
"frequency": 27395000,
"mode": 0
},
"CB40": {
"bandwidth": 12500,
"frequency": 27405000,
"mode": 0
},
"CB41": {
"bandwidth": 12500,
"frequency": 26565000,
"mode": 0
},
"CB42": {
"bandwidth": 12500,
"frequency": 26575000,
"mode": 0
},
"CB43": {
"bandwidth": 12500,
"frequency": 26585000,
"mode": 0
},
"CB44": {
"bandwidth": 12500,
"frequency": 26595000,
"mode": 0
},
"CB45": {
"bandwidth": 12500,
"frequency": 26605000,
"mode": 0
},
"CB46": {
"bandwidth": 12500,
"frequency": 26615000,
"mode": 0
},
"CB47": {
"bandwidth": 12500,
"frequency": 26625000,
"mode": 0
},
"CB48": {
"bandwidth": 12500,
"frequency": 26635000,
"mode": 0
},
"CB49": {
"bandwidth": 12500,
"frequency": 26645000,
"mode": 0
},
"CB50": {
"bandwidth": 12500,
"frequency": 26655000,
"mode": 0
},
"CB51": {
"bandwidth": 12500,
"frequency": 26665000,
"mode": 0
},
"CB52": {
"bandwidth": 12500,
"frequency": 26675000,
"mode": 0
},
"CB53": {
"bandwidth": 12500,
"frequency": 26685000,
"mode": 0
},
"CB54": {
"bandwidth": 12500,
"frequency": 26695000,
"mode": 0
},
"CB55": {
"bandwidth": 12500,
"frequency": 26705000,
"mode": 0
},
"CB56": {
"bandwidth": 12500,
"frequency": 26715000,
"mode": 0
},
"CB57": {
"bandwidth": 12500,
"frequency": 26725000,
"mode": 0
},
"CB58": {
"bandwidth": 12500,
"frequency": 26735000,
"mode": 0
},
"CB59": {
"bandwidth": 12500,
"frequency": 26745000,
"mode": 0
},
"CB60": {
"bandwidth": 12500,
"frequency": 26755000,
"mode": 0
},
"CB61": {
"bandwidth": 12500,
"frequency": 26765000,
"mode": 0
},
"CB62": {
"bandwidth": 12500,
"frequency": 26775000,
"mode": 0
},
"CB63": {
"bandwidth": 12500,
"frequency": 26785000,
"mode": 0
},
"CB64": {
"bandwidth": 12500,
"frequency": 26795000,
"mode": 0
},
"CB65": {
"bandwidth": 12500,
"frequency": 26805000,
"mode": 0
},
"CB66": {
"bandwidth": 12500,
"frequency": 26815000,
"mode": 0
},
"CB67": {
"bandwidth": 12500,
"frequency": 26825000,
"mode": 0
},
"CB68": {
"bandwidth": 12500,
"frequency": 26835000,
"mode": 0
},
"CB69": {
"bandwidth": 12500,
"frequency": 26845000,
"mode": 0
},
"CB70": {
"bandwidth": 12500,
"frequency": 26855000,
"mode": 0
},
"CB71": {
"bandwidth": 12500,
"frequency": 26865000,
"mode": 0
},
"CB72": {
"bandwidth": 12500,
"frequency": 26875000,
"mode": 0
},
"CB73": {
"bandwidth": 12500,
"frequency": 26885000,
"mode": 0
},
"CB74": {
"bandwidth": 12500,
"frequency": 26895000,
"mode": 0
},
"CB75": {
"bandwidth": 12500,
"frequency": 26905000,
"mode": 0
},
"CB76": {
"bandwidth": 12500,
"frequency": 26915000,
"mode": 0
},
"CB77": {
"bandwidth": 12500,
"frequency": 26925000,
"mode": 0
},
"CB78": {
"bandwidth": 12500,
"frequency": 26935000,
"mode": 0
},
"CB79": {
"bandwidth": 12500,
"frequency": 26945000,
"mode": 0
},
"CB80": {
"bandwidth": 12500,
"frequency": 26955000,
"mode": 0
}
}
}

34
bookmarks_freenet.json Normal file
View File

@@ -0,0 +1,34 @@
{
"bookmarks": {
"FN1": {
"bandwidth": 12500,
"frequency": 149025000,
"mode": 0
},
"FN2": {
"bandwidth": 12500,
"frequency": 149037500,
"mode": 0
},
"FN3": {
"bandwidth": 12500,
"frequency": 149050000,
"mode": 0
},
"FN4": {
"bandwidth": 12500,
"frequency": 149087500,
"mode": 0
},
"FN5": {
"bandwidth": 12500,
"frequency": 149100000,
"mode": 0
},
"FN6": {
"bandwidth": 12500,
"frequency": 149112500,
"mode": 0
}
}
}

349
bookmarks_lpd.json Normal file
View File

@@ -0,0 +1,349 @@
{
"bookmarks": {
"LPD1": {
"bandwidth": 12500,
"frequency": 433075000,
"mode": 0
},
"LPD2": {
"bandwidth": 12500,
"frequency": 433100000,
"mode": 0
},
"LPD3": {
"bandwidth": 12500,
"frequency": 433125000,
"mode": 0
},
"LPD4": {
"bandwidth": 12500,
"frequency": 433150000,
"mode": 0
},
"LPD5": {
"bandwidth": 12500,
"frequency": 433175000,
"mode": 0
},
"LPD6": {
"bandwidth": 12500,
"frequency": 433200000,
"mode": 0
},
"LPD7": {
"bandwidth": 12500,
"frequency": 433225000,
"mode": 0
},
"LPD8": {
"bandwidth": 12500,
"frequency": 433250000,
"mode": 0
},
"LPD9": {
"bandwidth": 12500,
"frequency": 433275000,
"mode": 0
},
"LPD10": {
"bandwidth": 12500,
"frequency": 433300000,
"mode": 0
},
"LPD11": {
"bandwidth": 12500,
"frequency": 433325000,
"mode": 0
},
"LPD12": {
"bandwidth": 12500,
"frequency": 433350000,
"mode": 0
},
"LPD13": {
"bandwidth": 12500,
"frequency": 433375000,
"mode": 0
},
"LPD14": {
"bandwidth": 12500,
"frequency": 433400000,
"mode": 0
},
"LPD15": {
"bandwidth": 12500,
"frequency": 433425000,
"mode": 0
},
"LPD16": {
"bandwidth": 12500,
"frequency": 433450000,
"mode": 0
},
"LPD17": {
"bandwidth": 12500,
"frequency": 433475000,
"mode": 0
},
"LPD18": {
"bandwidth": 12500,
"frequency": 433500000,
"mode": 0
},
"LPD19": {
"bandwidth": 12500,
"frequency": 433525000,
"mode": 0
},
"LPD20": {
"bandwidth": 12500,
"frequency": 433550000,
"mode": 0
},
"LPD21": {
"bandwidth": 12500,
"frequency": 433575000,
"mode": 0
},
"LPD22": {
"bandwidth": 12500,
"frequency": 433600000,
"mode": 0
},
"LPD23": {
"bandwidth": 12500,
"frequency": 433625000,
"mode": 0
},
"LPD24": {
"bandwidth": 12500,
"frequency": 433650000,
"mode": 0
},
"LPD25": {
"bandwidth": 12500,
"frequency": 433675000,
"mode": 0
},
"LPD26": {
"bandwidth": 12500,
"frequency": 433700000,
"mode": 0
},
"LPD27": {
"bandwidth": 12500,
"frequency": 433725000,
"mode": 0
},
"LPD28": {
"bandwidth": 12500,
"frequency": 433750000,
"mode": 0
},
"LPD29": {
"bandwidth": 12500,
"frequency": 433775000,
"mode": 0
},
"LPD30": {
"bandwidth": 12500,
"frequency": 433800000,
"mode": 0
},
"LPD31": {
"bandwidth": 12500,
"frequency": 433825000,
"mode": 0
},
"LPD32": {
"bandwidth": 12500,
"frequency": 433850000,
"mode": 0
},
"LPD33": {
"bandwidth": 12500,
"frequency": 433875000,
"mode": 0
},
"LPD34": {
"bandwidth": 12500,
"frequency": 433900000,
"mode": 0
},
"LPD35": {
"bandwidth": 12500,
"frequency": 433925000,
"mode": 0
},
"LPD36": {
"bandwidth": 12500,
"frequency": 433950000,
"mode": 0
},
"LPD37": {
"bandwidth": 12500,
"frequency": 433975000,
"mode": 0
},
"LPD38": {
"bandwidth": 12500,
"frequency": 434000000,
"mode": 0
},
"LPD39": {
"bandwidth": 12500,
"frequency": 434025000,
"mode": 0
},
"LPD40": {
"bandwidth": 12500,
"frequency": 434050000,
"mode": 0
},
"LPD41": {
"bandwidth": 12500,
"frequency": 434075000,
"mode": 0
},
"LPD42": {
"bandwidth": 12500,
"frequency": 434100000,
"mode": 0
},
"LPD43": {
"bandwidth": 12500,
"frequency": 434125000,
"mode": 0
},
"LPD44": {
"bandwidth": 12500,
"frequency": 434150000,
"mode": 0
},
"LPD45": {
"bandwidth": 12500,
"frequency": 434175000,
"mode": 0
},
"LPD46": {
"bandwidth": 12500,
"frequency": 434200000,
"mode": 0
},
"LPD47": {
"bandwidth": 12500,
"frequency": 434225000,
"mode": 0
},
"LPD48": {
"bandwidth": 12500,
"frequency": 434250000,
"mode": 0
},
"LPD49": {
"bandwidth": 12500,
"frequency": 434275000,
"mode": 0
},
"LPD50": {
"bandwidth": 12500,
"frequency": 434300000,
"mode": 0
},
"LPD51": {
"bandwidth": 12500,
"frequency": 434325000,
"mode": 0
},
"LPD52": {
"bandwidth": 12500,
"frequency": 434350000,
"mode": 0
},
"LPD53": {
"bandwidth": 12500,
"frequency": 434375000,
"mode": 0
},
"LPD54": {
"bandwidth": 12500,
"frequency": 434400000,
"mode": 0
},
"LPD55": {
"bandwidth": 12500,
"frequency": 434425000,
"mode": 0
},
"LPD56": {
"bandwidth": 12500,
"frequency": 434450000,
"mode": 0
},
"LPD57": {
"bandwidth": 12500,
"frequency": 434475000,
"mode": 0
},
"LPD58": {
"bandwidth": 12500,
"frequency": 434500000,
"mode": 0
},
"LPD59": {
"bandwidth": 12500,
"frequency": 434525000,
"mode": 0
},
"LPD60": {
"bandwidth": 12500,
"frequency": 434550000,
"mode": 0
},
"LPD61": {
"bandwidth": 12500,
"frequency": 434575000,
"mode": 0
},
"LPD62": {
"bandwidth": 12500,
"frequency": 434600000,
"mode": 0
},
"LPD63": {
"bandwidth": 12500,
"frequency": 434625000,
"mode": 0
},
"LPD64": {
"bandwidth": 12500,
"frequency": 434650000,
"mode": 0
},
"LPD65": {
"bandwidth": 12500,
"frequency": 434675000,
"mode": 0
},
"LPD66": {
"bandwidth": 12500,
"frequency": 434700000,
"mode": 0
},
"LPD67": {
"bandwidth": 12500,
"frequency": 434725000,
"mode": 0
},
"LPD68": {
"bandwidth": 12500,
"frequency": 434750000,
"mode": 0
},
"LPD69": {
"bandwidth": 12500,
"frequency": 434776000,
"mode": 0
}
}
}

84
bookmarks_pmr.json Normal file
View File

@@ -0,0 +1,84 @@
{
"bookmarks": {
"PMR1": {
"bandwidth": 12500,
"frequency": 446006250,
"mode": 0
},
"PMR2": {
"bandwidth": 12500,
"frequency": 446018750,
"mode": 0
},
"PMR3": {
"bandwidth": 12500,
"frequency": 446031250,
"mode": 0
},
"PMR4": {
"bandwidth": 12500,
"frequency": 446043750,
"mode": 0
},
"PMR5": {
"bandwidth": 12500,
"frequency": 446056250,
"mode": 0
},
"PMR6": {
"bandwidth": 12500,
"frequency": 446068750,
"mode": 0
},
"PMR7": {
"bandwidth": 12500,
"frequency": 446081250,
"mode": 0
},
"PMR8": {
"bandwidth": 12500,
"frequency": 446093750,
"mode": 0
},
"PMR9": {
"bandwidth": 12500,
"frequency": 446106250,
"mode": 0
},
"PMR10": {
"bandwidth": 12500,
"frequency": 446118750,
"mode": 0
},
"PMR11": {
"bandwidth": 12500,
"frequency": 446131250,
"mode": 0
},
"PMR12": {
"bandwidth": 12500,
"frequency": 446143750,
"mode": 0
},
"PMR13": {
"bandwidth": 12500,
"frequency": 446156250,
"mode": 0
},
"PMR14": {
"bandwidth": 12500,
"frequency": 446168750,
"mode": 0
},
"PMR15": {
"bandwidth": 12500,
"frequency": 446181250,
"mode": 0
},
"PMR16": {
"bandwidth": 12500,
"frequency": 446193750,
"mode": 0
}
}
}

80
input/freq_cb.csv Normal file
View File

@@ -0,0 +1,80 @@
1,26,965
2,26,975
3,26,985
4,27,005
5,27.015
6,27.025
7,27.035
8,27.055
9,27.065
10,27.075
11,27.085
12,27.105
13,27.115
14,27.125
15,27.135
16,27.155
17,27.165
18,27.175
19,27.185
20,27.205
21,27.215
22,27.225
23,27.255
24,27.235
25,27.245
26,27.265
27,27.275
28,27.285
29,27.295
30,27.305
31,27.315
32,27.325
33,27.335
34,27.345
35,27.355
36,27.365
37,27.375
38,27.385
39,27.395
40,27.405
41,26.565
42,26.575
43,26.585
44,26.595
45,26.605
46,26.615
47,26.625
48,26.635
49,26.645
50,26.655
51,26.665
52,26.675
53,26.685
54,26.695
55,26.705
56,26.715
57,26.725
58,26.735
59,26.745
60,26.755
61,26.765
62,26.775
63,26.785
64,26.795
65,26.805
66,26.815
67,26.825
68,26.835
69,26.845
70,26.855
71,26.865
72,26.875
73,26.885
74,26.895
75,26.905
76,26.915
77,26.925
78,26.935
79,26.945
80,26.955
1 1,26,965
2 2,26,975
3 3,26,985
4 4,27,005
5 5,27.015
6 6,27.025
7 7,27.035
8 8,27.055
9 9,27.065
10 10,27.075
11 11,27.085
12 12,27.105
13 13,27.115
14 14,27.125
15 15,27.135
16 16,27.155
17 17,27.165
18 18,27.175
19 19,27.185
20 20,27.205
21 21,27.215
22 22,27.225
23 23,27.255
24 24,27.235
25 25,27.245
26 26,27.265
27 27,27.275
28 28,27.285
29 29,27.295
30 30,27.305
31 31,27.315
32 32,27.325
33 33,27.335
34 34,27.345
35 35,27.355
36 36,27.365
37 37,27.375
38 38,27.385
39 39,27.395
40 40,27.405
41 41,26.565
42 42,26.575
43 43,26.585
44 44,26.595
45 45,26.605
46 46,26.615
47 47,26.625
48 48,26.635
49 49,26.645
50 50,26.655
51 51,26.665
52 52,26.675
53 53,26.685
54 54,26.695
55 55,26.705
56 56,26.715
57 57,26.725
58 58,26.735
59 59,26.745
60 60,26.755
61 61,26.765
62 62,26.775
63 63,26.785
64 64,26.795
65 65,26.805
66 66,26.815
67 67,26.825
68 68,26.835
69 69,26.845
70 70,26.855
71 71,26.865
72 72,26.875
73 73,26.885
74 74,26.895
75 75,26.905
76 76,26.915
77 77,26.925
78 78,26.935
79 79,26.945
80 80,26.955

6
input/freq_freenet.csv Normal file
View File

@@ -0,0 +1,6 @@
1,149.0250
2,149.0375
3,149.0500
4,149.0875
5,149.1000
6,149.1125
1 1 149.0250
2 2 149.0375
3 3 149.0500
4 4 149.0875
5 5 149.1000
6 6 149.1125

69
input/freq_lpd.csv Normal file
View File

@@ -0,0 +1,69 @@
1,433.075
2,433.100
3,433.125
4,433.150
5,433.175
6,433.200
7,433.225
8,433.250
9,433.275
10,433.300
11,433.325
12,433.350
13,433.375
14,433.400
15,433.425
16,433.450
17,433.475
18,433.500
19,433.525
20,433.550
21,433.575
22,433.600
23,433.625
24,433.650
25,433.675
26,433.700
27,433.725
28,433.750
29,433.775
30,433.800
31,433.825
32,433.850
33,433.875
34,433.900
35,433.925
36,433.950
37,433.975
38,434.000
39,434.025
40,434.050
41,434.075
42,434.100
43,434.125
44,434.150
45,434.175
46,434.200
47,434.225
48,434.250
49,434.275
50,434.300
51,434.325
52,434.350
53,434.375
54,434.400
55,434.425
56,434.450
57,434.475
58,434.500
59,434.525
60,434.550
61,434.575
62,434.600
63,434.625
64,434.650
65,434.675
66,434.700
67,434.725
68,434.750
69,434.776
1 1 433.075
2 2 433.100
3 3 433.125
4 4 433.150
5 5 433.175
6 6 433.200
7 7 433.225
8 8 433.250
9 9 433.275
10 10 433.300
11 11 433.325
12 12 433.350
13 13 433.375
14 14 433.400
15 15 433.425
16 16 433.450
17 17 433.475
18 18 433.500
19 19 433.525
20 20 433.550
21 21 433.575
22 22 433.600
23 23 433.625
24 24 433.650
25 25 433.675
26 26 433.700
27 27 433.725
28 28 433.750
29 29 433.775
30 30 433.800
31 31 433.825
32 32 433.850
33 33 433.875
34 34 433.900
35 35 433.925
36 36 433.950
37 37 433.975
38 38 434.000
39 39 434.025
40 40 434.050
41 41 434.075
42 42 434.100
43 43 434.125
44 44 434.150
45 45 434.175
46 46 434.200
47 47 434.225
48 48 434.250
49 49 434.275
50 50 434.300
51 51 434.325
52 52 434.350
53 53 434.375
54 54 434.400
55 55 434.425
56 56 434.450
57 57 434.475
58 58 434.500
59 59 434.525
60 60 434.550
61 61 434.575
62 62 434.600
63 63 434.625
64 64 434.650
65 65 434.675
66 66 434.700
67 67 434.725
68 68 434.750
69 69 434.776

16
input/freq_pmr.csv Normal file
View File

@@ -0,0 +1,16 @@
1,446.00625
2,446.01875
3,446.03125
4,446.04375
5,446.05625
6,446.06875
7,446.08125
8,446.09375
9,446.10625
10,446.11875
11,446.13125
12,446.14375
13,446.15625
14,446.16875
15,446.18125
16,446.19375
1 1 446.00625
2 2 446.01875
3 3 446.03125
4 4 446.04375
5 5 446.05625
6 6 446.06875
7 7 446.08125
8 8 446.09375
9 9 446.10625
10 10 446.11875
11 11 446.13125
12 12 446.14375
13 13 446.15625
14 14 446.16875
15 15 446.18125
16 16 446.19375

38
scripts/genBookmark.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/bin/bash
INPUT_FILE=$1
INPUT_PREFIX=$2
OUTPUT_FILE="$3"
touch $OUTPUT_FILE || {
echo "Cannot write to $OUTPUT_FILE"
exit 1
}
echo "Input file: $INPUT_FILE"
[ -f $INPUT_FILE ] || {
echo "Input file not found"
exit 1
}
echo "Pefix: $INPUT_PREFIX"
[ -z $INPUT_PREFIX ] && {
echo "No prefix defined!"
}
echo "fCount: $(cat $INPUT_FILE | wc -l)"
echo "Output: $OUTPUT_FILE"
echo "================================="
echo "Generate json for sdr++..."
echo "{\"bookmarks\":{" > $OUTPUT_FILE
while IFS= read -r line; do
NAME="${INPUT_PREFIX}$(echo $line | cut -d ',' -f 1)"
FREQ="$(echo $line | cut -d ',' -f 2)"
echo "\"$NAME\":{\"bandwidth\":12500.0,\"frequency\":$(echo "scale=1 ; $FREQ * 1000000" | bc),\"mode\":0}," >> $OUTPUT_FILE
done <<< "$(cat $INPUT_FILE | sort -n)"
sed '$ s/.$//' -i $OUTPUT_FILE
echo "}}" >> $OUTPUT_FILE
cat $OUTPUT_FILE | jq > $OUTPUT_FILE.tmp
mv $OUTPUT_FILE.tmp $OUTPUT_FILE
echo "Done!"

9
scripts/generateAll.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
##### generate jsons
$SCRIPTPATH/genBookmark.sh ../input/freq_lpd.csv LPD ../bookmarks_lpd.json
$SCRIPTPATH/genBookmark.sh ../input/freq_pmr.csv PMR ../bookmarks_pmr.json
$SCRIPTPATH/genBookmark.sh ../input/freq_freenet.csv FN ../bookmarks_freenet.json
$SCRIPTPATH/genBookmark.sh ../input/freq_cb.csv CB ../bookmarks_cb.json

3
scripts/test.json Normal file
View File

@@ -0,0 +1,3 @@
{"bookmarks":{
"LPD":{"bandwidth":12500.0,"frequency":,"mode":0},
}}