{"id":28210644,"url":"https://github.com/10daviesb/weather-app","last_synced_at":"2025-06-11T00:32:33.336Z","repository":{"id":290611070,"uuid":"974990878","full_name":"10daviesb/Weather-App","owner":"10daviesb","description":"A modern Python desktop weather app with live city selection, flag emojis, and a stylish Tkinter GUI. Built with OpenWeatherMap API.","archived":false,"fork":false,"pushed_at":"2025-04-30T15:15:24.000Z","size":4178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T17:11:14.501Z","etag":null,"topics":["api-integration","desktop-application","gui","openweathermap","portfolio-project","python","tkinter","weather-app"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/10daviesb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-29T15:58:11.000Z","updated_at":"2025-04-30T15:15:29.000Z","dependencies_parsed_at":"2025-04-29T18:41:51.423Z","dependency_job_id":null,"html_url":"https://github.com/10daviesb/Weather-App","commit_stats":null,"previous_names":["10daviesb/weather-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10daviesb%2FWeather-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10daviesb%2FWeather-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10daviesb%2FWeather-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10daviesb%2FWeather-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10daviesb","download_url":"https://codeload.github.com/10daviesb/Weather-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10daviesb%2FWeather-App/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259175546,"owners_count":22817014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-integration","desktop-application","gui","openweathermap","portfolio-project","python","tkinter","weather-app"],"created_at":"2025-05-17T17:10:22.907Z","updated_at":"2025-06-11T00:32:33.321Z","avatar_url":"https://github.com/10daviesb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌦️ Weather App (Python + Tkinter)\n\n![Python](https://img.shields.io/badge/Python-3.8%2B-blue?logo=python\u0026logoColor=white)\n![License](https://img.shields.io/badge/License-MIT-green)\n![Status](https://img.shields.io/badge/Status-Active-green)\n![Last Commit](https://img.shields.io/github/last-commit/10daviesb/Weather-App)\n\nA beautiful, lightweight desktop app that shows the current weather for any city worldwide.  \nBuilt with Python, Tkinter GUI, and OpenWeatherMap API.\n\n---\n\n## ✨ Features\n\n- 🌎 Select a country (with flag emojis!)\n- 🏙️ Select or type a city (auto-suggests cities for the chosen country)\n- ☁️ Displays:\n  - Temperature\n  - Feels like\n  - Weather description (with emojis)\n  - Humidity\n  - Wind Speed\n- 🔄 Refresh button with a **10-minute cooldown** and live countdown timer\n- 🔧 Settings menu to **toggle temperature units** and **dark mode**\n- ⚡ Loads the OpenWeatherMap city list dynamically at startup\n- 🛡️ API key hidden using `.env` file for security\n- 🌐 **Offline Mode**: Cache the last successful weather fetch for offline viewing\n- 🗂️ **Search History**: Quickly access recently viewed cities\n- 🌐 **Multi-language Support**: Switch between English and Dutch dynamically\n\n---\n\n## 🛠️ Architecture\n\nThe project is organized as follows:\n```\nweather_app/              # Project root\n├── city.list.json        # Bulk city data for auto-suggestions\n├── weather_app.py        # Main application script (GUI + logic)\n├── .env                  # Stores your OpenWeatherMap API key\n├── weather_cache.json    # Cached weather data for offline mode\n├── settings.json         # User preferences (default city, units, theme)\n└── requirements.txt      # Python dependencies\n```\n\n### Key Components\n\n- **`weather_app.py`**: Contains modular functions for data loading, API interaction, UI rendering, and state management.\n- **`city.list.json`**: Dynamically loaded at runtime to populate country and city selectors.\n- **`.env`**: Secures your API key via the `python-dotenv` package.\n\n---\n\n## 💻 Tech Stack\n\n- **Language:** Python 3.8+\n- **GUI Framework:** Tkinter\n- **HTTP Client:** `requests`\n- **Environment Management:** `python-dotenv`\n- **Image Handling:** `Pillow`\n- **Data Sources:** OpenWeatherMap API\n\n---\n\n## 🚀 Getting Started\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/your-username/weather-app.git\ncd weather-app\n```\n\n### 2. Install requirements\n\n```bash\npip install -r requirements.txt\n```\n\n### 3. Setup your `.env`\n\nCreate a `.env` file in the project root:\n\n```plaintext\nAPI_KEY=your_openweathermap_api_key_here\n```\n\n(You can get a free API key at [OpenWeatherMap](https://openweathermap.org/api))\n\n### 4. Make sure you have `city.list.json`\n\nDownload the `city.list.json` from OpenWeatherMap bulk data:  \n👉 [http://bulk.openweathermap.org/sample/](http://bulk.openweathermap.org/sample/)\n\nPlace it inside the project folder.\n\n---\n\n## 🖥️ Running the App\n\n```bash\npython weather_app_gui.py\n```\n\n---\n\n## 📦 Built With\n\n- [Python](https://www.python.org/)\n- [Tkinter](https://wiki.python.org/moin/TkInter)\n- [OpenWeatherMap API](https://openweathermap.org/api)\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License.  \nSee the [LICENSE](LICENSE) file for details.\n\n---\n\n## 📷 Screenshots\n\n*Soon™*\n\n---\n\n## 🙌 Credits\n\nBuilt by **Bradley Davies** ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10daviesb%2Fweather-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10daviesb%2Fweather-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10daviesb%2Fweather-app/lists"}