VictorKwong / DataSense-PRJ666-team-5

https://prj666deploy-9xd1.vercel.app
MIT License
0 stars 0 forks source link

Use Case 24: Backend Functionality for Monitoring Sensor Data Against Thresholds #24

Closed ktageja closed 1 week ago

ktageja commented 4 weeks ago

Set Up User Interface for Alert Configuration

User Story

As a backend developer, I want to implement a system that continuously monitors sensor data against user-defined thresholds so that alerts are triggered when conditions are met.

Description

This use case involves developing backend functionality that continuously compares incoming sensor data with user-defined thresholds. When the data exceeds thresholds, alerts are triggered, and the user is notified.

Acceptance Criteria

Testing

Normal Flow of Events

Sensor data is received from the Raspberry Pi. Backend compares the data to each user’s thresholds. If data exceeds thresholds, the backend triggers an alert and logs the event.

S-1: Missing or corrupted sensor data

Sensor data is received from the Raspberry Pi. Backend compares the data to each user’s thresholds. If data exceeds thresholds, the backend triggers an alert and logs the event.

VictorKwong commented 1 week ago

Create an /alert page. The alert page will scan through the .csv file to check for threshold levels.

If the threshold is exceeded, it will send a notification to the user.

https://prj666deploy-9xd1.vercel.app/alert