{% extends "core/base.html" %} {% block title %}Readings{% endblock %} {% block content %}

Meter readings

Quick entry

{% csrf_token %}{{ form.as_div }}

Import CSV

{% csrf_token %}{{ import_form.as_div }}

Header optional. Rows are YYYY-MM-DD,cumulative_kwh. Existing dates are updated.

History ({{ count }} readings)

{% for r, units, days, per_day in pairs %} {% endfor %}
Reading dateCumulative kWhDaysUnits since previousPer day
{{ r.date|date:"d M Y" }}{{ r.kwh }}{{ days }} {% if units < 0 %}decreased{% else %}{{ units }}{% endif %} {% if per_day is not None %}{{ per_day|floatformat:1 }}{% endif %}
{% endblock %}