Skip to content

AbdurRohit/Weather-Ds

Repository files navigation

Weather Analysis Dashboard

Next.js TypeScript Tailwind CSS

A real-time weather analysis dashboard that allows users to draw polygons on a map and visualize temperature data. Features include temperature-based color coding, timeline controls, and dynamic data updates.

🌐 Live Demo

Features

  • 🗺️ Interactive map with polygon drawing tools
  • 🌡️ Real-time temperature data visualization
  • 📊 Color-coded regions based on temperature rules
  • ⏲️ Timeline controls for historical data
  • 📱 Responsive design for all devices

Screenshots

Dashboard Overview Dashboard Overview Weather Analysis Color controls

Technology Stack

  • Framework: Next.js 13.4 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS
  • Map: Leaflet/react-leaflet
  • Weather Data: Open-Meteo API
  • State Management: Custom store implementation
  • UI Components: Radix UI primitives
  • Date Handling: Custom date utilities

Getting Started

Prerequisites

  • Node.js 16.8 or later
  • npm or yarn package manager

Installation

  1. Clone the repository
git clone https://github.com/AbdurRohit/Weather-Ds.git
cd Weather-Ds
  1. Install dependencies
npm install
# or
yarn install
  1. Start the development server
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 with your browser

Project Structure

src/
  ├── app/           # Next.js app router pages
  ├── components/    # React components
  │   ├── ui/       # Shared UI components
  │   └── ...       # Feature components
  ├── lib/          # Utility functions and stores
  └── styles/       # Global styles

Key Features Explained

Map Interaction

  • Draw polygons to define areas of interest
  • Real-time temperature data fetching for drawn regions
  • Color-coded visualization based on temperature rules

Temperature Analysis

  • Define custom color rules for temperature ranges
  • Real-time updates as timeline changes
  • Historical data analysis capabilities

Timeline Controls

  • Select specific points in time
  • Range selection for historical analysis
  • Automatic data updates on time change

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgments

  • Open-Meteo for providing weather data API
  • Leaflet for the interactive mapping capabilities
  • Radix UI for accessible UI primitives

About

Scan weather using polygons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors