import requests import json # Activity ID 31 matches Garmin ID 21072264737 ACT_ID = 21072264737 URL = f"http://localhost:8000/api/segments/scan/{ACT_ID}" def trigger(): print(f"Triggering scan for Activity {ACT_ID}...") try: res = requests.post(URL) print(f"Status: {res.status_code}") print(f"Response: {res.text}") except Exception as e: print(f"Error: {e}") if __name__ == "__main__": trigger()