{"id":28719916,"url":"https://github.com/gandalf-ddj/weather-cli-app","last_synced_at":"2026-04-28T01:32:40.396Z","repository":{"id":298940240,"uuid":"1001616969","full_name":"gandalf-ddj/weather-cli-app","owner":"gandalf-ddj","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-13T17:59:35.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-13T18:40:41.170Z","etag":null,"topics":["api","cli","file-io","json","openweathermap","project","protfolio","python","python3","terminal-app","weather"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gandalf-ddj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-13T17:34:41.000Z","updated_at":"2025-06-13T17:59:38.000Z","dependencies_parsed_at":"2025-06-13T18:42:49.208Z","dependency_job_id":"436ba8c8-c216-4304-bb60-ade39626e928","html_url":"https://github.com/gandalf-ddj/weather-cli-app","commit_stats":null,"previous_names":["gandalf-ddj/weather-cli-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gandalf-ddj/weather-cli-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gandalf-ddj%2Fweather-cli-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gandalf-ddj%2Fweather-cli-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gandalf-ddj%2Fweather-cli-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gandalf-ddj%2Fweather-cli-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gandalf-ddj","download_url":"https://codeload.github.com/gandalf-ddj/weather-cli-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gandalf-ddj%2Fweather-cli-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","cli","file-io","json","openweathermap","project","protfolio","python","python3","terminal-app","weather"],"created_at":"2025-06-15T06:06:08.040Z","updated_at":"2026-04-28T01:32:40.382Z","avatar_url":"https://github.com/gandalf-ddj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather CLI App ☀️🌧️\n\nA simple Python command-line application that fetches and displays real-time weather data using the OpenWeatherMap API. Users can search weather by city name or zip code, save and view favorite locations, reload their last search, and manage their saved locations.\n\n---\n\n## 🔧 Features\n\n- 🌆 Search weather by **City Name** or **Zip Code**\n- 📊 View **Temperature**, **Feels Like**, **Humidity**, and **Conditions**\n- ⭐ Save locations as **Favorites**\n- 📂 Reload the **Last Searched Location**\n- ❌ **Delete** favorite locations\n- 🧠 Smart error handling and data persistence using JSON and text files\n\n---\n\n## ▶️ How to Run\n\n1. **Clone the repository**  \n   ```bash\n   git clone https://github.com/your-username/weather-cli-app.git\n   cd weather-cli-app\n   ```\n\n2. **Set up your API key**  \n   - Open `config.py`\n   - Replace `None` with your OpenWeatherMap API key:  \n     ```python\n     def get_api_key():\n         return \"your_api_key_here\"\n     ```\n\n3. **(Optional) Set units**  \n   - Set `\"imperial\"` (°F) or `\"metric\"` (°C) in `get_units()`.\n\n4. **Run the application**  \n   ```bash\n   python main.py\n   ```\n\n---\n\n## 💾 Data Storage\n\n- **Favorites**: Stored in `favorites.json`  \n- **Last searched location**: Stored in `last_location.txt`\n\n---\n\n## 📦 Requirements\n\n- Python 3.7+\n- Internet connection\n- A valid [OpenWeatherMap](https://openweathermap.org/api) API key\n\n---\n\n## 📁 Project Structure\n\n```\nweather-cli-app/\n│\n├── main.py              # Main CLI loop\n├── weather.py           # API request logic\n├── config.py            # API key \u0026 units\n├── storage.py           # File I/O for saved locations\n├── favorites.json       # Favorite locations (auto-created)\n├── last_location.txt    # Last searched location (auto-created)\n└── README.md            # You're here!\n```\n\n---\n\n## 🧠 Future Improvements (Ideas)\n\n- Display additional weather metrics (wind, pressure)\n- Auto-refresh weather at intervals\n- Optional config file for customization\n- Cross-platform packaging as an executable\n\n---\n\n## 🧑‍💻 Author\n\nCreated by [Daniel Jarvis](https://github.com/gandalf-ddj)\n\n---\n\n## 🪪 License\n\nThis project is open-source and free to use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgandalf-ddj%2Fweather-cli-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgandalf-ddj%2Fweather-cli-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgandalf-ddj%2Fweather-cli-app/lists"}