Software for Garmin Device (Developed with Garmin Vivosmart 5)

garmin-local

A self-hosted, local-first Garmin Connect alternative. Sync via your Garmin
account or import .FIT files directly from a connected device — all data
stays on your machine in a local DuckDB database. Written in Python.

Note: Tested with Garmin vivosmart 5 on Linux

Features

Data Ingestion

  • Garmin Connect sync — full history download on first connect, then
    incremental updates fetching only new days (Garmin tab → Connect Update)
  • Direct device import — point the app at your mounted device
    (e.g. /media/<user>/GARMIN/GARMIN) and it parses .FIT files locally:

    • Monitor/ — daily stats (steps, distance, calories), heart rate, stress
    • Sleep/ — sleep stages incl. undocumented message types on newer firmware
    • Activity/ or Sports/ — recorded activities with session summaries
  • Local persistence — everything lands in data/garmin_data.db (DuckDB);
    nothing leaves your machine unless you sync with Garmin Connect

Data Monitor

Interactive matplotlib charts for ten metrics, with value labels, zoom,
and horizontal scrolling:

  • Steps & Distance (dual axis), Calories (total vs. active),
    Heart Rate (resting/max/min), Stress (with low/med/high background bands),
    Sleep Summary (stacked stages + quality score), Sleep Tracing
    (per-night stage timeline with H:MM breakdowns), Respiration,
    Body Battery, Activities by type, Blood Pressure
  • Metrics that only exist online (respiration, body battery) show a hint
    to connect your Garmin account when no data is present

Overview

  • One tab per data section (Daily Stats, Heart Rate, Stress, Sleep,
    Respiration, Body Battery, Blood Pressure)
  • Each section contains a sub-tab per month: monthly summary row on top,
    then weekly aggregates, then daily rows
  • Blood pressure cells are color-coded by WHO-style categories
  • Export writes one .ods file per section into data/, with months
    as separate sheets — existing files are overwritten automatically

Art

Generative art rendered from your health data (Pillow):

  • Styles: scribble, Kandinsky, Mondrian, Rothko, Pollock, Bauhaus,
    daily mosaic, sleep heatmap, BP wave, wild mix
  • Pick a data source, a weekly or monthly period, palette, and output
    size (1500–6000 px), then save as PNG

Blood Pressure

  • Manual entry log with morning/evening readings, stored in the same DB
  • Color-coded table and chart; included in Overview and ODS export

Requirements

  • Python 3.10+ with python3-tk
  • pip install -r requirements.txt — key deps: ttkbootstrap,
    matplotlib, pandas, numpy, duckdb, fitparse, Pillow,
    odfpy, garminconnect, curl_cffi

Run


python main.py

Share