A voice and chat weather assistant built for Android. It uses cloud AI when you have a connection, and runs small Qwen 2.5 models directly on your phone when you don't.
You can download Alibaba's Qwen 2.5 models (1.5B or 3B) straight onto your Android phone. Once downloaded, you get full AI answers out in the fields with zero internet or phone signal.
Most apps spin out and crash when cell towers drop in bad weather. WeatherGPT automatically steps down through 4 backup options so you always get clear advice.
Instead of vague forecasts, it uses real soil moisture at three depths, wind speed, and daily evaporation. It checks 29 verified guides before answering so it never makes things up.
Reference Code: 26068
Languages: English + 7 Indian Regional Languages
Offline Support: 100% On-Device (Zero internet needed)
Mobile AI Models: Qwen 2.5 1.5B & 3B (GGUF 4-Bit)
Speed: ~800ms Cloud / ~10ms Local Rule
Most weather apps are designed like advertising pages. They need a fast internet connection to load heavy banners and show generic temperatures. When a heavy storm hits, cell towers get congested or lose electricity, and those apps become useless.
I built WeatherGPT with a different priority: reliable, practical advice that works anywhere. A farmer out in a remote village shouldn't be left guessing if a sudden storm is coming. By letting the app download and run small language models (Qwen 2.5) right on the phone, users can get full weather guidance with zero cellular signal.
| MEASUREMENT | RANGE / DEPTH | DATA SOURCE | PRACTICAL USE |
|---|---|---|---|
| Soil Moisture | 0–1cm, 1–9cm, 9–27cm | Open-Meteo Land Model | Tells you if the ground is safe for heavy tractors or needs water |
| Water Evaporation (ET₀) | mm of water lost per day | FAO-56 Formula | Helps farmers know how much water crops actually lose each day |
| Storm Energy (CAPE) | 0 to 4500 J/kg | Forecast Models & Radar | Warns about sudden thunderstorms, hail, and high winds |
| Runway Visibility (RVR) | 50m to 2000m | Airport METAR Feeds | Checks safe landing conditions and heavy road fog |
| Dew Point Distance | Temperature vs Dew Point | Local Weather Sensors | Warns early about morning fog and fungal plant diseases |
The project is split into four clean parts: Android client, cloud backend, verified knowledge base, and the local on-device engine.
The primary mobile app installed on users' phones. Built with 48 clean Kotlin files. It includes 6 custom math screen shaders, on-device voice recognition for 7 Indian regional languages, local database caching, and a background model downloader to run AI models on the phone.
The cloud server running on Render. When your phone has internet, this backend streams AI answers word-by-word using Google Gemini 3.6 Flash. It pulls live forecasts from Open-Meteo, searches knowledge vectors in Qdrant, and prevents server abuse with request signatures.
A verified collection of 29 expert documents. Contains official government farming advisories, crop calendars, cyclone danger scales, and airport safety manuals so the AI sticks to proven guidelines instead of hallucinating.
The offline engine setup. It handles running small models directly on mobile devices (Qwen 2.5 1.5B and 3B in 4-bit GGUF format) as well as developer PC testing over USB and Wi-Fi. It allows testing prompts, measuring token speeds, and running the whole system without cloud keys or internet.
How WeatherGPT runs Qwen 2.5 (1.5B and 3B models) directly on your Android phone with zero internet connection.
When you are out in remote farmlands or in disaster areas where cell towers are down, you can still ask full weather questions. The model runs locally on the phone's processor without sending any data over the internet.
We chose Alibaba's Qwen 2.5 models compressed to 4-bit GGUF format:
You don't need a computer to transfer files. The Android app includes an in-app download manager (ModelDownloadManager.kt). You connect to Wi-Fi once, tap download, and the model is stored securely in the app's private storage forever.
| MODEL | PARAMETERS | FILE SIZE | RAM NEEDED | RUNS ON | BEST FOR |
|---|---|---|---|---|---|
| Qwen 2.5 1.5B | 1.54 Billion | ~1.0 GB | ~1.1 GB | Android Mobile Phones | Budget phones (3-4GB RAM), fast answers, low battery use |
| Qwen 2.5 3B | 3.09 Billion | ~2.1 GB | ~2.2 GB | Android Mobile Phones | Mid-range phones (6-8GB RAM), complex farming & storm advice |
| Qwen 2.5 7B | 7.61 Billion | ~4.7 GB | ~6.0 GB | PC Testbed (USB/Wi-Fi Pair) | Developer benchmarking, prompt testing, laptop pairing |
WeatherGPT_Local via USB (using ADB port forwarding) or local Wi-Fi. This allows running bigger models on your laptop while controlling everything through the Android touch interface.When you ask a question, the app does not just hope for a good internet connection. If the mobile network is slow or cuts out completely, WeatherGPT automatically switches through 4 backup options so you always get an answer.
[ USER ASKS A QUESTION OR SPEAKS ]
│
▼
[ ANDROID INFERENCE ROUTER CHECKS CONNECTION ]
│
├─► LEVEL 01: CLOUD SERVER (FastAPI + Render)
│ • Uses Google Gemini 3.6 Flash + Qdrant Knowledge Base
│ • Response speed: ~800 milliseconds
│ • [ IF SERVER TAKES TOO LONG OR TIMES OUT ] ──────────────┐
│ │
├─► LEVEL 02: DIRECT GOOGLE GEMINI CONNECTION │
│ • Connects straight from phone to Google AI Studio ▼
│ • No server in the middle │
│ • Response speed: ~600 milliseconds │
│ • [ IF GOOGLE FREE TIER LIMIT IS REACHED ] ───────────────┤
│ │
├─► LEVEL 03: OPENROUTER CLOUD BACKUP │
│ • Automatically switches to secondary cloud models ▼
│ • Response speed: ~700 milliseconds │
│ • [ IF MOBILE INTERNET IS COMPLETELY GONE ] ──────────────┤
│ │
└─► LEVEL 04: ON-DEVICE LOCAL AI (Qwen 2.5 ON YOUR PHONE) ▼
• Runs 100% inside your Android phone (Zero cell signal)
• Reads saved weather readings from phone memory
• Response speed: Under 10 milliseconds (or local model streaming)
• Result: You ALWAYS get a helpful, accurate answer.Full cloud server + live radar
Direct to Google Gemini
Secondary cloud backup
Runs directly on your phone
Drawn in real time with math equations on the phone GPU at 60 to 120 FPS. No heavy video files, GIFs, or battery drain.
Draws 50 drifting dots with fine connecting lines representing weather stations. They move away smoothly when you touch the screen.
The central visual element for voice conversations. Expands, contracts, and breathes smoothly while you talk to the AI.
A moving wave that bounces with microphone sound, giving instant visual confirmation that your phone hears you clearly.
A soft border of light along the edges of the phone screen that glows during voice chats without covering up any text.
Gently adjusts background warmth depending on the actual outdoor temperature and time of day.
Crisp card borders designed for pure black screens so text is easy to read outside in direct sunlight.
Stored as searchable vectors so the AI checks official rules before answering, preventing false statements.
Crop planting calendars, watering needs, and pest spray safety.
Official airport weather codes and flight safety regulations.
Emergency rescue steps and storm classification rules.
Solar power sunlight forecasting and wind turbine safety.
Commute timing, air quality, and electric vehicle battery life.
Wave heights, storm surges, and fishing boat safety.
All backend requests use HMAC-SHA256 signatures with 60-second expiration timestamps to prevent automated scrapers.
HEADERS:
X-Signature: <HMAC_SHA256_HASH>
X-Timestamp: 1727618400
BODY:
{
"message": "Can I spray my paddy crop today?",
"session_id": "sess_8f3d1a9e",
"mode": "chat", // "chat" or "voice"
"detail_level": "detail", // "standard" or "detail"
"language": "hi", // Hindi, Marathi, etc.
"sector": "farmer",
"location": {
"latitude": 28.6139,
"longitude": 77.2090,
"city": "New Delhi"
}
}data: {"token": "आज ", "done": false}
data: {"token": "हवा ", "done": false}
data: {"token": "की ", "done": false}
data: {"token": "गति ", "done": false}
data: {"token": "18 किमी/घंटा है, छिड़काव न करें।", "done": false}
data: {"done": true, "tokens_used": 42}{
"status": "success",
"telemetry": {
"temperature": 31.4,
"humidity": 68,
"dew_point": 24.8,
"wind_speed": 14.8,
"soil_moisture": 0.32,
"daily_evaporation_et0": 4.85,
"storm_cape_energy": 1850.0,
"visibility_meters": 4200
},
"cached": true
}