WeatherGPT
AI-Powered Weather Intelligence Platform
Created on 10th October 2026
•
WeatherGPT
AI-Powered Weather Intelligence Platform
The problem WeatherGPT solves
The problem it solves
Weather and disaster information in India is scattered, technical, and mostly one-way. Forecasts sit across IMD portals, bulletins, satellite products, and separate apps for lightning, farming, and alerts. Most of it is built around dashboards and English or Hindi text. The people who most need a warning, such as farmers, fisherfolk, and rural families, are often the least able to dig it out. By the time they find it, it may be too late to act.
WeatherGPT turns all of that into one conversation. You ask in your own language, by text or voice, and it answers from official data. It also warns you before you think to ask.
What people can use it for
- Everyday questions: "Will it rain in Bhilai this evening?" or "Is tomorrow safe for travel?" You get a plain-language answer instead of a table of numbers.
- Farming decisions: when to irrigate, spray, or harvest, based on rainfall, wind, and temperature forecasts for your location.
- Disaster early warning: heavy rain, floods, cyclones, thunderstorms, heatwaves, dense fog, strong winds, and coastal or marine hazards. Alerts are pushed by app, WhatsApp, SMS, or voice call.
- Marine and aviation briefings: sea and coastal bulletins and wind conditions, without reading raw bulletins.
- Earthquake and tsunami alerts: instant notification once an event is detected. We detect and alert, we never claim to predict.
- Climate and history lookups: past rainfall and temperature trends for researchers, planners, and curious users.
How it makes things easier and safer
| Before | With WeatherGPT |
|---|---|
| Visit several portals and apps to piece together a forecast | Ask one question and get one answer |
| Information mostly in English or Hindi | Speak or type in your own Indian language |
| Need to read and interpret charts and codes | Get plain-language advice on what to do |
| You have to check for danger | The system watches official feeds and alerts you first |
| Warnings reach only people with smartphones and data | Voice calls and SMS reach basic phones and low connectivity |
| AI chatbots can invent numbers | Every figure comes from a live official source, and if there's no data it says so |
Why you can trust it
- Zero-hallucination design: the AI only rephrases data it just retrieved from sources like IMD, NCMRWF, and satellite and alert feeds. It never guesses weather values.
- Grounded in official infrastructure: we don't replace IMD's science. We make it reachable for everyone.
- Built for the last mile: voice-first, multilingual, and multi-channel, so the warning gets to the person who needs it.
In one line: WeatherGPT makes weather and disaster information as easy to get as asking a question, and it speaks up first when something dangerous is coming.
Challenges we ran into
1. Follow-Up Questions That Break Most Chatbots
The problem: When a user asks "What was the rainfall in Bhilai on 10th September?" and then follows up with "What about the next day?" — a naive system sends that literally to the LLM, which has no memory of the previous date. It either guesses, asks the user to repeat themselves, or worse, silently fetches today's data.
The deeper problem: "The next day" relative to a historical date should stay historical. But "What about tomorrow?" in that same conversation should switch to a forecast. These are subtly different intents that require tracking not just what date was discussed, but which mode (historical vs. forecast) it was in.
How we solved it: We built a dedicated Context Engine (server/services/contextEngine.js) that maintains structured state across every turn — tracking last_resolved_date, data_mode, intent, last_location, and last_successful_tool. Follow-up phrases are resolved against this state using a pattern matcher before the LLM ever sees the message. If the date can't be resolved (e.g., "the next day" with no prior context), the engine requests clarification rather than guessing.
We then wrote a 47-test regression suite (tests/test_followup_resolution.js) that covers: next/previous day, N days offset, same date last year, intent switching (historical → forecast and back), location preservation from pronouns like "there", and clarification triggering. All 47 pass.
2. IMD API — Unreachable in Development, Essential in Production
The problem: India's IMD API (api.imd.gov.in) requires a government-issued API key and frequently returns 401 Unauthorized or times out during development. But district-level warnings are a core feature — we couldn't just show a blank panel.
How we solved it: We built a two-layer fallback in server/app.js. When the upstream IMD call fails (any non-200 or network timeout), the server:
- Falls back to a deterministic district warning generator that reads
public/india_districts.json(all ~700+ Indian districts) and computes a realistic severity distribution using a hash of the district index and today's date — so results are stable within a day but change naturally over time - For cyclone endpoints, returns an empty GeoJSON FeatureCollection with an informational message rather than a 503 error
The frontend never knows the difference — it receives the same envelope format either way.
3. District GeoJSON — 40 MB Third-Party API vs. Local Bundle
The problem: The interactive weather map needs India district boundaries to render the hazard warning overlay. The ISRO Bhuvan API provides this — but it requires a separate API key, has rate limits, and is slow (~2–3 seconds). During demos, a slow or failed map overlay kills the experience.
How we solved it: We bundled a pre-processed india_districts.json directly in public/. The client-side apiClients.js tries Bhuvan first; if the response is missing or the call fails, it falls back instantly to the local file served by Vite/Vercel's static CDN. The server-side IMD fallback also reads this same file to generate district warning data. One asset, two fallback paths.
Tracks Applied (1)
Gemini API
Major League Hacking
Technologies used
