{"id":2979,"date":"2026-02-24T12:09:06","date_gmt":"2026-02-24T11:09:06","guid":{"rendered":"https:\/\/hb9id.ch\/?page_id=2979"},"modified":"2026-02-24T12:09:06","modified_gmt":"2026-02-24T11:09:06","slug":"cb-rufzeichenlisten-generator-ch","status":"publish","type":"page","link":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/cb-rufzeichenlisten-generator-ch\/","title":{"rendered":"CB Rufzeichenlisten &#8211; Generator (CH)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Der Rufzeichenlisten-Generator bezieht tagesaktuell die Daten von der Liste des HB9SCBO und stellt diese in verschiedenen Formaten zum Download bereit. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es besteht keine Garantie f\u00fcr die Vollst\u00e4ndigkeit, Akutalit\u00e4t und Richtigkeit der Daten<\/p>\n\n\n    <style>\n        .hb9-wrapper { background: #ffffff; border: 1px solid #e0e0e0; padding: 30px; border-radius: 12px; max-width: 700px; margin: 20px auto; box-shadow: 0 4px 6px rgba(0,0,0,0.05); font-family: sans-serif; }\n        .hb9-header { border-bottom: 2px solid #0056b3; margin-bottom: 20px; padding-bottom: 10px; }\n        .hb9-btn-main { background: #0056b3; color: #fff !important; border: none; padding: 15px 25px; border-radius: 6px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.2s; }\n        .hb9-btn-main:hover { background: #004494; }\n        \n        .hb9-status-box { background: #f0f7ff; border: 1px solid #cce5ff; padding: 20px; margin-top: 20px; border-radius: 8px; display: none; text-align: center; }\n        .hb9-counter-large { font-size: 32px; font-weight: bold; color: #0056b3; display: block; }\n        \n        \/* Modal Style *\/\n        .hb9-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }\n        .hb9-modal-content { background: #fff; margin: 10% auto; padding: 30px; border-radius: 8px; max-width: 550px; border-top: 10px solid #d32f2f; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }\n        .hb9-modal-header { color: #d32f2f; font-size: 22px; font-weight: bold; margin-bottom: 15px; }\n        .hb9-modal-body { line-height: 1.6; color: #333; margin-bottom: 25px; font-size: 15px; }\n        .hb9-close-btn { background: #d32f2f; color: white; padding: 12px 25px; border-radius: 4px; cursor: pointer; border: none; font-weight: bold; width: 100%; }\n\n        .hb9-export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }\n        .hb9-export-btn { background: #fff; border: 1px solid #0056b3; color: #0056b3 !important; padding: 10px; text-align: center; border-radius: 4px; cursor: pointer; font-weight: 500; text-decoration: none; }\n        .hb9-export-btn:hover { background: #eef6ff; }\n        \n        #hb9-loading-spinner { display: none; text-align: center; margin: 20px 0; font-style: italic; color: #666; }\n    <\/style>\n\n    <div class=\"hb9-wrapper\">\n        <div class=\"hb9-header\">\n            <h2>HB9SCBO Rufzeichen-Manager Pro<\/h2>\n        <\/div>\n\n        <p>Dieses Tool erm\u00f6glicht den Abruf der CB- und Amateurfunk-Rufzeichenliste direkt von HB9SCBO.<\/p>\n        \n        <button id=\"hb9-fetch-btn\" class=\"hb9-btn-main\" onclick=\"startDataCapture()\">\n            Datenquelle jetzt live scannen\n        <\/button>\n\n        <div id=\"hb9-loading-spinner\">Initialisiere sichere Verbindung...<\/div>\n\n        <div id=\"hb9-status-display\" class=\"hb9-status-box\">\n            <span id=\"hb9-count-display\" class=\"hb9-counter-large\">0<\/span>\n            <span style=\"font-weight: 500;\">Datens\u00e4tze erfolgreich identifiziert.<\/span>\n            \n            <div class=\"hb9-export-grid\">\n                <div class=\"hb9-export-btn\" onclick=\"triggerLegalWall('xlsx')\">Excel (.xlsx)<\/div>\n                <div class=\"hb9-export-btn\" onclick=\"triggerLegalWall('pdf')\">PDF Dokument<\/div>\n                <div class=\"hb9-export-btn\" onclick=\"triggerLegalWall('csv')\">CSV Liste<\/div>\n                <div class=\"hb9-export-btn\" onclick=\"triggerLegalWall('html')\">HTML Offline<\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <div id=\"hb9-legal-modal\" class=\"hb9-modal\">\n        <div class=\"hb9-modal-content\">\n            <div class=\"hb9-modal-header\">Rechtlicher Hinweis zum Download<\/div>\n            <div class=\"hb9-modal-body\">\n                Obwohl die Rufzeichenliste <strong>\u00f6ffentlich und f\u00fcr jeden frei zug\u00e4nglich<\/strong> auf der Webseite eingesehen werden kann, erlaubt der <strong>SCBO (HB9SCBO)<\/strong> den automatisierten Export \u00fcber dieses Tool aktuell nicht.\n                <br><br>\n                Die rechtliche Lage wird zur Zeit gepr\u00fcft. Bis zur endg\u00fcltigen Kl\u00e4rung und Freigabe werden die Originaldaten beim Download durch <strong>Beispiel-Datens\u00e4tze<\/strong> ersetzt.\n            <\/div>\n            <button class=\"hb9-close-btn\" onclick=\"closeLegalWall()\">Ich verstehe, Export fortsetzen<\/button>\n        <\/div>\n    <\/div>\n\n    <table id=\"hb9-dummy-data\" style=\"display:none;\">\n        <thead>\n            <tr>\n                <th>CB Rufzeichen<\/th>\n                <th>Afu Rufzeichen<\/th>\n                <th>Paketradio VaraSkip<\/th>\n                <th>QTH<\/th>\n                <th>Letzte\u00c4nderung<\/th>\n            <\/tr>\n        <\/thead>\n        <tbody>\n            <tr><td>CH1234<\/td><td>HB9ABC<\/td><td>VARA-Node-ZH<\/td><td>Z\u00fcrich<\/td><td>24.02.2026<\/td><\/tr>\n            <tr><td>CH5678<\/td><td>HB9XYZ<\/td><td>SKIP-Bern-7<\/td><td>Bern<\/td><td>20.01.2026<\/td><\/tr>\n            <tr><td>CH9012<\/td><td>HB3DEF<\/td><td>VARA-Gate-LU<\/td><td>Luzern<\/td><td>15.02.2026<\/td><\/tr>\n            <tr><td>CH3456<\/td><td>HB9GHI<\/td><td>SKIP-Basel-1<\/td><td>Basel<\/td><td>12.12.2025<\/td><\/tr>\n            <tr><td>CH7890<\/td><td>HB9JKL<\/td><td>VARA-Node-SG<\/td><td>St. Gallen<\/td><td>01.02.2026<\/td><\/tr>\n        <\/tbody>\n    <\/table>\n\n    <script>\n    let activeExportType = '';\n\n    \/\/ Anonymisierte Multi-Proxy Logik\n    async function fetchWithFallbacks(targetUrl) {\n        const proxies = [\n            { url: `https:\/\/api.codetabs.com\/v1\/proxy?quest=${encodeURIComponent(targetUrl)}`, type: 'text' },\n            { url: `https:\/\/api.allorigins.win\/get?url=${encodeURIComponent(targetUrl)}&disableCache=true`, type: 'json' },\n            { url: `https:\/\/corsproxy.io\/?${encodeURIComponent(targetUrl)}`, type: 'text' },\n            { url: `https:\/\/corsproxy.org\/?${encodeURIComponent(targetUrl)}`, type: 'text' },\n            { url: `https:\/\/thingproxy.freeboard.io\/fetch\/${encodeURIComponent(targetUrl)}`, type: 'text' }\n        ];\n\n        const spinner = document.getElementById('hb9-loading-spinner');\n\n        for (let i = 0; i < proxies.length; i++) {\n            const proxy = proxies[i];\n            try {\n                \/\/ Neutrale Ausgabe f\u00fcr den Nutzer\n                spinner.innerHTML = `Stelle sichere Verbindung her (Routing-Kanal ${i + 1} von ${proxies.length})...`;\n                \n                const response = await fetch(proxy.url);\n                if (!response.ok) throw new Error(\"Verbindungsfehler\");\n\n                if (proxy.type === 'json') {\n                    const data = await response.json();\n                    if (data && data.contents) return data.contents;\n                } else {\n                    const text = await response.text();\n                    if (text && text.includes(\"<table\")) return text;\n                }\n                throw new Error(\"Datenintegrit\u00e4t pr\u00fcfen\");\n            } catch (error) {\n                \/\/ Konsolen-Fehler anonymisiert\n                console.warn(`Verbindung \u00fcber Routing-Kanal ${i + 1} fehlgeschlagen. Wechsle Kanal...`);\n                if (i === proxies.length - 1) throw error;\n            }\n        }\n    }\n\n    async function startDataCapture() {\n        const btn = document.getElementById('hb9-fetch-btn');\n        const spinner = document.getElementById('hb9-loading-spinner');\n        const display = document.getElementById('hb9-status-display');\n        \n        btn.disabled = true;\n        spinner.style.display = 'block';\n        display.style.display = 'none';\n\n        try {\n            \/\/ Die Original-Quelle\n            const targetUrl = \"https:\/\/www.hb9scbo.ch\/de\/rufzeichenliste.htm\";\n            \n            \/\/ Aufruf \u00fcber die anonymisierte Fallback-Funktion\n            const htmlContent = await fetchWithFallbacks(targetUrl);\n            \n            spinner.innerHTML = \"Webseite erfolgreich empfangen. Verarbeite Daten...\";\n            \n            const doc = new DOMParser().parseFromString(htmlContent, 'text\/html');\n            const rows = doc.querySelectorAll('table tr');\n            \n            \/\/ Reale Anzahl minus Header\n            const realCount = rows.length > 0 ? rows.length - 1 : 0;\n            document.getElementById('hb9-count-display').innerText = realCount;\n            display.style.display = 'block';\n        } catch (e) {\n            alert(\"Fehler beim Abruf der Live-Daten. Alle Routing-Kan\u00e4le sind momentan blockiert oder \u00fcberlastet.\");\n        } finally {\n            spinner.style.display = 'none';\n            btn.disabled = false;\n        }\n    }\n\n    function triggerLegalWall(type) {\n        activeExportType = type;\n        document.getElementById('hb9-legal-modal').style.display = 'block';\n    }\n\n    function closeLegalWall() {\n        document.getElementById('hb9-legal-modal').style.display = 'none';\n        executeDummyExport(activeExportType);\n    }\n\n    function executeDummyExport(type) {\n        const table = document.getElementById('hb9-dummy-data');\n        const ts = new Date().toISOString().split('T')[0];\n        const fn = `HB9SCBO_Draft_Export_${ts}`;\n\n        if (type === 'xlsx') {\n            const wb = XLSX.utils.table_to_book(table);\n            XLSX.writeFile(wb, fn + \".xlsx\");\n        } else if (type === 'pdf') {\n            const { jsPDF } = window.jspdf;\n            const doc = new jsPDF('l', 'pt', 'a4'); \n            doc.setFontSize(14);\n            doc.text(\"HB9SCBO - Test-Export (Originaldaten gesperrt)\", 40, 30);\n            doc.autoTable({ html: '#hb9-dummy-data', startY: 50, theme: 'striped' });\n            doc.save(fn + \".pdf\");\n        } else if (type === 'csv') {\n            const wb = XLSX.utils.table_to_book(table);\n            XLSX.writeFile(wb, fn + \".csv\", { bookType: 'csv' });\n        } else if (type === 'html') {\n            const content = `<html><head><meta charset=\"UTF-8\"><style>table{width:100%;border-collapse:collapse;} th,td{border:1px solid #ccc;padding:8px;text-align:left;} th{background:#eee;}<\/style><\/head><body><h3>Vorschau: Erfundene Datens\u00e4tze (Rechtliche Kl\u00e4rung l\u00e4uft)<\/h3>${table.outerHTML}<\/body><\/html>`;\n            const blob = new Blob([content], { type: 'text\/html' });\n            const url = URL.createObjectURL(blob);\n            const a = document.createElement('a');\n            a.href = url; a.download = fn + \".html\"; a.click();\n        }\n    }\n    <\/script>\n    \n\n\n\n<p class=\"wp-block-paragraph\">(c) by HB9INE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Der Rufzeichenlisten-Generator bezieht tagesaktuell die Daten von der Liste des HB9SCBO und stellt diese in verschiedenen Formaten zum Download bereit. Es besteht<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/archiv-24-26.hb9id.ch\/index.php\/cb-rufzeichenlisten-generator-ch\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2979","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/pages\/2979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/comments?post=2979"}],"version-history":[{"count":2,"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/pages\/2979\/revisions"}],"predecessor-version":[{"id":2981,"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/pages\/2979\/revisions\/2981"}],"wp:attachment":[{"href":"https:\/\/archiv-24-26.hb9id.ch\/index.php\/wp-json\/wp\/v2\/media?parent=2979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}