Files
web/observer-setup.html
noah 679da0b30c
Deploy Pages / deploy (push) Successful in 14s
Hide external-link arrows on Discourse buttons
2026-10-06 21:51:15 -04:00

184 lines
14 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>MeshCore Observer Setup | CT Mesh</title>
<meta name="description" content="Set up a MeshCore observer to report CT Mesh radio traffic to the CTMesh MQTT broker.">
<link rel="shortcut icon" type="image/x-icon" href="favicon.png?3">
<link rel="icon" type="image/png" href="favicon.png?3">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<style>
html { margin: 0; min-height: 100%; background: #272727; }
body { margin: 0; min-height: 100%; padding: 2em 0; color: #2C2D3C; font-family: "Roboto", sans-serif; display: flex; justify-content: center; }
body::before { content: ""; position: fixed; inset: 0; background: url('background.svg') no-repeat center / cover; filter: invert(1) brightness(.85); z-index: 0; }
.overlay { position: fixed; inset: 0; background: rgba(80,80,80,.35); pointer-events: none; z-index: 0; }
.content-box { position: relative; z-index: 1; width: 90%; max-width: 820px; margin: 2.5em; padding: 2.5em 3em; background: #EBEBEB; border-radius: 30px; box-shadow: 0 0 10px rgba(0,0,0,.15); }
h1 { margin-top: 0; font-size: 28px; }
h2 { margin: 1.5em 0 .5em; font-size: 20px; }
h3 { margin: 1.25em 0 .4em; font-size: 17px; }
p { margin: .5em 0; line-height: 1.45; }
ul, ol { margin: .5em 0 .5em 1.25em; padding: 0; line-height: 1.55; }
li { margin-bottom: .4em; }
a, a:visited { color: #000; }
.page-header-bg { display: flex; justify-content: center; margin: -2.5em -3em 1.5em; padding: 2em 3em; background: #272727; border-radius: 20px 20px 0 0; }
.page-header { display: flex; align-items: center; text-decoration: none; }
.page-header img { width: 300px; height: auto; }
.note, .code-block { margin: .75em 0; padding: .75em 1em; background: #F5F5F5; border-radius: 8px; }
.note { border-left: 4px solid #2B3A4E; font-size: .95em; }
.code-block { position: relative; padding: 1em; border: 1px solid #D0D0D0; border-radius: 12px; }
.code-block pre { margin: 0; padding-right: 4.5em; white-space: pre-wrap; font-family: monospace; font-size: .95em; line-height: 1.5; }
.copy-btn { position: absolute; top: .75em; right: .75em; padding: .4em .75em; border: 0; border-radius: 10px; background: #2B3A4E; color: #fff; cursor: pointer; font-size: .75em; font-weight: bold; }
.button-row { display: flex; flex-wrap: wrap; gap: .75em; margin-top: 1em; }
.btn, .btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .75em 1.5em; background: #2B3A4E; border-radius: 999px; color: #fff; font-size: 15px; font-weight: bold; text-decoration: none; }
.button-icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img.button-icon { object-fit: contain; }
.discord-icon { filter: brightness(0) invert(1); }
.btn-discord, .btn-discord:visited { background-color: #5865F2; color: #fff; }
.back-link { margin-top: 1.5em; }
.back-link::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5L3.5 6L8 9.5'/%3E%3C/svg%3E") no-repeat center / contain; opacity: .4; filter: invert(1); }
.site-footer { margin-top: 2em; padding-top: 2em; border-top: 1px solid #ccc; color: #2C2D3C; font-size: .875rem; text-align: center; }
.site-footer a, .site-footer a:visited { color: #2B3A4E; font-weight: bold; text-decoration: underline; }
.site-footer .email-link { display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border-radius: 999px; background: #6EBEE1; color: #000 !important; font-size: .8rem; text-decoration: none; }
.site-footer a.email-link:hover { text-decoration: none; }
.site-footer .email-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .footer-email-action { margin: 1.25em 0 2.75em; }
@media (max-width: 800px) { body { padding-top: calc(env(safe-area-inset-top, 1em)); } .content-box { margin: 1em; padding: 2em; } .page-header-bg { margin: -2em -2em 1.5em; padding: 2em; } }
@media (max-width: 480px) { .content-box { padding: 1.5em; } .page-header-bg { margin: -1.5em -1.5em 1.5em; padding: 1.5em; } h1 { font-size: 22px; } h2 { font-size: 18px; } .btn { box-sizing: border-box; width: 100%; } .back-link { width: auto; } }
.btn-discourse,
.btn-discourse:visited {
background-color: #7B5FE2;
color: #ffffff;
justify-content: center;
}
.btn-discourse img {
filter: brightness(0) invert(1);
}
.button-row a.btn.btn-discourse::after {
display: none;
}
</style>
</head>
<body>
<div class="overlay"></div>
<main class="content-box">
<div class="page-header-bg"><a href="index.html" class="page-header"><img src="logo_sm.png" alt="CT Mesh"></a></div>
<h1>MeshCore Observer Setup</h1>
<p>An observer listens to local MeshCore radio traffic and reports it to CT Mesh’s MQTT broker for the map, analyzer, and other community tools. CTMesh MQTT is uplink-only: it reports local activity for visibility and analysis; it does not bridge or extend RF mesh coverage. This role is best suited to stable, well-placed fixed nodes with reliable local coverage.</p>
<div class="note"><strong>Recommended:</strong> run the dedicated Observer Firmware directly on a Wi-Fi-capable MeshCore node. It is easier to set up, keeps the system time synchronized on the MeshCore node, and reports directly to CTMesh. Use the Linux USB-serial method when a separate Linux host is the better fit for your installation.</div>
<div class="note"><strong>Observer placement:</strong> If the observer is near another repeater, especially when it uses grid power, it should usually not repeat traffic itself. Run <code>set repeat off</code> on the observer to avoid redundant RF forwarding. Leave repeating enabled only when the observer’s location provides useful independent coverage. Solar-powered repeaters remain an important part of resilient, decentralized off-grid mesh coverage.</div>
<h2>1. Dedicated Observer Firmware (Recommended)</h2>
<p>This mode runs observer software directly on a compatible MeshCore device with Wi-Fi. It is the recommended option because it is self-contained, simpler to configure, and keeps the MeshCore node's system time synchronized. Flash it using the <a href="https://observer.gessaman.com/?config=mqtt-observer" target="_blank">Observer Firmware flasher</a>, then follow the <a href="https://observer.gessaman.com/docs.html" target="_blank">official Observer setup guide</a> for your hardware, Wi-Fi, and radio configuration.</p>
<p>In the Observer Firmware console, set the device name, Wi-Fi credentials, NTP server, CT public-mesh regions, reporting options, and CTMesh MQTT broker. The firmware includes CTMesh as a broker preset, so use slot 3 to preserve its default analyzer slots:</p>
<div class="code-block">
<button class="copy-btn" type="button" data-copy-target="firmware-mqtt">Copy all</button>
<pre id="firmware-mqtt">set name &lt;observer-name&gt;
set mqtt.iata BDL
set wifi.ssid &lt;your-wifi-network&gt;
set wifi.pwd &lt;your-wifi-password&gt;
set mqtt.ntp pool.ntp.org
set mqtt3.preset ctmesh
set mqtt.status on
set mqtt.packets on
set mqtt.raw on
set mqtt.rx on
set mqtt.tx on
set mqtt.neighbors on
set mqtt.neighbors.interval 24
# If this observer is near another repeater, especially when grid-powered:
# set repeat off
region put ct
region allowf ct
region put northeast
region allowf northeast
region put east
region allowf east
# Add these two lines only when your site is in the ct-rv area:
# region put ct-rv
# region allowf ct-rv
region allowf *
region save
set flood.max.unscoped 12
get mqtt.status</pre>
</div>
<p>The <code>ctmesh</code> preset already supplies <code>mqtt.ctmesh.org</code>, port 1883, and its required credentials. The reporting commands enable status, packet, raw packet, RX, TX, and neighbor/scope data; the 24-hour neighbor interval is a reasonable default. Use <code>get mqtt.status</code> after the device joins Wi-Fi to check that the CTMesh slot connects, and <code>get mqtt.ntp.diag</code> to verify NTP. CT observers should use <code>ct</code>, <code>northeast</code>, and <code>east</code>; add <code>ct-rv</code> only where the <a href="https://newenglandme.sh/regions" target="_blank">New England Mesh region map</a> shows it applies. The 12-hop unscoped limit is recommended for every public repeater/observer. Match your radio settings to the local public mesh; do not use the example radio values in third-party firmware documentation unless they match your region.</p>
<h2>2. Linux USB-Serial Observer</h2>
<p>This alternative connects a MeshCore node over USB serial to a Raspberry Pi or other Linux computer running <a href="https://github.com/Cisien/meshcoretomqtt" target="_blank">meshcoretomqtt</a> (also called <code>mctomqtt</code>). Use it when the node has no network connection of its own or when you want the observer service on a separate Linux host.</p>
<ol>
<li>Install and configure <code>meshcoretomqtt</code> on the Linux computer according to its project documentation.</li>
<li>In the existing <code>[general]</code> section of <code>/etc/mctomqtt/config.d/00-user.toml</code>, set <code>iata = "BDL"</code>.</li>
<li>Add the CTMesh broker block below. It is an uplink destination for the observer service.</li>
<li>Restart the service and confirm it connects and begins reporting packets.</li>
</ol>
<div class="code-block">
<button class="copy-btn" type="button" data-copy-target="linux-mqtt">Copy all</button>
<pre id="linux-mqtt">[[broker]]
name = "ctmesh"
enabled = true
server = "mqtt.ctmesh.org"
port = 1883
transport = "tcp"
keepalive = 60
qos = 0
retain = true
[broker.auth]
method = "password"
username = "meshdev"
password = "large4cats"</pre>
</div>
<p class="note"><strong>Note:</strong> The shared <code>meshdev</code>/<code>large4cats</code> credentials are intentionally public for this broker. <a href="contact-us.html">Contact CT Mesh</a> if you need individual credentials.</p>
<h2>Which Mode Should I Use?</h2>
<ul>
<li><strong>Dedicated Observer Firmware (recommended):</strong> best for most Wi-Fi-connected fixed nodes; it is self-contained, keeps node time synchronized through NTP, and can publish the complete observer data set directly.</li>
<li><strong>Linux USB-serial:</strong> use when you already operate a Raspberry Pi/Linux host or the radio itself does not have Wi-Fi.</li>
</ul>
<div class="button-row">
<a class="btn" href="meshcore-resources.html">
<svg class="button-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M4 5.5c2.5-.8 5-.4 8 1.5v12c-3-1.9-5.5-2.3-8-1.5v-12Z"></path>
<path d="M20 5.5c-2.5-.8-5-.4-8 1.5v12c3-1.9 5.5-2.3 8-1.5v-12Z"></path>
</svg>
More MeshCore Guides
</a>
<a class="btn" href="repeater-setup.html">
<svg class="button-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M12 5v15M8.5 20h7M9.5 10.5h5L12 5l-2.5 5.5ZM10 14h4"></path>
<path d="M7.5 5.5a6 6 0 0 0 0 7M16.5 5.5a6 6 0 0 1 0 7M4.5 3a10 10 0 0 0 0 12M19.5 3a10 10 0 0 1 0 12"></path>
</svg>
Repeater Setup Guide
</a>
<a class="btn btn-discord" href="https://ctmesh.org/discord" target="_blank">
<img class="button-icon discord-icon" src="discord.svg" alt="">
Join CT Mesh Discord
</a>
<a class="btn btn-discourse" href="https://discourse.ctmesh.org/" target="_blank" rel="noopener"><img class="button-icon" src="forum.svg" alt="">Join CT Mesh Discourse</a>
</div>
<a class="btn back-link" href="index.html">Back to CT Mesh</a>
<footer class="site-footer">
<p><a href="https://ctmesh.org/">CT Mesh</a> is a volunteer-run user group for mesh technology enthusiasts in Connecticut, and participates in the <a href="https://newenglandme.sh/" target="_blank">New England Mesh coordination group</a> for <a href="https://meshcore.io/" target="_blank">MeshCore</a> and <a href="https://meshtastic.org" target="_blank">Meshtastic</a>.</p>
<p class="footer-email-action"><a href="contact-us.html" class="email-link"><svg class="email-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="3" y="5" width="18" height="14" rx="2"></rect><path d="m4 7 8 6 8-6"></path></svg><span>Contact CT Mesh Admins</span></a></p>
<p>Site edits can be submitted via git at <a href="https://git.ctmesh.org/ctmesh/web" target="_blank" rel="noopener">git.ctmesh.org/ctmesh/web</a>.</p>
<p><a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noopener">Content licensed CC BY-SA 4.0</a></p>
</footer>
</main>
<script>
document.querySelectorAll("[data-copy-target]").forEach((button) => {
button.addEventListener("click", async () => {
const target = document.getElementById(button.getAttribute("data-copy-target"));
if (!target) return;
try { await navigator.clipboard.writeText(target.textContent); button.textContent = "Copied"; }
catch (err) { button.textContent = "Copy failed"; }
setTimeout(() => { button.textContent = "Copy all"; }, 1500);
});
});
</script>
</body>
</html>