Design: Orbit Multiroom, stage 1 (Transfer my Orbit)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m58s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m34s

Paul, 6 November 2026: join an existing Orbit, find it on the Wi-Fi or
enter a six-digit code, confirm on the existing TV, choose what comes
across (schedules own or shared, a clear choice), name the room, and
Settings > Rooms. The Emby password never travels. For approval only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-06 00:31:02 +00:00
co-authored by Claude Opus 5.5
parent ee2648d02a
commit fd6b0564d1
7 changed files with 138 additions and 0 deletions
+138
View File
@@ -0,0 +1,138 @@
#!/usr/bin/env python3
"""Orbit Multiroom, design proposal (Paul, 6 November 2026): bring Orbit to another room. Stage 1, Transfer my Orbit: a new box
joins an existing one on the home network, the existing TV confirms, chosen settings come across, the room is named. Shared
schedules are a clear choice. The Emby password never travels. Uses the first-run design's drawing. For approval only."""
import ast
from pathlib import Path
HERE = Path(__file__).resolve().parent
SRC = HERE.parent / 'first-run' / 'build-first-run.py'
tree = ast.parse(SRC.read_text())
# The first-run script's set-up and helpers, without its screens.
keep = []
for n in tree.body:
if isinstance(n, ast.Expr) and isinstance(n.value, ast.Constant): continue
if isinstance(n, (ast.Import, ast.ImportFrom, ast.FunctionDef)) or (isinstance(n, ast.Assign) and any(isinstance(t, ast.Name) and t.id in ('HERE', 'PROFILES', 'tree', 'keep', 'g', 'GREEN', 'THEMES', 'PINK') for t in n.targets)) or isinstance(n, ast.For) or (isinstance(n, ast.Expr) and getattr(getattr(n.value, 'func', None), 'id', '') in ('exec',)) or (isinstance(n, ast.Expr) and isinstance(n.value, ast.Call) and getattr(getattr(n.value, 'func', None), 'attr', '') == 'update'):
keep.append(n)
if isinstance(n, ast.FunctionDef) and n.name == 'mini_home': break
ns = {'__file__': str(SRC)}
exec(compile(ast.Module(keep, []), str(SRC), 'exec'), ns)
globals().update({k: v for k, v in ns.items() if k not in ('HERE', '__file__', 'save')})
OUT = Path(__file__).resolve().parent
def save(name): ns['g']['im'].resize((W, H), Image.LANCZOS).save(OUT / name); print(name)
def D(): return ns['g']['d']
def tv(x, y, w, h, label, sub, focus=False):
box(x, y, w, h, fill=NAVY if focus else PANEL, r=16, outline=YELLOW if focus else None, width=4)
box(x + w / 2 - 90, y + 40, 180, 110, fill=(10, 30, 66), r=8); box(x + w / 2 - 20, y + 152, 40, 14, fill=(60, 80, 120), r=3)
text((x + w / 2, y + 180), label, semi(36), WHITE, 'ma'); text((x + w / 2, y + 230), sub, reg(24), MUTED, 'ma')
def head(title, line):
text((960, 120), title, anton(58), WHITE, 'ma'); text((960, 205), line, reg(28), MUTED, 'ma')
# 1. A new box: set up, or join.
screen()
head('Set up Orbit', 'Is Orbit already in another room in this home?')
box(280, 300, 640, 470, fill=PANEL, r=18)
avatar('ollie', (600, 410), 70); text((600, 510), 'Set up a new Orbit', anton(40), WHITE, 'ma')
text((600, 580), 'Sign in, pick channels, choose a look.', reg(26), MUTED, 'ma'); text((600, 615), 'About five minutes.', reg(26), MUTED, 'ma')
box(1000, 300, 640, 470, fill=NAVY, r=18, outline=YELLOW, width=4)
for k, cx in enumerate((1240, 1400)): box(cx - 60, 360, 120, 80, fill=(10, 30, 66), r=6)
D().line((S(1310), S(400), S(1330), S(400)), fill=GREEN, width=SW(5))
text((1320, 510), 'Join an existing Orbit', anton(40), WHITE, 'ma')
text((1320, 580), 'Bring your channels and settings', reg(26), MUTED, 'ma'); text((1320, 615), 'from another room. About a minute.', reg(26), MUTED, 'ma')
text((960, 850), 'Both boxes need to be on the same home Wi-Fi.', reg(26), MUTED, 'ma')
keys([('◄►', 'Choose'), ('OK', 'Select')])
save('multiroom-1-join.png')
# 2. The new box finds the others, or takes a code.
screen()
head('Bring Orbit to this room', 'Choose the Orbit to join. It will ask that TV to confirm.')
tv(300, 300, 560, 290, 'Living Room', 'Orbit 0.108 · found on your Wi-Fi', focus=True)
tv(1060, 300, 560, 290, 'Kitchen', 'Orbit 0.108 · found on your Wi-Fi')
text((960, 650), "Not listed? Enter the code shown on the other TV, in Settings › Rooms › Add a room.", reg(28), MUTED, 'ma')
for k, digit in enumerate('482716'):
box(706 + k * 86, 710, 70, 86, fill=YELLOW if k == 4 else PANEL, r=10)
text((741 + k * 86, 724), digit if k < 5 else '', semi(48), NAVY if k == 4 else WHITE, 'ma')
text((960, 830), 'Illustrative code: each code lasts two minutes and works once', reg(22), MUTED, 'ma')
keys([('◄►', 'Choose'), ('OK', 'Ask to join'), ('Back', 'Set up')])
save('multiroom-2-find.png')
# 3. On the living-room TV: confirm.
screen()
for k in range(6): box(60, 160 + k * 120, 1800, 100, fill=(10, 27, 60), r=0)
overlay = Image.new('RGBA', ns['g']['im'].size, (7, 22, 50, 170)); ns['g']['im'].paste(Image.alpha_composite(ns['g']['im'].convert('RGBA'), overlay).convert('RGB'))
ns['g']['d'] = ImageDraw.Draw(ns['g']['im'])
box(460, 200, 1000, 640, fill=DEEP, r=20, outline=YELLOW, width=4)
text((960, 250), 'A new room wants to join', anton(48), WHITE, 'ma')
text((960, 330), 'A new Orbit on your Wi-Fi asked to copy this Orbit\'s set-up.', reg(28), MUTED, 'ma')
text((960, 400), 'Check it shows the same code:', reg(28), MUTED, 'ma')
for k, digit in enumerate('482716'):
box(706 + k * 86, 450, 70, 86, fill=PANEL, r=10); text((741 + k * 86, 464), digit, semi(48), WHITE, 'ma')
text((960, 575), 'Only allow it if you\'re setting up a TV in your home.', reg(26), MUTED, 'ma')
box(620, 650, 320, 76, fill=YELLOW, r=10); text((780, 666), 'Allow', semi(34), NAVY, 'ma')
box(980, 650, 320, 76, fill=PANEL, r=10); text((1140, 666), 'Not now', semi(34), WHITE, 'ma')
text((960, 760), 'Grown-ups only: asks for the PIN if one is set.', reg(24), MUTED, 'ma')
save('multiroom-3-confirm.png')
# 4. What comes across.
screen()
head('What comes across', 'Ticked things are copied once. Nothing stays connected unless you choose to keep rooms in sync.')
shared = [('Channel choices and presets', True), ('Profiles and Kids limits', True), ('Look and accessibility', True), ("Director's Chair decisions", True), ('Arcade bests and settings', True)]
box(160, 280, 780, 560, fill=PANEL, r=18)
text((200, 304), 'COPIED TO THIS ROOM', semi(26), MUTED)
for i, (label, on) in enumerate(shared):
y = 360 + i * 84
box(200, y, 46, 40, fill=GREEN, r=8); D().line([(S(211), S(y + 20)), (S(221), S(y + 31)), (S(237), S(y + 9))], fill=NAVY, width=SW(6))
text((270, y + 2), label, semi(30), WHITE)
box(980, 280, 780, 300, fill=PANEL, r=18)
text((1020, 304), 'SCHEDULES', semi(26), MUTED)
box(1020, 350, 700, 92, fill=NAVY, r=12, outline=YELLOW, width=4)
text((1046, 362), 'Own schedules', semi(30), WHITE); text((1046, 400), 'Same channels, each room plans its own week', reg(22), MUTED)
box(1020, 458, 700, 92, fill=(30, 50, 90), r=12)
text((1046, 470), 'Same as Living Room', semi(30), WHITE); text((1046, 508), 'Orbit 1 shows the same programme in both rooms (later)', reg(22), MUTED)
box(980, 610, 780, 230, fill=(14, 36, 76), r=18)
text((1020, 634), 'STAYS WITH EACH TV', semi(26), MUTED)
for i, label in enumerate(('Sign-in: this TV signs in for itself', 'Sleep timer, sound output, playback', 'Remote preferences, caches, diagnostics')):
text((1020, 684 + i * 46), label, reg(26), WHITE)
text((960, 880), 'Your Emby password is never copied. The PIN travels only scrambled, never as its digits.', reg(26), YELLOW, 'ma')
keys([('▲▼', 'Move'), ('OK', 'Tick'), ('►', 'Next')])
save('multiroom-4-what.png')
# 5. Name the room; the new box signs in for itself.
screen()
head('Name this room', 'It shows in Settings › Rooms on every Orbit in your home.')
names = ['Bedroom', 'Kids\' room', 'Kitchen', 'Den', 'Garage', 'Something else']
for i, n in enumerate(names):
x = 260 + (i % 3) * 480; y = 300 + (i // 3) * 130
focus = i == 0
box(x, y, 440, 100, fill=NAVY if focus else PANEL, r=14, outline=YELLOW if focus else None, width=4)
text((x + 220, y + 26), n, semi(36), WHITE, 'ma')
box(560, 620, 800, 220, fill=DEEP, r=18)
drift((700, 730), 60, (53, 214, 242))
text((800, 670), 'Signing in to Emby for this TV', semi(30), WHITE)
text((800, 715), 'This TV gets its own sign-in, so you can sign it out', reg(24), MUTED); text((800, 750), 'on its own. Your password is never copied.', reg(24), MUTED)
keys([('◄►▲▼', 'Choose'), ('OK', 'Name it')])
save('multiroom-5-name.png')
# 6. Settings › Rooms.
screen()
text((80, 70), 'Settings', semi(44))
rail = ['Channels', 'Watching', 'Profiles', 'Rooms', 'Emby account']
for i, item in enumerate(rail):
on = item == 'Rooms'
box(80, 140 + i * 74, 330, 60, fill=YELLOW if on else PANEL, r=10)
text((104, 152 + i * 74), item, semi(30), NAVY if on else WHITE)
text((460, 150), 'ROOMS', anton(48), WHITE)
text((460, 220), 'Orbit in other rooms of your home. Removing one stops anything being shared with it.', reg(26), MUTED)
rooms = [('Living Room', 'This TV', 'Set up 5 Nov'), ('Bedroom', 'Joined 6 Nov', 'Copied once: own schedules'), ('Kitchen', 'Joined 2 Dec', 'Copied once: same as Living Room')]
for i, (n, a, b) in enumerate(rooms):
y = 290 + i * 120
box(460, y, 1360, 100, fill=NAVY if i == 1 else PANEL, r=14, outline=YELLOW if i == 1 else None, width=4)
box(490, y + 22, 90, 56, fill=(10, 30, 66), r=6)
text((610, y + 16), n, semi(34), WHITE); text((610, y + 58), f'{a} · {b}', reg(24), MUTED)
if i: box(1580, y + 22, 210, 56, fill=(30, 50, 90), r=10); text((1685, y + 32), 'Remove', semi(28), WHITE, 'ma')
box(460, 670, 420, 80, fill=YELLOW, r=12); text((670, 690), 'Add a room', semi(32), NAVY, 'ma')
text((920, 690), 'Shows a code for the new TV to enter.', reg(26), MUTED)
text((460, 800), 'Later: keep rooms in sync, and shared schedules with Orbit 1 on in every room at once.', reg(26), MUTED)
keys([('▲▼', 'Move'), ('OK', 'Select'), ('Back', 'Settings')])
save('multiroom-6-rooms.png')
Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB