Pages/StreamPage/cat_status library
Classes
- CatStatus
-
What the cat cam's
/healthzsays: 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'scat.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:32for today,Oct 11 14:32for an earlier day, inlocale. -
stayMinutes(
Duration stayed) → String -
A stay in whole minutes,
<1below one.