NOTEDASHBOARD
Rowjoberg

obsidian-time-dashboard

Track time allocation from daily note task blocks and linked-note metadata.

Task Dashboard

A local Django dashboard that turns - [t] rows in Obsidian daily notes into time-allocation charts, summaries, and warnings.

Nothing leaves your machine: the app reads your vault, caches what it parses in a local SQLite file, and serves it on 127.0.0.1.

Features

  • scans - [t] task rows from your daily notes
  • resolves linked notes across the vault and reads their frontmatter
  • reads durations from timestamps, or from an hours value on the line
  • dashboard, grouped summary, entry, and warning views
  • multi-select filtering on linked-note metadata
  • day / week / month / year periods, with matching chart granularity
  • task layout and field mapping configurable in the web admin, no code edits

Requirements

  • Python 3.12 or newer
  • An Obsidian vault with daily notes containing - [t] rows

Setup

python -m venv .venv

Activate the environment:

PlatformCommand
Windows.venv\Scripts\activate
macOS / Linuxsource .venv/bin/activate

Create your config file:

PlatformCommand
Windowscopy config.example.yaml config.yaml
macOS / Linuxcp config.example.yaml config.yaml

Then, on any platform:

pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py refresh_notes
python manage.py runserver

With the server running, open:

URLPurpose
http://127.0.0.1:8000/Dashboard with charts
http://127.0.0.1:8000/summary/Grouped summary
http://127.0.0.1:8000/entries/Raw entry table
http://127.0.0.1:8000/warnings/Parse warnings
http://127.0.0.1:8000/admin/Django admin, including task layout settings

python main.py prints the same command list if you forget it.

Creating the admin user

The report pages need no login, but the task layout settings do: they live in the Django admin at /admin/reporting/tasklayoutconfig/, which is linked as Settings in the nav bar.

python manage.py createsuperuser

You need this before you can point the app at your vault, because the vault path is one of the settings. Run it before the first refresh_notes. To change the superuser password later, use python manage.py changepassword <username>.

Configuration

Configuration lives in two places.

config.yaml holds the process-level values Django needs before it starts. It is git-ignored, so keep it local.

KeyDefaultMeaning
app.secret_keychange-me-for-productionDjango secret key. Change it before exposing the app anywhere.
app.debugtrueDebug mode. Keep this off for anything but local use.
app.allowed_hosts127.0.0.1, localhostHostnames Django will serve.
app.time_zoneAustralia/SydneyTime zone used for grouping and labels.
vault.path(empty)Absolute path to your Obsidian vault. Seeded into the admin on first use.
vault.daily_notes_pathAutomated Notes/Daily NotesFolder inside the vault holding daily notes.
reporting.default_periodmonthPeriod selected on first load.
reporting.default_group_bydisplay_titleInitial grouping.
reporting.invalid_durations_in_totalsfalseWhether rows with an unusable duration count toward totals.

The database holds the task layout and reporting defaults, edited at /admin/reporting/tasklayoutconfig/. On first use the row is seeded from config.yaml; after that the database copy is authoritative and config.yaml only supplies the values Django reads at startup.

The source-key dropdowns in the admin are populated from the frontmatter keys found in your imported notes, so import once before choosing them.

Task layout

OptionDefaultMeaning
identifier- [t]Literal text that starts a task line.
task_regionafter-identifierWhich part of the line holds the title. after-identifier cuts at the first time value, before-start cuts at the start marker, title-only also drops trailing metadata.
hours_modeoffTake the duration from hours_pattern instead of the timestamps.
hours_pattern[hours]\s*h\b|[H]:[M]\bMatches 2.5h, 2,5h, 2:30, or 0:45.
start_time_pattern🛫 YYYY-MM-DD HH:mmStart timestamp marker.
end_time_pattern📅 YYYY-MM-DD HH:mmEnd timestamp marker.

Tokens are substituted for you and everything else is passed through as a regular expression fragment, so alternation and character classes work:

  • date/time tokens: YYYY, YY, MM, DD, HH, mm
  • hours tokens: [hours] (decimal hours), [H] (hours), [M] (minutes)
  • tokens may be bare (YYYY-MM-DD) or bracketed ([YYYY]-[MM])
  • a bare token is ignored when followed by a letter, so Done is not read as a day
  • the identifier is matched literally, so regex metacharacters in it are safe
  • with hours_mode on, timestamps are still parsed when present, so the heatmap and time-of-day breakdowns keep working

