Convert GarminActAPI, GarminActivities to LAVA @artifact_processor by abrignoni · Pull Request #776 · abrignoni/ALEAPP · GitHub
Skip to content

Convert GarminActAPI, GarminActivities to LAVA @artifact_processor - #776

Merged
abrignoni merged 2 commits into
mainfrom
lava-batch-34
Jun 20, 2026
Merged

abrignoni merged 2 commits into
mainfrom
lava-batch-34

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Two Garmin activity parsers. Their only visualization was add_heat_map (an HTML-report calendar heatmap) — dropped for LAVA; the activity tables are the data.

  • GarminActAPI — JSON activity list (21 columns). Dropped the heat-map + its activity_json date-count accumulation; refactored the repetitive None/round handling into a _round2 helper; renamed the shadowing for data in data loop variable; kept the latin-1 decode fallback and added explicit encoding='utf-8' to the primary open().
  • GarminActivities — UNION of activity_details/activity_summaries (grouped by activityId). Replaced the in-SQL datetime(lastUpdated/Update,'unixepoch') with raw epoch selection + Python aware-UTC conversion; Last Updated marked datetime (uses the json-branch vs details-branch source as the original did). Dropped heat-map/filter_by_date; startTimeGMT kept as the app's string.

Verified: byte-compile, decorated 4-arg signatures, return 3-tuples, output_types valid, loader builds (407 plugins), pylint clean.

@abrignoni
abrignoni merged commit dc76b84 into main Jun 20, 2026
1 check passed
@abrignoni
abrignoni deleted the lava-batch-34 branch June 20, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant