SARAHAI-IOT
Utility IoT Sensor Analytics

. Introduction
SARAHAI-Uv1.4 is a single-file Python application for real-time sensor data ingestion, anomaly detection, and visualization. The utility:
• Receives data from MQTT topics (temperature, water levels, etc.).
• Stores data in a local SQLite database.
• Performs Pattern-of-Life (PoL) anomaly detection using Kernel Density Estimation (KDE).
• Displays sensor data, anomalies, and historical trends in a PyQt5 GUI.
• Encrypts logs with AES-GCM.
1. Historical Trend Analysis: A date-range selector to filter and plot historical data (e.g., last hour, 24 hours, 7 days, etc.).
2. Anomaly Highlighting: Anomalies appear as red ‘x’ on the chart and are flagged with a red highlight in the table.
3. Extended “Recent” Window: Now 1 hour by default, for the PoL anomaly detection.
4. Demo Grafana Integration: A button in the UI opens a local Grafana dashboard URL (if you have Grafana running).