Pages/StreamPage/visit_stats library

Classes

VisitStats
The visits of the days days up to today, counted in the viewer's own time zone.
VisitStatsPanel
A "Visits" button that opens the visits of the last two weeks per day and per hour, from /visits, refreshed every interval while open.

Functions

staysFromJson(String? body) → List<Stay>
The visits in /visits's body, newest first; empty for anything else.

Typedefs

Stay = ({DateTime arrived, Duration? stayed})
One visit from ObservANT's /visits: when it arrived, and how long it stayed once it had left.