{"id":25365629,"url":"https://github.com/brendanddev/bash-weather-app","last_synced_at":"2025-04-09T05:17:54.109Z","repository":{"id":264677274,"uuid":"894064231","full_name":"brendanddev/Bash-Weather-App","owner":"brendanddev","description":"The purpose of this Bash script is to retrieve the current weather data and display it for the current location's weather using the OpenWeatherMap API. The script fetches the user's location based on their IP address via the ipinfo API, and then retrieves weather information like temperature and condition.","archived":false,"fork":false,"pushed_at":"2024-11-25T17:38:03.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T23:41:44.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/brendanddev.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}},"created_at":"2024-11-25T17:28:18.000Z","updated_at":"2024-11-25T17:38:53.000Z","dependencies_parsed_at":"2024-11-25T18:42:19.116Z","dependency_job_id":null,"html_url":"https://github.com/brendanddev/Bash-Weather-App","commit_stats":null,"previous_names":["brendanddev/bash-weather-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2FBash-Weather-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2FBash-Weather-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2FBash-Weather-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanddev%2FBash-Weather-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brendanddev","download_url":"https://codeload.github.com/brendanddev/Bash-Weather-App/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980849,"owners_count":21027809,"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":[],"created_at":"2025-02-14T23:41:46.948Z","updated_at":"2025-04-09T05:17:54.082Z","avatar_url":"https://github.com/brendanddev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash-Weather-App\n\n## Author: Brendan Dileo\n### Version: v0.1\n\n## Description\n\nThe purpose of this Bash script is to retrieve the current weather data and display it for the current location's weather using the OpenWeatherMap API. The script fetches the user's location based on their IP address via the [ipinfo API](https://ipinfo.io), and then retrieves weather information like temperature and condition.\n\n## Features\n\n- Retrieves weather data based on your current location (using IP address).\n- Displays weather information with corresponding icons for conditions (sunny, rainy, snowy, etc.).\n- Uses OpenWeatherMap API for weather data.\n- Provides temperature in Celsius with appropriate icons for temperature range.\n\n## Prerequisites\n\n- **Bash**: Make sure you have a working Bash shell (Linux/macOS should work out of the box).\n- **jq**: A lightweight and flexible command-line JSON processor. Install it with:\n\n  ```bash\n  sudo apt-get install jq  # For Ubuntu/Debian\n  brew install jq          # For macOS with Homebrew\n  # Setup\n\n1. Clone this repository to your local machine:\n\n    ```bash\n    git clone https://github.com/yourusername/Bash-Weather-App.git\n    cd Bash-Weather-App\n    ```\n\n2. Open the script `weather.sh` and replace the placeholder `enter_openweathermap_api_key` with your actual OpenWeatherMap API key:\n\n    ```bash\n    API_KEY=\"your_openweathermap_api_key\" # Replace with your own API key\n    ```\n\n## Usage\n\n1. Make the script executable:\n\n    ```bash\n    chmod +x weather.sh\n    ```\n\n2. Run the script:\n\n    ```bash\n    ./weather.sh\n    ```\n\nThe script will fetch the weather for your current location using your IP address and display the current temperature and weather conditions, including icons.\n\n## Example Output\n\nHere is an example of the output you can expect when running the script:\n\n```bash\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nWeather Script - Version 0.1\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nWeather for London 🏙️\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nTemperature: 12 °C 🌤️\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nCondition: clear sky ☀️\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n```\n![Weather Checker](exWeather.png)\n\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanddev%2Fbash-weather-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrendanddev%2Fbash-weather-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanddev%2Fbash-weather-app/lists"}