Skip to content

TimB0710/IoTProjectFrontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Dashboard with Chart.js

This project is a real-time dashboard that visualizes live data (via WebSocket) and historical data (via REST API) using Chart.js.

Features

  • Live Data: Dynamically updates charts as data is received over WebSocket.
  • Historical Data: Fetches and displays past data based on a selected date.
  • Dark Mode: Toggle between light and dark themes for better visibility.
  • Responsive Design: The dashboard adapts to different screen sizes for an optimized experience on mobile and desktop.

Data Structure (needs refactoring..)

Live Data

{
  "topic": "sensor_id",
  "value": 42.5
}

Historical Data

[
  {
    "topic": "sensor_id",
    "timestamps": [
      "10:00",
      "10:01",
      "10:02"
    ],
    "values": [
      42.1,
      42.3,
      42.5
    ]
  }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published