{% 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' }}

Daily rhythm

Each row is one day, midnight to midnight. Hover or tap a mark for details.

{{ ui.rhythm_legend() }}
{{ ui.rhythm_chart(rows, f) }}
{% for c in charts %}{{ ui.column_chart(c) }}{% endfor %}

Table

The same numbers, day by day
{% for d in stats %} {% endfor %}
DayFeedsSleepLongestWetDirtyPumping
{{ 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.

{% endblock %}