Dashboard¶
- Status: The
bedroomfeed is deployed. A separateandrea-techprofile is implemented locally; deployment identity is tracked in deployment.
The deployed bedroom profile combines Bogotá weather, NYT/Guardian headlines,
international men's fútbol, and Iowa State football and basketball into a
bounded feed. Its baseball adapters remain available but are currently
unassigned. The local andrea-tech profile supplies Spanish-language
technology and science headlines alongside NASA Artemis and AI headlines.
The Android app offers three persistent modes: Just Clock,
Bulletins, and Dashboard. Just Clock is the default and does not poll;
Bulletins presents scheduled cards, while Dashboard rotates through valid cards
continuously. Highlights now is a one-shot action available from any
persistent mode while foreground and outside preview or another bulletin; it
may use one refresh, presents the current cards, then returns to that mode. The
release status and operational evidence are recorded in
deployment.
Viewing and refresh¶
| Choice | What appears | Phone requests while foregrounded |
|---|---|---|
| Just Clock | Only the clock | No periodic refresh |
| Bulletins | One pass through ready cards at eligible :00/:30 slots, then the clock | Prefetch shortly before the slot; bounded retry or catch-up |
| Dashboard | Continuous card rotation | Five-minute conditional refresh |
| Highlights now | One manual pass, then the saved mode | One explicit refresh |
The current profile schedules Bulletins from 08:00 to 20:00 in
America/Bogota, subject to quiet hours. Cards normally spend 15 seconds on
screen. Neither mode wakes a sleeping phone, and phone refreshes do not trigger
provider requests: the server maintains its own shared refresh loop.
Phone network activity follows the selected mode while the app is foregrounded.
Just Clock has no periodic dashboard requests. Bulletins uses a configurable
60-second lead and allows at most two conditional manifest attempts per slot
before the slot starts: the initial prefetch and one retry after a transient
failure, scheduled at least 10 seconds later. A server Retry-After is honored
only when it still fits before the slot. Entering or resuming Bulletins during
the existing 90-second eligible-slot grace allows one catch-up attempt if the
slot has not already been attempted. No retry is made once the slot starts.
The presenter keeps a per-slot ledger so resume or mode changes cannot duplicate
an attempt. It recalculates the next slot from the current minute, schedule and
time zone, and cancels owned work on pause or connection change. Quiet Hours and
Preview suppress automatic Bulletins.
Prefetch never starts a bulletin before its slot is eligible. A card is usable only while its verified cache entry is unexpired. Expiry removes a card even when the phone is offline, refresh failed, or the server returned HTTP 304; 304 confirms that the manifest is unchanged and does not extend card validity. Authentication, conditional manifest requests, and staging all referenced assets before atomic activation remain required. A response received during a Bulletin supplies content for the next bulletin, without replacing the running card set. Dashboard adopts replacements, including an empty feed, only at the current sequence's lap boundary; strict expiry still takes precedence. During image decode, an opaque black card layer covers the clock to prevent a clock frame from flashing between cards. Switching to Just Clock cancels automatic prefetch and revokes any held response's ability to update the presentation or retry.
At the slot, or when entering Bulletins, the phone displays verified, unexpired cached cards immediately without waiting for a request. A failed prefetch can therefore leave stale-but-still-valid cards for the bulletin. If no valid cached cards are available, the bulletin has no cards and the clock remains visible. A response arriving late can update the cache for a future slot, but cannot resurrect a slot already consumed. Dashboard keeps its five-minute conditional manifest polling with ETags and backoff. Highlights now performs one explicit refresh in any persistent mode and does not enable recurring polling; if Dashboard is saved, its polling resumes afterward. All client work is foreground-only, with no services, alarms, scheduled jobs or background wakeups. The lead is an Android resource setting, not a schema-1 field; provider refresh and quota policies on the server are unchanged. This cadence belongs to the Android client and does not change the API contract.
The accepted trade-off is straightforward: Bulletins favors fewer network requests over continuous connectivity. If connectivity fails around the prefetch window, that bulletin may use older still-valid cards or show no cards. Dashboard remains the fresher continuous-viewing mode. This reduces request frequency; it is not a measured battery-life guarantee or an urgent alert channel.
The earlier MLB evaluation used API-Sports Baseball and BALLDONTLIE MLB side
by side. Both normalize to the existing sports-card contract; their source
scope is server configuration. The baseball source definitions remain in the
repository, but the current deployed bedroom profile does not assign them.
The selected persistent mode is saved across app restarts; the one-shot action is not a mode and does not replace that saved preference. The client keeps its verified feed and downloaded images in an origin-specific private cache. The asset and staging files share a 32 MiB default limit. Assets are written to staging, checked for declared dimensions, length, and SHA-256, then the active manifest switches atomically after all referenced images are present.
The Dashboard lets the bedside phone become useful for a few seconds at a time without turning it back into a distracting smartphone. The clock remains the resting state except in continuous Dashboard mode. Selected information temporarily takes the canvas, then yields it again.
During card rotation, the outgoing image is released at the end of its interval. Its opaque black layer stays over the clock until the next decoded image is ready, so the clock does not flash between cards. Ending a bulletin, selecting Just Clock, or running out of valid cards removes that layer and shows the clock.
Possible future additions include:
- the next calendar item;
- a weather warning or short forecast;
- family photographs, including a small rotating album or travel update.
Content flow¶
sequenceDiagram
participant Phone as Android appliance
participant API as Dashboard API
participant Source as Weather/sports/headline provider
API->>Source: Fetch due public source data
API->>API: Select, resize, and bound content
Phone->>API: Conditional manifest request
alt Feed changed
API-->>Phone: Versioned JSON manifest
Phone->>API: Fetch missing immutable assets
Phone->>Phone: Validate staged content and swap atomically
else Feed unchanged
API-->>Phone: Not modified
end
Phone->>Phone: Render from verified local cache
The phone receives a small manifest and already-prepared images rather than running a modern browser engine or authenticating to each provider. A failed refresh leaves the last verified feed intact. The server has a single background refresh loop, bounded to two concurrent source fetches; requests from phones read the latest immutable profile snapshot rather than triggering provider calls. Manifest and asset ETags avoid redundant transfers. Assets are keyed by SHA-256 and retained with the current and two prior profile snapshots in process memory.
Feeds¶
The deployed bedroom profile assigns six sources: weather-bogota,
nyt-home, guardian-uk, international-men-soccer, isu-football, and
isu-basketball. Sources without eligible content contribute no card; six
sources do not necessarily mean six cards. Fútbol covers five senior men's
national teams; Iowa State football and men's basketball sources are enabled.
The two baseball IDs remain defined for compatibility with existing scripts,
but are disabled and unassigned. The old MLB Stats source also remains
disabled and unassigned. The profile
sets MaxCards to 8, CardDurationSeconds to 15, a 75-second minimum bulletin
budget, and AutoBulletinBudget to true. The computed budget is the larger of
the configured floor and the selected card durations, capped at 240 seconds:
Here, B_floor is the configured 15–240 second floor, N is the number of
selected cards (which can be zero), and d is the 5–30 second card duration.
For example, a five-card feed uses 75 seconds with the current settings, while
eight 15-second cards use 120 seconds. MaxCards is bounded to 1–8. These
server-side settings do not require an Android
build within schema-1 limits; changing those contract limits requires a
coordinated client update. Profile IDs are presentation choices, not
credentials. A configured device bearer token
maps to a device ID and profile; the server authorizes the device and composes
its assigned feed. Additional profile definitions and source assignments are
supported. Production enrollment is controlled by private device-credential
configuration. Profile definitions and device assignments are deployed separately. Runtime credential values are supplied outside checked-in
configuration.
Andrea technology profile¶
The andrea-tech profile is separate from bedroom. It uses six as the card cap, 15 seconds per card, and a fixed
90-second Bulletin budget. Bulletins run on the hour and half hour within
the 08:00–20:00 Bogotá window. Its ordered RSS sources are:
wired-es-gadgetswired-es-ciencianasa-artemistechcrunch-aispaceflight-now
These use the shared RSS adapter and headline-card renderer. RSS sources are
configured once and can be assigned to more than one profile. The current
headline source produces one card from its normalized source content; this
slice does not add source rotation, cross-source deduplication, or per-topic
selection. Five populated headline sources provide five cards for 75 seconds;
an eligible tracked launch adds a sixth 15-second card, filling the 90-second
Bulletin budget. At 08:00 and 08:30 Bogotá time, a fresh briefing has a
reserved slot; when a launch and briefing are both eligible, one ordinary
headline yields. The six-card and 90-second limits still apply. Later
Bulletins, Dashboard and Highlights use the normal spare-slot rule.
The profile also has a bounded launch-event source. It tracks a small,
operator-curated Launch Library 2 watchlist independently of the RSS headlines;
it does not try to infer that an announcement describes a scheduled launch.
Bogotá weather, skywatching cards, and a device remap are not part of this
profile slice. Both daily briefing feeds are enabled in the profile.
A disabled, unassigned SINC Ciencia headline feed
is also available for evaluation; it is not additive to Andrea's lineup. The
profile definition is deployed on OVH. The Play still uses bedroom until its
private credential mapping is updated.
The optional tech-news-daily-briefing (Tech News Daily) and
daily-tech-headlines-briefing (Daily Tech Headlines) feeds use the shared RSS
transport and parsing limits, with RssDailyBriefing projecting a feed into a
single normalized episode card. The backend does not fetch audio or
transcripts, and the feed link is not exposed as a tap-to-play action. Both
morning slots use the same eligible daily selection. When both have an eligible episode, selection
alternates by Bogotá calendar date whenever the profile is recomposed; there
is no midnight timer. If only one episode is eligible, it is used. Future-dated
episodes and episodes older than 36 hours are excluded; the selected card also
expires after six hours without source confirmation. If no episode is
eligible, ordinary cards fill the morning slots. No extra controls are
needed; reservations apply only to scheduled Bulletins on a running app.
They apply while the phone is awake and require an updated APK.
Andrea also has a separate, server-generated personal greeting at 09:00 Bogotá time only. Its text and heart stay stable for that local date. It is not part of the continuous Dashboard or Highlights lineup and does not use an upstream feed. An eligible launch still keeps its slot. The backend reads greeting choices from a private file; see greeting file operations.
Launch event tracking (local preparation)¶
The local Andrea profile polls Launch Library 2 (LL2)
v2.3.0 through its fixed launch endpoint every 15 minutes. It batches a
configured operator UUID watchlist of at most eight entries using LL2's comma-
separated id filter; the initial watch is Starship Flight 15
(0f867f0c-5422-4d44-93b8-d7faaae7019b). The UUID identifies the tracked
launch while its schedule and status remain provider data, so a date change
does not require a code or profile edit. This is an operator-curated watchlist,
not discovery of every launch.
When an eligible launch has a precise time within 48 hours, it can take the single priority launch slot, with the earliest eligible launch selected. If an imminent launch is delayed or scrubbed, a short notice remains eligible for 15 minutes. After a fetch failure, the last confirmed information is marked stale; it is hidden after 45 minutes without confirmation or when its launch window ends. Canceled and completed launches retire from the active lineup. Announcements remain ordinary RSS headline cards: there is no automatic correlation between a headline and a tracked launch.
RSS response and episode bounds¶
RSS sources use a 1 MiB decompressed-body limit by default. An operator may set
RssMaxResponseBytes for an individual feed up to 10 MiB; the backend checks
both a declared response length and bytes actually received while streaming.
The disabled SINC Ciencia candidate has a 4 MiB cap, and each disabled
briefing candidate has a 10 MiB cap.
Existing XML item-count and elapsed-time guards remain in force. The limit is
not a license to fetch arbitrary feed URLs: upstream URLs remain fixed server
configuration. Raw XML is parsed transiently and not retained in snapshots or
assets. Daily briefing mode retains only normalized episode metadata; podcast
audio is not downloaded. sinc-ciencia is disabled and unassigned while its
feed is evaluated.
Spaceflight Now's launch RSS is a separate headline source. Its launch schedule and Space Launch Schedule are editorial cross-checks for people maintaining the watchlist, not server scraping sources. NASA or launch-operator pages can be linked when useful for verification. These changes are local; they do not alter the deployed API or device profile.
Additional sports and compact schedules¶
Configured sources cover senior men's Colombia, USA, México, Argentina and Brazil fútbol, plus Iowa State NCAA football and men's basketball. Deployment records identify which configuration is active on OVH; changing this file alone does not activate a release.
For followed football and soccer teams, selection favors ongoing games, then recent finals, then upcoming matches in the local yesterday/today/tomorrow window. Ongoing and finished games each get their own card. Up to three upcoming matches can share a schedule card when their sport and competition match; basketball and football never share a card. If none of the followed teams has a relevant match, that group contributes no card. A match involving two followed teams is shown once. Baseball follows the separate postseason selection policy below.
“Yesterday” means the entire previous calendar day in the source's configured time zone, not the last 24 hours. A confirmed final remains eligible until midnight ending the following day, subject to the profile's selection and card capacity. For example, a Friday-night result can still appear late Saturday. The expiry instant accounts for time-zone and daylight-saving boundaries. An upstream failure does not renew that boundary; live scores retain their short confirmation-based expiry.
The existing eight-card profile cap and automatic bulletin budget still apply. Sources receive initial coverage in profile order before another round-robin lap; within each new sports source, live cards precede finals and schedules. The phone still receives ordinary PNGs and adopts new feeds at lap boundaries, not halfway through a visible card.
The sports renderer can embed cached team logos, with abbreviations when a logo is missing or rejected. Individual cards place team visuals and names beside a large reported score, with the reported fútbol minute, inning or quarter/period. Up to four goal/red-card rows fit below; red cards receive priority. These are confirmed provider values, not a clock that invents minute-by-minute progress between updates. Results show Final. Compact schedules use up to three rows with both team visuals and local start dates/times, without mixing sports or competitions. The phone receives only the composed PNG, not provider URLs. When the selected window is empty, the other sources continue normally and the bulletin duration reflects the cards actually selected.
Logos and flags¶
API-Sports supplies team-image URLs, including national flags for fútbol and college emblems. The server caches accepted images and embeds them in the card PNG; phones do not fetch logos separately. Missing or rejected images fall back to team abbreviations without suppressing the game.
BALLDONTLIE cards currently use abbreviations because that adapter supplies no logo URL. Sharing cached API-Sports images through an explicit cross-provider team mapping is TODO work for a later deduplication/fallback policy. The two baseball feeds remain separate comparison cards for now. Cache bounds and attribution requirements are described in Backend.
Baseball source choice¶
The earlier deployed PoC asked MLB Stats for Yankees games, but requests from
OVH received HTTP 406 at an upstream edge. The subsequent team-scoped evaluation
used API-Sports team ID 25; a bounded OVH date-only request returned the next
Yankees game while a season=2026 request was denied by the observed free-plan
entitlement. BALLDONTLIE used Yankees team ID 19; a team-filtered request for
adjacent dates returned the recent result and next scheduled game from both the
local machine and OVH. Those public HTTPS checks are historical and do not
establish long-term provider reliability. The current sources are
postseason-scoped, with no team ID or team name.
The observed API-Sports Baseball free plan has a 100-request daily limit. Devices share server-side fetches rather than each spending that quota. The implementation caches day results, refreshes less often than the device manifest, and has a 90-request-per-UTC-day process ceiling; a process restart resets that ceiling. BALLDONTLIE's adapter makes a bounded nine-day postseason request with no team filter, following at most three pages of 100 games. It fails an incomplete or malformed slate rather than silently omit later games. Normal source refresh is at least 15 minutes apart, with two-minute live-game refreshes. Its observed access window may exclude an adjacent date, so yesterday's result or tomorrow's game can be absent even when today's request succeeds. A missing or failed baseball source does not suppress weather or headlines, and the phone keeps the last valid card only until its validity expires. See Backend for policy and Deployment for the activation boundary.
The side-by-side provider comparison continues in the current profile. It uses both adapters for postseason selection; their IDs retain the historical Yankees wording for script compatibility. A future end-user profile would normally choose one provider and consider the other as a controlled fallback, after comparing freshness, accuracy, terms and cost.
Postseason source wiring¶
Either baseball adapter can return a bounded postseason slate, and the composer publishes its games as separate, provider-attributed sports cards. Selection combines today's eligible games, yesterday's final/suspended results, tomorrow's scheduled games, and any earlier game still underway. Ongoing games come first, then results newest-first, then upcoming games chronologically. Yesterday means the entire previous calendar day in the configured source time zone, not the last 24 hours. An upcoming game does not suppress yesterday's result.
Only when this combined window is empty does selection fall back to the next actionable game day beyond tomorrow. Selection cannot recover dates or results the provider has not returned; free-tier access restrictions still apply. The eight-card cap and paired-game capacity rule below can omit lower-priority games. The phone continues to receive the same schema-1 manifest and PNG assets.
Cards keep stable source-and-game identities. The composer can reuse a rendered image while its game content and confirmation time are unchanged, and prunes memo entries outside the published slots or no longer active in a recomposed profile. The composer gives each available source its first slot in configured order, then considers later postseason games in round-robin laps. When at least two postseason games are available in a lap, those candidates are reserved together: if the remaining card budget cannot fit them all, they are skipped while other source cards can still use available slots. If only one provider has a game in that lap, that game can be included; a rendering failure can also leave only one card from an otherwise paired set. When the card limit is below the number of sources, configured order determines first-slot coverage. For example, two providers with three games each, plus weather and two news cards, yield seven cards when the eighth slot cannot fit the next pair.
The providers identify postseason data differently. The BALLDONTLIE MLB
games documentation describes the
postseason=true filter and returned postseason metadata. The API-Sports
Baseball games documentation
does not document a per-game postseason field, so an
API-Sports postseason source requires operator-declared inclusive
PostseasonStartDate and PostseasonEndDate values in the source time zone.
It uses the API-Sports adapter's shared yesterday/today/tomorrow snapshots and
does not filter by team. Those dates are a conservative local inclusion rule,
not evidence that the provider marked each game as postseason.
The current profile configures both existing baseball source IDs for postseason with inclusive operator coverage dates of 2026-09-29 through 2026-11-15, without a team filter. These dates describe the window the operator chooses to cover; they do not predict when the postseason ends. The 75-second budget is a floor, and automatic budgeting expands it when selected cards need more time. No champion or completion time is configured because neither adapter supplies authoritative championship metadata.
When an authoritative champion is known, an operator may set
PostseasonCompletion consistently on both postseason source definitions, with
ChampionName, a UTC ConfirmedAt instant, and RetainDays (default 7, allowed
range 1–30), then restart the API. This explicit fact is not inferred from a
schedule. Loading completion configuration stops provider fetches immediately,
even when confirmation is in the future; the API waits locally until that
instant before publishing the champion. A published champion card
expires at confirmation plus the retention period, after which the source is
retired. Do not configure a champion based on a prediction. See the PoC
plan.
Deliberate unknowns¶
The schema-1 contract provides bounded card metadata, fixed per-profile
rotation timing, validity, attribution, and presentation schedule fields.
Emergency interruption policy, account enrollment, and a user-facing source
selection surface remain future decisions. Contract changes must preserve
compatibility with installed API-22 clients; shared fixtures live under
contracts/dashboard/v1/.
The future administration website is also outside the current critical path. When it exists, it will edit backend policy through the same application services; it will not make the Moto X a web application.
See Architecture, Backend, and ADR 0002.