{% extends "base.html" %} {% block title %}Databases — AHDX{% endblock %} {% block body %}

Databases

Each database is its own .db file under the data volume. Keep one per person, one per year, or a scratch one to test an import. Imports always go into the active database.

{% for d in overview %} {% endfor %}
Name Size Records Workouts Last import Actions
{{ d['name'] }} {% if d['is_active'] %}active{% endif %}
{{ d['filename'] }}
{{ d['size_h'] }} {{ '{:,}'.format(d['records']) }} {{ d['workouts'] }} {{ d['last_import'][:16] if d['last_import'] else '—' }}
{% if not d['is_active'] %}
{% endif %}

New database

Read API

Pull data out for Grafana or scripts. Open /api for the menu. Pick a database with ?db=Name. Example: /api/daily?db=Steffen&type=HKQuantityTypeIdentifierStepCount&agg=sum

{% endblock %}