Weekly ADHD pattern summary with focus trends and insights
Delivers a 7-day behavioral pattern summary. Triggered automatically on Sundays at 8 PM via HEARTBEAT, or on-demand.
GET http://localhost:8420/insights/weekly
The response contains:
avg_focus_percentage (0-100)avg_distraction_percentage (0-100)total_interventions (count)intervention_acceptance_rate (0-100%)best_focus_day (date string)worst_focus_day (date string)top_apps_weekly (list of {app_name, minutes, percentage})trend ("improving" | "declining" | "stable")daily_focus_scores (list of {date, focus_pct, distraction_pct})Structure the weekly review as a brief summary:
Based on the data, offer ONE specific, actionable observation:
If backend is unreachable: