Industry-Grade Weather Intelligence Platform for India
A professional, production-ready weather application featuring real-time weather data for all Indian states and districts, powered by GPT-3.5 AI insights, intelligent weather alerts, and a stunning glassmorphism UI.
π Live Demo | π GitHub Guide | π Report Bug
| Component | Status | Provider | Link |
|---|---|---|---|
| Frontend | π’ Live | Vercel | View Site |
| Backend | π’ Live | Railway | API Docs |
| CI/CD | π’ Passing | GitHub | Actions |
See GITHUB_GUIDE.md for full deployment instructions.
- Glassmorphism Design - Modern, translucent cards with backdrop blur
- Animated Dashboard - Smooth entrance animations and micro-interactions
- Real-time Clock - Live local time display for selected location
- Responsive Layout - Perfect on mobile, tablet, and desktop
- Professional Typography - Google Fonts (Outfit + Inter)
- Accessibility - WCAG 2.1 AA compliant
- Real-time Updates - Current temperature, feels-like, humidity, wind
- 12-Hour Forecast - Precipitation probability and temperature trends
- Wind Compass - Direction display with 16-point compass
- Cloud Cover - Sky condition monitoring
- Atmospheric Pressure - Weather stability indicators
- All Indian Locations - 36 states/UTs, 700+ districts
- Smart Caching - Faster repeated searches
- Heat Warnings - Extreme temperature alerts
- Cold Weather Advisories - Freezing condition warnings
- Wind Alerts - High wind speed notifications
- Rain Warnings - Heavy precipitation alerts
- Humidity Advisories - High humidity notifications
- Perfect Weather - Ideal condition indicators
- Natural Language - Ask any weather question naturally
- Smart Recommendations - Clothing, activities, safety tips
- Context-Aware - Uses current weather data for responses
- 60+ Keywords - Understands various phrasings
- Chat Interface - Full conversation history
- Dual Mode - Rule-based (default) + OpenAI GPT-3.5 (optional)
- Fast Performance - Optimized React with Vite
- Smart Caching - Geocoding cache for faster searches
- Error Handling - Graceful error messages
- Type Safety - Pydantic validation
- RESTful API - Well-documented FastAPI backend
- Production Ready - Optimized builds and deployment scripts
- CI/CD Pipeline - Automated testing with GitHub Actions
- Click the Deploy to Vercel button above β¬οΈ
- Deploy backend to Railway using the Railway button
- Add environment variable in Vercel:
VITE_API_URL= Your Railway backend URL
- Done! Your app is live π
See DEPLOYMENT.md for detailed instructions.
- Python 3.11+
- Node.js 18+
- npm or yarn
# Clone the repository
git clone https://github.com/HyperPenetrator/temp-io.git
cd temp-io
# Run setup script (Windows)
setup.bat
# Or manual setup:
# Backend
cd backend
python -m venv .venv
.venv\Scripts\activate # On Windows
# source .venv/bin/activate # On macOS/Linux
pip install -r requirements.txt
# Frontend
cd frontend
npm installOption 1: Using Scripts (Windows)
# Terminal 1 - Backend
start-backend.bat
# Terminal 2 - Frontend
start-frontend.batOption 2: Manual
# Terminal 1 - Backend
cd backend
.venv\Scripts\activate
uvicorn main:app --reload --port 8000
# Terminal 2 - Frontend
cd frontend
npm run devOpen http://localhost:5173 in your browser.
GET /api/health- Health checkGET /api/weather/current?lat={lat}&lon={lon}- Current weatherGET /api/weather/by-region?state={state}&district={district}- Weather by locationGET /api/weather/hourly?lat={lat}&lon={lon}&hours={hours}- Hourly forecast
POST /api/ai/query- Ask weather questions{ "query": "Will it rain today?", "lat": 28.6139, "lon": 77.2090 }
GET /api/geocode/suggest?state={state}&q={query}- Location suggestions
Interactive API Docs: http://localhost:8000/docs
For enhanced AI responses, add your OpenAI API key:
# backend/.env
OPENAI_API_KEY=sk-your-api-key-hereWithout this, the app uses intelligent rule-based responses (still very capable!).
- DEPLOYMENT.md - Complete deployment guide
- FEATURES.md - Full feature list and testing checklist
- QUICKSTART.md - Quick start guide
- AI_UPGRADE.md - AI assistant documentation
- OPENAI_SETUP.md - OpenAI integration guide
- CONTRIBUTING.md - Contribution guidelines
cd backend
.venv\Scripts\python.exe test_all.py- Search for "Nalbari, Assam"
- Ask AI: "Will it rain today?"
- Ask AI: "What should I wear?"
- Check weather alerts
- Verify responsive design (resize browser)
- Check local time updates
- React 19.2 - UI framework
- Vite - Build tool
- Framer Motion - Animations
- Lucide React - Icons
- Axios - HTTP client
- date-fns - Date formatting
- FastAPI - Web framework
- Uvicorn - ASGI server
- httpx - Async HTTP client
- Pydantic - Data validation
- OpenAI - AI integration (optional)
- Open-Meteo - Weather data (free, no API key)
- Nominatim - Geocoding fallback
- OpenAI GPT-3.5 - AI responses (optional)
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
- Open-Meteo - Free weather data API
- OpenStreetMap - Geocoding services
- Lucide - Beautiful icon library
- Framer Motion - Animation library
- OpenAI - GPT-3.5 AI model
- AI-powered assistant
- Weather alerts
- Glassmorphism UI
- One-click deployment
- 7-day forecast with charts
- Save favorite locations
- Dark/light mode toggle
- Unit conversion (Β°C/Β°F, km/h/mph)
- Weather maps (radar, satellite)
- Historical weather data
- Mobile app (React Native)
- Push notifications
- Weather widgets
Built with β€οΈ for India by HyperPenetrator
Website β’ Documentation β’ Report Bug β’ Request Feature
β Star this repo if you find it useful!