- Swift 71.1%
- Python 13.2%
- JavaScript 11.9%
- Shell 3.2%
- Makefile 0.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The calendar chip's time kept the formatter's own separator before AM/PM
(CLDR narrow no-break space, U+202F in en_US) only by accident:
`tightenMeridiem` (
|
||
| .wiki | ||
| docs | ||
| Protos | ||
| Resources | ||
| scripts | ||
| Sources/TVDashboard | ||
| Tests | ||
| .gitignore | ||
| AGENTS.md | ||
| Makefile | ||
| Package.resolved | ||
| Package.swift | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
TV Dashboard
A macOS app that turns a TV into a read-only dashboard of clock, Apple Notes,
Now Playing, lyrics, calendar, and Vikunja Reminders widgets. Configure the grid
from a control window on your Mac. The default layout has a photo clock and
Now Playing above two notes (Day 0 and Day 1). The TV just displays;
you drive everything from the Mac. A local fullscreen Mac surface is also available.
It's designed for a TV you reach over AirPlay (in this setup: a Hisense TV that
appears on the network as Living Room), used in Extend mode so the TV is a
second display rather than a mirror of your Mac.
What you need (prerequisites)
- A Mac running macOS 14 (Sonoma) or newer. (Built and tested on macOS 26 with Xcode 26 / Swift 6.3.)
- Xcode or the Xcode Command Line Tools — this is what provides the
swiftcompiler andmake. If you don't have them:xcode-select --install - Apple Notes, if using note widgets; create
Day 0andDay 1for the default layout, or choose other notes in the control window. - The Mac and the TV on the same Wi-Fi / LAN.
SwiftPM resolves one external package, apple/swift-protobuf, for Notes
checklist decoding. Optional clock photos download during builds; committed seed
photos remain available if downloads fail. Node is needed for development JS checks.
Build & run
From the project folder, the one-liner is:
make run
This builds an optimized release executable, assembles .build/TV Dashboard.app,
and relaunches the dashboard in the background. It resumes the last active TV or
Mac surface; if none was recorded, Run on selects TV when present or a local
Mac Space by default. The control panel appears without requesting activation.
Opening the bundle normally through Finder/Spotlight shows the control panel
without automatically starting a kiosk.
Relaunching can stop dashboards from other checkouts; bundling/installing replaces app files, and cleanup deletes build resources. Keep a running instance's files intact, including worktree bundles opened by Spotlight.
Other targets:
| Command | What it does |
|---|---|
make build |
Fetch photos and compile (release by default); no app launch. |
make app |
Build and replace .build/TV Dashboard.app; no launch. |
make run |
Build, replace bundle, and relaunch with surface resume/automatic selection. |
make install |
Build/package DMG, replace ~/Applications/TV Dashboard.app, then relaunch if the detected instance is debug, or launch if none is found. Release/unknown instances stay running. |
make release |
Run tests that create windows, replace the worktree bundle, then package a DMG (see Releases). |
make clean |
Delete this checkout’s .build, including its app and resources; only when unused. |
Run it as the bundled app (
make run), not viaswift run. macOS attaches the "control Notes" permission to the app bundle and its identity; stable signing helps retain permission across rebuilds.
Plain swift run or Xcode Run also starts the GUI but may use a different
permission identity.
Vikunja Reminders
In the Mac control window, open Vikunja connection, enter your HTTPS instance
URL (defaults to https://vikunja.rishav.io) and API token, then click
Connect / Test. The server must support API v2. Grant the token read
access to projects, project views, and tasks. No task-write access is needed.
Add a Reminders row or widget, choose a project and optionally a view, and adjust its font scale. Whole project lists the project's tasks; choosing a view honors that view's server-side filters, including saved-filter projects. Use Refresh Sources after adding or deleting projects or views. Browser-local sort preferences and Kanban column layouts are not reproduced.
The display places incomplete tasks before completed tasks, preserving server
order within each group. If incomplete tasks fit, they stay visible and completed
tasks fill any spare rows. Otherwise only incomplete tasks appear, in pages that
advance every 15 seconds. Titles stay on one line with ellipsis; due dates
use compact YYYY-MM-DD labels. A size hint appears if no task row fits.
Visible widgets refresh every 30 seconds, and source edits refresh immediately. A failed refresh keeps the last complete result with a Stale indicator; connection, authentication, and unavailable-source details appear on the Mac. Pagination is not an atomic snapshot during concurrent edits; the next poll reconciles changes. Task content is kept in memory, not saved to disk.
Tokens are stored in macOS Keychain, never in the layout JSON or TV WebView.
Leave the token field blank to test the stored token; enter another token to
replace it. Replacing a token on the same instance retains selections. Switching
instances clears selections and task caches. Disconnect deletes the stored
token. .env is ignored by Git and is only a development aid: the app never loads
it. Production setup is entirely through the Mac control window.
This widget adds outbound native HTTPS requests to your configured Vikunja instance. Requests use Bearer authentication and reject redirects; enter the canonical instance URL. The TV remains read-only and never sends task mutations. The existing external-display and pointer-containment strategy is unchanged.
Developer checks and optional GUI/Keychain probes are documented in the Reminders reference.
Releases: install from a .dmg
If you were handed a TV Dashboard-<version>.dmg (rather than building from source):
- Double-click the
.dmgto mount it, then dragTV Dashboard.apponto the Applications alias in the window. - The app is self-signed, not notarized by Apple, so the first time you open it macOS
warns that it's from an unidentified developer. Get past it once, either way:
- Right-click the app → Open, then click Open in the dialog, or
- run
xattr -dr com.apple.quarantine "/Applications/TV Dashboard.app"in Terminal first.
- After that first launch it opens normally. Continue with the Apple Notes permission prompt below.
On your own machine you can skip the manual steps:
make installbuilds the app, writes the.dmgtodist/, copies the app into~/Applicationswith quarantine already cleared, and relaunches if the detected instance is debug (or launches if none is running). The installed bundle is replaced before that check, so stop any instance using it first. The admin panel’s bottom-right footer shows the build identity (e.g.v1.1.0+a1b2c3d · build 94) so you can tell a dev build from a clean release at a glance.Maintainers: the release
.dmgis produced withmake release— seedocs/releasing.md.
First run: the Apple Notes permission prompt
The first time the app tries to read your notes, macOS shows:
"TV Dashboard" wants access to control "Notes".
Click OK (Allow). That's what lets the dashboard read the Day 0 note.
- If you dismissed it or clicked Don't Allow, either press "Grant Notes Access…" in the control window, or go to System Settings → Privacy & Security → Automation → TV Dashboard and turn on Notes.
- The control window's Status panel shows Apple Notes access: Granted once it's working.
Connect the TV over AirPlay (Extend)
AirPlay is connected manually:
- Open Control Center (menu-bar icon, top-right).
- Open Screen Mirroring.
- Select
Living Room. - Choose "Use As Separate Display" (Extend) — not Mirror — if macOS asks.
- Back in the app, press "Start on TV."
The dashboard appears full-screen on the TV. The button only enables once macOS sees a second display, so connect AirPlay first. Start on This Mac runs the same read-only content in a local fullscreen Space, with idle cursor hiding instead of TV pointer ejection.
The control window's Status panel also tells you whether Living Room is
currently reachable on the network (Bonjour discovery) and whether an external
display is present, so you can sanity-check both before starting the kiosk.
Configure the dashboard (widgets & layout)
Everything is driven from the Dashboard Layout panel in the control window — the TV itself is read-only.
The dashboard is a vertical stack of rows; each row holds one or more widgets side by side. Six widget types ship today:
- Clock — 12/24-hour, optional seconds/date, and optional photo-backed sets. While a photo clock is running, its control-panel Next photo button advances that clock immediately; the action is runtime-only and does not change the saved layout.
- Note — shows an Apple Note. Pick it by typing its exact name, or press "Refresh Note List" and choose from the per-widget menu. Optional title header and a font-size scale.
- Now Playing — current Apple Music track, artwork, and progress; grant Music access.
- Lyrics — lyrics from LRCLIB, synchronized when available. Track title, artist, album, and duration are sent to that external service.
- Calendar — upcoming events from selected Apple calendars; grant full Calendar access.
- Reminders — read-only Vikunja tasks; configure the connection as described above.
Use the row/widget controls to add, remove, reorder, and resize: the height/width steppers set each row's / widget's share of the screen; "Add Row" adds a band, the + on a row adds a widget to it, and the trash buttons remove. "Load default (clock + 2 notes)" restores the starting layout, including Now Playing.
Edits apply to the TV automatically (a moment after you stop changing things) and are saved
to ~/Library/Application Support/TV Dashboard/config.json, so the layout persists across
launches.
Verify live updates
- With the kiosk running on the TV, open
Day 0in Apple Notes on your Mac. - Type something.
- Allow about three seconds plus read time for the next Notes poll. Slow source reads can take longer; this is not a guaranteed update deadline.
- The "Last note update" time in the control window also advances.
How it renders
The whole dashboard is one CSS grid sized to exactly the TV screen (100vh × 100vw): nothing scrolls and nothing spills past the screen edge. Each widget lives in its own cell; if a note is taller than its cell it's clipped with a soft fade at the bottom as a "there's more" cue rather than scrolling. Widgets update independently — a note edit patches only that note's cell, so the clock never flickers and the layout never jumps.
Inside a note cell it renders the structure used in notes like Day 0:
- Bold text (section titles like
TO DO,House TODO). - Blank-line spacing.
- Numbered lists (
Rishav Todo). - Checklist rows, including checked state when Full Disk Access allows the private Notes store to be read. Otherwise the public Notes body supplies plain lists.
The TV surface is strictly read-only: no text selection, no menus, no links, and the mouse pointer is bounced back to your Mac's display if it wanders onto the TV.
Images, attachments, and tables are hidden; links are inert. Checklist checked state uses the local Notes database and needs Full Disk Access in addition to Notes Automation permission. Use Full Disk Access… in the Mac control panel, add the actual app you run in System Settings, and relaunch when prompted by the system. Without that access, the dashboard falls back to the public Notes body. The original v1 handoff records historical scope.
Troubleshooting
The TV isn't discovered ("Living Room: Not found")
- Make sure the TV is on and on the same Wi-Fi as the Mac.
- Some networks block Bonjour/mDNS between devices ("AP/client isolation"). Try the same Wi-Fi band, or a network where the Mac can see the TV.
- You can still connect: open Control Center → Screen Mirroring and look for
Living Roomthere. The dashboard only needs the second display to run the kiosk; Bonjour status is a convenience check.
Notes permission denied
- System Settings → Privacy & Security → Automation → TV Dashboard → enable Notes.
- If TV Dashboard isn't listed, press "Grant Notes Access…" in the app to trigger the prompt, then allow it.
- Builds are signed with a stable self-signed identity (the
TVD Localcert), so the grant normally sticks across rebuilds. If that cert isn't installed the build falls back to ad-hoc signing, whose identity changes with the code — so macOS may re-prompt after a rebuild; just allow it again. (Distribution.dmgs use the same self-signed identity and are not notarized — seedocs/releasing.md.)
No second display after connecting AirPlay
- Make sure you chose Extend ("Use As Separate Display"), not Mirror.
- Give it a few seconds — the "Start Kiosk…" button enables automatically when the display appears (the app watches for display changes).
- If the TV connected as a mirror, open System Settings → Displays and set the TV to "Use as separate display" / extend.
- If the external display goes away while the kiosk is up, the app tears the kiosk down cleanly on its own.
The dashboard stopped updating after I edited the note
A note's name in Apple Notes is its first line. The app finds each note widget's note
by name the first time (e.g. Day 0), but then tracks it by a stable internal id, so
after that you can rename the heading and the dashboard keeps following it. The only thing
that breaks the link is the very first lookup: if no note has that exact first line
(e.g. you'd already renamed it), that cell shows a "Loading …" placeholder. Fix: set the
widget's note name to the note's current first-line text in the Dashboard Layout panel —
from then on, edits (including future renames) refresh live. If updates still don't appear,
check the "Last note update" time in the control window: if it's advancing, the app is
reading fine; if it's frozen, see the error line and the Notes-permission steps above.
macOS notification suppression / screen-sharing indicators (observe & document)
When you AirPlay/extend to a TV, macOS may change notification behavior and show screen-sharing-style indicators. Observe and note what your Mac does:
- Whether a Focus / Do Not Disturb turns on automatically while mirroring/extending (System Settings → Focus, and the Control Center Focus tile).
- Whether a purple/orange screen-recording or AirPlay indicator appears in the menu bar.
- Whether notification banners still appear on your Mac (primary) display.
The app uses a normal window on an extended display. AirPlay’s effect on indicators and notifications still needs verification on your setup; the app does not actively override Focus or notification settings.
Stopping / quitting
- Press "Stop (TV)" or "Stop (This Mac)" to stop the active surface while keeping the control window.
- ⌘Q quits the app (this also stops the kiosk and releases the keep-awake power assertion).
- Closing the control window quits the app when the kiosk is not running.
- While a kiosk is running, click the Dock icon, choose Show Control Panel from its Dock menu, or press ⌘0 with the app active to restore the panel.
While the kiosk is active, the Mac is kept from sleeping its display (a power assertion), so the TV doesn't go dark mid-display.
Development
See AGENTS.md for application constraints and agent interaction, and wiki task routing for source-backed contracts, command effects, and verification.