feat: Implement Garmin sync, login improvements, and utility scripts

This commit is contained in:
2025-10-11 11:56:25 -07:00
parent 56a93cd8df
commit 3819e4f5e2
921 changed files with 2058 additions and 371 deletions

21
list_synced_activities.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
# This script retrieves and lists all synced activities from the CentralDB service.
# --- Configuration ---
CENTRAL_DB_URL="http://localhost:8000" # Adjust if your CentralDB is running on a different host/port
# --- Retrieve Synced Activities ---
echo "Retrieving all synced activities from CentralDB..."
ACTIVITIES_RESPONSE=$(curl -s "${CENTRAL_DB_URL}/activities")
if [ -z "${ACTIVITIES_RESPONSE}" ]; then
echo "Error: No response received from CentralDB. Is the CentralDB service running?"
exit 1
fi
echo "${ACTIVITIES_RESPONSE}"
# Optional: Add more robust parsing and display of activities if needed
# For example, using `jq` to pretty-print the JSON:
# echo "${ACTIVITIES_RESPONSE}" | jq .