This project is a Real-Time Data Processing System for monitoring weather conditions across major metros in India. It retrieves weather data from the OpenWeatherMap API every 5 minutes, displaying the latest temperature, feels-like temperature, and a line chart showcasing the 10 most recent temperature updates.
- Real-Time Data Fetching: Automatically fetches weather data every 5 minutes.
- Latest Weather Information: Displays the latest temperature and feels-like temperature.
- Temperature History Visualization: Line chart showing the last 10 temperature updates for each city.
- Support for Multiple Cities: Monitors weather for major metros in India including Delhi, Mumbai, Chennai, Bangalore, Kolkata, and Hyderabad.
- Frontend: React, Chart.js
- Backend: Node.js, Express, Axios
- Data Source: OpenWeatherMap API
- Node.js (v14 or higher)
- npm (Node package manager)
- OpenWeatherMap API key (Sign up at OpenWeatherMap)
-
Clone the repository:
git clone <https://github.com/Hamza1821/weather-monitoring.git> cd weather-monitoring
-
Install dependencies for the backend:
cd api npm install
-
Install dependencies for the frontend:
cd ../ui npm install
-
Start the Backend:
cd api npm run dev
The backend server will run at http://localhost:3000.
-
Start the Frontend:
cd ui npm run dev
The frontend application will run at http://localhost:5173.