Inspiration
Agriculture is a crucial livelihood for millions of farmers who often face devastating losses due to sudden and unpredictable weather events such as hailstorms, heavy rain, and strong winds. Traditional weather services typically provide raw forecasts but lack localized, actionable advice—especially in native languages. We were motivated to build a practical system that empowers farmers with timely, actionable voice alerts in Hindi and English to protect their crops effectively.
What it does
Last-Minute Weather Shield fetches real-time weather data using the OpenWeatherMap API, detects risky conditions (hail, high winds, heavy rain) based on defined thresholds, and generates simple, actionable advice. The system converts this advice into voice alerts using Google Text-to-Speech (gTTS), delivering guidance that farmers can easily understand and act on to mitigate crop damage.
How we built it
We developed the solution using Python and Flask for quick backend API implementation. Key steps included integrating OpenWeatherMap for weather data, coding a risk detection module using thresholds, mapping risks to bilingual advice messages, and integrating gTTS for voice alert generation. A minimal frontend interface allows users to input a city, view advice, and listen to voice alerts, ensuring accessibility and ease of use.
Challenges we ran into
We encountered obstacles such as managing API keys securely and debugging 401 unauthorized errors. Detecting hail risk was complicated by limited direct data from the API, requiring heuristic checks on weather conditions. Integrating Hindi text with gTTS required attention to language handling to ensure accurate and natural-sounding alerts. Time constraints necessitated prioritizing core functionalities and iterative testing.
Accomplishments that we're proud of
We successfully built an end-to-end system that not only predicts weather risks but also provides tailored, spoken advice in Hindi and English, a unique feature compared to typical weather apps. The voice alert integration enhances accessibility, particularly for farmers with limited literacy. Our solution combines real-time data processing, risk analytics, and audio technology in a concise, user-friendly package.
What we learned
This project enhanced our skills in API integration, modular backend design, natural language processing with TTS, and responsive frontend development. Importantly, it deepened our understanding of creating socially impactful technology solutions tailored to user needs, especially in rural and low-literacy contexts.
What's next for Last-Minute Weather Shield
Future plans include refining risk detection by incorporating probabilistic models, expanding language support, adding more granular location targeting, and deploying the app on scalable cloud platforms for wider accessibility. We also aim to develop mobile notifications and expand partnerships with agricultural extension services to maximize social impact.
Log in or sign up for Devpost to join the conversation.