You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create database.py in the database/ folder. Must include the following functions: insert_reading(sensor_id, value, unit, timestamp) to insert a new sensor reading, insert_alert(room_id, sensor_type, value, threshold, timestamp) to insert a new alert, get_latest_readings() to return the most recent reading for each room and sensor type, and get_active_alerts() to return all unresolved alerts. All functions must use the schema defined in schema.sql. Test each function locally before committing. Commit with message [DATABASE] Add insert and query functions and reference this issue.
The text was updated successfully, but these errors were encountered:
Create database.py in the database/ folder. Must include the following functions: insert_reading(sensor_id, value, unit, timestamp) to insert a new sensor reading, insert_alert(room_id, sensor_type, value, threshold, timestamp) to insert a new alert, get_latest_readings() to return the most recent reading for each room and sensor type, and get_active_alerts() to return all unresolved alerts. All functions must use the schema defined in schema.sql. Test each function locally before committing. Commit with message [DATABASE] Add insert and query functions and reference this issue.
The text was updated successfully, but these errors were encountered: