How roddavinod99/weather-tweet-bot-usa works
Hyderabad Weather Bot is a scheduled weather-to-social-post application. An external scheduler calls its Flask task endpoint; the task selects a city, retrieves weather information, prepares post content and media, then uploads and publishes through Twitter. The README documents forecast summaries, dynamic hashtags, character-limit handling, accessible alt text, and a safe test mode. The implementation is concentrated in app.py. The excerpts show selected fetch, formatting, media, and posting logic, but omit the route and some orchestration; the README supports those workflow links. The README’s Hyderabad description differs from the sampled code’s scheduled-city mapping.
Main entry points: app.py Scheduled Task
Components 15
Task Runtime
- Task Endpoint
app.py - Scheduled Task
app.py - Test Mode
app.py
Weather Data
- Weather Fetching
app.py - Air Quality Fetch
app.py
Post Preparation
- Weather Summary
app.py - Hashtag Generation
app.py - Tweet Text
app.py - Accessible Alt Text
app.py - Weather Image
app.py
Twitter Publishing
- Tweet Publishing
app.py
Other components
- External Scheduler
- OpenWeatherMap
- Twitter API v1.1
- Twitter API v2
Connections 17
- External Scheduler → Task Endpoint: triggers
README.md - Task Endpoint → Scheduled Task: invokes
README.md - Scheduled Task → Test Mode: checks
app.py - Scheduled Task → Weather Fetching: fetches
README.md - Weather Fetching → OpenWeatherMap: requests data
app.py - Scheduled Task → Air Quality Fetch: fetches
app.py - Air Quality Fetch → OpenWeatherMap: requests data
app.py - Scheduled Task → Weather Summary: generates
README.md - Scheduled Task → Hashtag Generation: generates
README.md - Scheduled Task → Tweet Text: composes
README.md - Scheduled Task → Accessible Alt Text: generates
README.md - Scheduled Task → Weather Image: generates
README.md - Scheduled Task → Twitter API v1.1: uploads image
app.py - Scheduled Task → Twitter API v2: posts tweet
app.py - Twitter API v1.1 → Tweet Publishing: provides media
README.md - Twitter API v2 → Tweet Publishing: publishes
README.md - Weather Image → Accessible Alt Text: described by
README.md