Field mapping

Each role points at a frontmatter key on the linked note. The defaults suit a Jira-style vault; change them to match yours. The label fields control the heading text, so the interface stays readable whatever your keys are called.

OptionDefaultMeaning
source_unique_identifierjiraTaskKey holding the task's external identifier.
source_workstreamprojectKey holding the project or workstream.
source_statusstatusKey holding status.
source_prioritypriorityKey holding priority.
source_ownerassigneeKey holding the owner.
source_datedateKey holding the task date.
source_weekweekKey holding the week label.
label_unique_identifierUnique IdentifierHeading for the identifier column.
label_workstreamWorkstreamHeading for the workstream column.
label_statusStatusHeading for the status column.
label_priorityPriorityHeading for the priority column.
label_ownerOwnerHeading for the owner column.

Resolved state

OptionDefaultMeaning
resolved_whenlink-resolvedlink-resolved, checkbox-complete, tag, or frontmatter.
completed_identifier- [x]Used when resolved_when is checkbox-complete.
resolved_tag#doneUsed when resolved_when is tag.
resolved_fieldstatusFrontmatter key compared when resolved_when is frontmatter.
resolved_valuedoneValue that counts as resolved.

Durations and filters

OptionDefaultMeaning
round_duration_to0 (off)Round durations to 1, 5, or 15 minutes.
min_duration_minutes0Drop durations below this many minutes.
overnight_hoursoffTreat an end time earlier than the start as crossing midnight.
ignored_frontmatter_keys(empty)Frontmatter keys to skip when building filters, one per line.
include_invalid_durations_in_totalsoffCount rows with an unusable duration in totals.

Changing the layout only affects new imports. Run python manage.py refresh_notes or press Refresh Cache to re-parse the vault.

Importing

refresh_notes scans daily_notes_path, resolves each linked note, and rebuilds the cache in one pass. Import is currently a full rebuild, so it is safe to run repeatedly. Rows that cannot be parsed are listed at /warnings/ rather than being dropped silently.

Sample daily note:

---
date: 2026-03-30
week: 2026-W14
---
## Tasks
- [t] [[Obsidian Task Note]] 🛫 2026-03-30 12:30 📅 2026-03-30 15:00

Development

pip install -r requirements.txt
python manage.py test          # test suite
ruff check . && ruff format .  # lint and format
pre-commit install             # optional: run checks on commit

Dependencies are declared in pyproject.toml. requirements.txt and uv.lock are generated from it:

uv lock
uv export --format requirements-txt --no-hashes --no-emit-project -o requirements.txt

Project layout

PathContents
task_dashboard/Django project: settings, URLs, config.yaml loading.
reporting/models.pySourceNote, TaskEntry, TaskLayoutConfig, warnings.
reporting/services/layout.pyPattern compilation and value parsing.
reporting/services/notes.pyVault scanning and task-row parsing.
reporting/services/reports.pyFiltering and period aggregation.
reporting/services/roles.pyField roles, labels, frontmatter keys.
reporting/services/settings_store.pyReads and seeds the config row.
reporting/management/commands/refresh_notes.pyThe import command.
templates/, static/Templates, CSS, and the Chart.js front end.

Privacy

  • db.sqlite3 caches your parsed vault: task titles, notes, and metadata. It is git-ignored and must never be committed.
  • The SQLite copy of TaskLayoutConfig also stores your vault path, so a shared database leaks it too.
  • The report pages have no authentication and the default config has debug: true. This is a localhost-only tool. Do not expose it to a network unless you add authentication, turn debug off, and set a real secret_key.
  • Before sharing the code, run python tools/build_public_release.py. It copies only the safe files into dist/task-dashboard/, substitutes config.example.yaml for your real config, and fails the build if any machine-specific path is still present. Personal tokens for that check live in the git-ignored tools/.release_blocklist.local.

Known limitations

  • import is a full rebuild on every run
  • only - [t] rows are read; the marker is configurable but single
  • durations come from timestamps or one hours value, not from summed sub-tasks

License

MIT, see LICENSE.

Related

How to Install

  1. Download the dashboard markdown file from GitHub
  2. Drop it into your vault (anywhere)
  3. Install the Homepage plugin and point it at the file
  4. Enable any listed CSS snippets for the intended look

Stats

Stars

0

Forks

0

License

MIT

Last updated 2mo ago

Categories