Skip to content

Title: [DATABASE] Connect Flask dashboard to SQLite database #37

Open
ezehf2 opened this issue Apr 5, 2026 · 0 comments
Open

Title: [DATABASE] Connect Flask dashboard to SQLite database #37

ezehf2 opened this issue Apr 5, 2026 · 0 comments
Assignees

Comments

@ezehf2
Copy link
Owner

ezehf2 commented Apr 5, 2026

Update src/dashboard/app.py to replace the placeholder_readings dummy data with real queries from Timi's database.py. Import get_latest_readings() and get_active_alerts() from the database module and pass the results to the index template instead of the hardcoded lists. The prepare_readings() function and alerts.py logic should still work — only the data source changes. Test by running the full system with sensors publishing and confirm real readings appear on the dashboard. Commit with message [DASHBOARD] Connect dashboard to live database.

@ezehf2 ezehf2 self-assigned this Apr 5, 2026
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant