diff --git a/docs/03-MeshCore/04-Regions-and-Scoping.md b/docs/03-MeshCore/04-Regions-and-Scoping.md index c078e969..6097734d 100644 --- a/docs/03-MeshCore/04-Regions-and-Scoping.md +++ b/docs/03-MeshCore/04-Regions-and-Scoping.md @@ -55,6 +55,20 @@ Three more things worth knowing: **What other meshes learned.** Where some repeaters were tagged and others weren't, scoped messages got lost in the gaps, and several cities in Poland gave up on scoping for that reason. Some communities tag every repeater before anyone scopes, which is the plan here. +**Watch it play out.** Two short narrated videos by Optics, used with permission, walk through both problems with real traffic numbers from Grand Rapids, Mason County and Chicago. + +*Why add regions now?* (1:35): what unscoped Chicago traffic does to Michigan's mesh as it grows. + + + +*Backbone regions* (1:26): why the tall backbone repeaters matter most once scoping starts. + + + +[Transcripts for both videos](https://github.com/thatSFguy/MeshBuilds/tree/main/guides/meshcore-regions#transcript--backbone-regions) + ## Why the Names Look Like This {#why-the-names} **Each step down the tree is a smaller area.** Once tagging is done, every Michigan repeater carries `midwest` and `mi`, but only repeaters around Detroit, Ann Arbor and Port Huron carry `mi-east`, only Upper Peninsula repeaters carry `mi-upper`, and only repeaters around Kalamazoo carry `azo`. So the smaller the region, the fewer repeaters pass the message on and the shorter it spreads: diff --git a/scripts/build-micron.mjs b/scripts/build-micron.mjs index 53f17466..0ea891a6 100644 --- a/scripts/build-micron.mjs +++ b/scripts/build-micron.mjs @@ -313,6 +313,15 @@ function htmlBlock(node, ctx, indent) { return ''; }); + // Micron can't play video; link the file on the website instead. + html = html.replace(//gi, (tag) => { + const title = tag.match(/\btitle="([^"]*)"/)?.[1] ?? 'Video'; + const src = tag.match(/\bsrc="([^"]*)"/)?.[1] ?? ''; + const url = src.startsWith('/') ? `${config.url}${src}` : src; + out.push(lineAt(`\`*[Video: ${esc(title)}]\`* ${esc(url)}`, indent)); + return ''; + }); + if (html.trim()) throw new Error(`${ctx.segment.doc.source}: HTML this script can't convert: ${html.slice(0, 80)}`); return out; } diff --git a/src/css/custom.css b/src/css/custom.css index 81accee9..697012ac 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -46,3 +46,13 @@ max-width: 360px; width: 100%; } + +/* Embedded videos in docs: full column width, 16:9. */ +.doc-video { + display: block; + width: 100%; + aspect-ratio: 16 / 9; + background: #000; + border-radius: 8px; + margin-bottom: var(--ifm-paragraph-margin-bottom); +} diff --git a/static/video/meshcore-regions/backbone-regions-poster.jpg b/static/video/meshcore-regions/backbone-regions-poster.jpg new file mode 100644 index 00000000..01669232 Binary files /dev/null and b/static/video/meshcore-regions/backbone-regions-poster.jpg differ diff --git a/static/video/meshcore-regions/backbone-regions.mp4 b/static/video/meshcore-regions/backbone-regions.mp4 new file mode 100644 index 00000000..6e3737ac Binary files /dev/null and b/static/video/meshcore-regions/backbone-regions.mp4 differ diff --git a/static/video/meshcore-regions/why-add-regions-now-poster.jpg b/static/video/meshcore-regions/why-add-regions-now-poster.jpg new file mode 100644 index 00000000..358baaea Binary files /dev/null and b/static/video/meshcore-regions/why-add-regions-now-poster.jpg differ diff --git a/static/video/meshcore-regions/why-add-regions-now.mp4 b/static/video/meshcore-regions/why-add-regions-now.mp4 new file mode 100644 index 00000000..22d4ea18 Binary files /dev/null and b/static/video/meshcore-regions/why-add-regions-now.mp4 differ