Skip to content

create sensor details page #24

@intui

Description

@intui

Revised Sensor Details Page Plan

  1. Header Section
  • Sensor identification: Name, Device ID, Status badge (online/offline)
  • Quick actions: Edit sensor, View location, Export data buttons
  • Latest reading: Current value with timestamp and status indicator
  1. Overview Cards (4-column grid)
  • Sensor Information: Type, unit, manufacturer, model, firmware/hardware versions
  • Location Details: Full location hierarchy, address, coordinates (if available)
  • Status & Health: Online status, last seen, calibration date, sampling interval
  • Data Statistics: Total readings, first/last reading dates, data range duration
  1. Statistical Analysis Panel
  • Descriptive Statistics (for selected time range):
    • Central tendency: Mean, median, mode
    • Dispersion: Standard deviation, variance, range (max - min)
    • Distribution: Min, max, quartiles (Q1, Q2/median, Q3)
    • Percentiles: 5th, 25th, 75th, 95th percentiles
  • Data Quality Metrics:
    • Reading frequency: Average time between readings vs expected sampling interval
    • Data completeness: % of expected readings received
    • Gap analysis: Longest gap in data, number of gaps > threshold
    • Outlier detection: Values beyond 2σ or 3σ from mean
  • Trend Indicators:
    • Moving averages: 1-hour, 24-hour, 7-day
    • Trend direction: Increasing/decreasing/stable over period
    • Rate of change: Average change per hour/day
    • Volatility: Coefficient of variation
  1. Time-Series Visualization
  • Interactive chart (using Chart.js):
    • Default: Last 24 hours of readings
    • Time range selector: 1h, 6h, 24h, 7d, 30d, custom range
    • Min/max threshold lines (from SensorType validation)
    • Overlay options: Moving averages, standard deviation bands
    • Zoom and pan capabilities
  • Histogram: Distribution of values over selected period
  • Heatmap option: Time-of-day patterns for longer ranges
  1. Calibration & Configuration
  • Calibration info: Offset, scale, last calibration date, drift analysis
  • Sampling settings: Current interval, editable configuration
  • Device metadata: JSON viewer for additional metadata
  1. Additional Features
  • Data export: CSV/JSON download for selected date range with statistics
  • Comparison mode: Compare with other sensors of same type
  • Maintenance log: Calibration history, hardware changes
  • Related sensors: Other sensors at same location

Metadata

Metadata

Assignees

Labels

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions