Pages/StreamPage/cat_status library

Classes

CatStatus
What the cat cam's /healthz says: its name, whether and when a cat was in view, and its visits.
CatStatusLine
The cat cam's name and its cat, polled from /healthz; with no cat cam behind the page, fallbackName alone.
CatVisit
One visit from /healthz's cat.recent: when the cat came, and how long it stayed once it had left.

Functions

arrivalPicture(String url, String label) → dynamic
The arrival picture at url, 240 px wide: the previous one until the next loads, nothing on an error.
formatLastSeen(DateTime when, DateTime now, String locale) → String
14:32 for today, Oct 11 14:32 for an earlier day, in locale.
stayMinutes(Duration stayed) → String
A stay in whole minutes, <1 below one.