JSON (JavaScript Object Notation)
Der Import im JSON-Format (JavaScript Object Notation) ermöglicht die Weiterverarbeitung von Daten, die von externen Programmen bereitgestellt werden.
So kann auch eine vom Memory Channels Processor
exportierte Datei wieder als Datenquelle verwendet werden.
Das ist vor zum Beispiel dann nützlich, wenn man eigene Einträge mit den Daten anderer Quellen mischen will.
Eine Beschreibung zum Export findet man hier.
Datenquelle |
JSON |
ID |
json |
Provider |
- |
Type |
dynamisch |
Modus |
- |
Lizenz |
- |
Link |
- |
Beispiele
Beispiel Kommandos für JSON-Importe
# FM: TSV
memory-channels-processor --source "json" --csv-input-file "local-data.json" --band 70cm --band 2m --type "fm" --output-format="csv"
# FM: ÖVSV Repeater-DB
memory-channels-processor --source "oevsv-repeater-db" --source "json" --json-input-file "additional-items.json" --band 70cm --type "fm" --output-file "fm_70cm_gen_oevsv-repeater-db-additional.json" --output-format="json"
memory-channels-processor --source "oevsv-repeater-db" --source "json" --json-input-file "additional-items.json" --band 2m --type "fm" --output-file "fm_2m_gen_oevsv-repeater-db-additional.json" --output-format="json"
memory-channels-processor --source "oevsv-repeater-db" --source "json" --json-input-file "additional-items.json" --band 70cm --band 2m --type "fm" --output-file "fm_2m_70cm_gen_oevsv-repeater-db-additional.json" --output-format="json"
# FM: Simplex-Kanäle
memory-channels-processor --source "fm-channels-iaru-r1" --source "json" --json-input-file "additional-items.json" --band 70cm --type "fm" --output-file "fm_70cm_gen_fm-channels-iaru-r1-additional.json" --output-format="json"
memory-channels-processor --source "fm-channels-iaru-r1" --source "json" --json-input-file "additional-items.json" --band 2m --type "fm" --output-file "fm_2m_gen_fm-channels-iaru-r1-additional.json" --output-format="json"
# FM (70cm, 2m): Mischung ÖVSV Repeater-DB + Simplex-Kanäle
memory-channels-processor --source "oevsv-repeater-db" --source "fm-channels-iaru-r1" --source "json" --json-input-file "additional-items.json" --band 70cm --band 2m --type "fm" --output-file "fm_2m_70cm_gen_oevsv-repeater-db_fm-channels-iaru-r1-additional.json" --output-format="json"
# D-STAR (23cm, 70cm, 2m): ÖVSV Repeater-DB
memory-channels-processor --source "oevsv-repeater-db" --source "json" --json-input-file "additional-items.json" --band 23cm --band 70cm --band 2m --type "d-star" --output-file "d-star_23cm_70cm_2m_gen_oevsv-repeater-db-additional.json" --output-format="json" --sort "callsign" --sort "freq_tx" --sort "name"
# DMR (70cm, 2m): ÖVSV Repeater-DB
memory-channels-processor --source "oevsv-repeater-db" --source "json" --json-input-file "additional-items.json" --band 70cm --band 2m --type "dmr" --output-file "dmr_70cm_2m_gen_oevsv-repeater-db-additional.json" --output-format="json" --sort "callsign" --sort "freq_tx" --sort "name"
Beispiel-Datensatz
JSON-Beispiel-Datensatz
[
{
"callsign":"OE1XFW",
"name":"Laaerberg Turm",
"band":"70cm",
"freq_tx":431.05,
"freq_rx":438.65,
"ctcss_tx":null,
"ctcss_rx":null,
"dmr":false,
"dmr_id":null,
"dstar":false,
"dstar_rpt1":"",
"dstar_rpt2":"",
"fm":true,
"landmark":"Oberlaa Stadt",
"state":"Wien",
"country":"Austria",
"country_code":"AUT",
"loc_exact":true,
"lat":48.157173,
"long":16.396717,
"locator":"JN88ED",
"sea_level":252,
"scan_group":null,
"source_id":"oevsv-repeater-db",
"source_name":"ÖVSV-Repeater Database",
"source_provider":"ÖVSV UKW Referat",
"source_type":"dynamic",
"source_license":"CC BY 4.0",
"source_url":"https:\/\/www.oevsv.at\/funkbetrieb\/amateurfunkfrequenzen\/ukw-referat\/",
"offset":7.6,
"dup":"-",
"ctcss":false,
"simplex":false,
"split":false,
"multimode":false,
"name_formatted":"OE1XFW",
"distance":null,
"heading":null
},
{
"callsign":"OE1XFU",
"name":"Satzberg",
"band":"70cm",
"freq_tx":431.4,
"freq_rx":439.0,
"ctcss_tx":162.2,
"ctcss_rx":162.2,
"dmr":false,
"dmr_id":null,
"dstar":false,
"dstar_rpt1":"",
"dstar_rpt2":"",
"fm":true,
"landmark":"Hütteldorf",
"state":"Wien",
"country":"Austria",
"country_code":"AUT",
"loc_exact":true,
"lat":48.2152725968,
"long":16.2613320351,
"locator":"JN88DF",
"sea_level":435,
"scan_group":null,
"source_id":"oevsv-repeater-db",
"source_name":"ÖVSV-Repeater Database",
"source_provider":"ÖVSV UKW Referat",
"source_type":"dynamic",
"source_license":"CC BY 4.0",
"source_url":"https:\/\/www.oevsv.at\/funkbetrieb\/amateurfunkfrequenzen\/ukw-referat\/",
"offset":7.6,
"dup":"-",
"ctcss":true,
"simplex":false,
"split":false,
"multimode":false,
"name_formatted":"OE1XFU",
"distance":null,
"heading":null
}
]