{% extends "base.html" %}
{% import "macros.html" as ui %}
{% block title %}Trends{% endblock %}
{% block content %}
Feeds a day {{ '%.1f' % avg.feeds if avg.feeds is not none else '–' }} average, full days only Between feeds {{ f.duration(median_interval * 60) if median_interval else '–' }} typical (median), start to start Sleep a day {{ f.duration(avg.sleep_min * 60) if avg.sleep_min is not none else '–' }} average, full days only Longest sleep {{ f.duration(longest.longest_sleep_min * 60) if longest else '–' }} {{ f.day(longest.day, today) if longest else 'none yet' }} Each row is one day, midnight to midnight. Hover or tap a mark for details.Daily rhythm
| Day | Feeds | Sleep | Longest | Wet | Dirty | Pumping |
|---|---|---|---|---|---|---|
| {{ f.day(d.day, today) }}{% if (today - d.day).days >= 7 %}{% else %} {{ d.day.strftime('%b') }} {{ d.day.day }}{% endif %} | {{ d.feeds }} | {{ f.duration(d.sleep_min * 60) if d.sleep_min else '–' }} | {{ f.duration(d.longest_sleep_min * 60) if d.longest_sleep_min else '–' }} | {{ d.wet }} | {{ d.dirty }} | {{ d.pump }} |
A feed is every feeding press within {{ 30 }} minutes of the one before (left then right side counts once). Sleep that crosses midnight counts toward both days.