{"id":16319428,"url":"https://github.com/hima890/weatherinformation_bash","last_synced_at":"2026-04-25T12:35:02.960Z","repository":{"id":208642994,"uuid":"722078471","full_name":"hima890/weatherInformation_bash","owner":"hima890","description":"A simple Bash script that fetches and displays current weather information for a specified city using the WeatherAPI. The script checks for internet connectivity, sources configuration from a config.txt file, and provides details such as temperature, wind speed, humidity, and more. Optionally, it can be configured to run automatically on startup","archived":false,"fork":false,"pushed_at":"2023-11-22T14:24:20.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T01:03:13.092Z","etag":null,"topics":["bash-automation","bash-script","weather-api"],"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/hima890.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}},"created_at":"2023-11-22T11:45:06.000Z","updated_at":"2023-11-22T14:27:21.000Z","dependencies_parsed_at":"2023-12-07T09:47:27.836Z","dependency_job_id":null,"html_url":"https://github.com/hima890/weatherInformation_bash","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"0217ed1a6ab66167e231392f1b0f0acacc4c94e8"},"previous_names":["hima890/weatherinformation_bash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hima890/weatherInformation_bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FweatherInformation_bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FweatherInformation_bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FweatherInformation_bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FweatherInformation_bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hima890","download_url":"https://codeload.github.com/hima890/weatherInformation_bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FweatherInformation_bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32262801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: 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":["bash-automation","bash-script","weather-api"],"created_at":"2024-10-10T22:26:56.567Z","updated_at":"2026-04-25T12:35:02.941Z","avatar_url":"https://github.com/hima890.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Weather Image](image.jpg)\n\n# Weather Information Bash Script\n\nThis Bash script fetches current weather information using the [WeatherAPI](https://www.weatherapi.com/) and displays relevant details in the terminal.\n\n## Features\n\n- Fetches weather information for a specified city using the WeatherAPI.\n- Checks for internet connectivity before making the API request.\n- Displays current weather details, including temperature, wind speed, humidity, and more.\n- Can be run automatically on machine startup.\n\n## Getting Started\n\n### Prerequisites\n\n- Bash (Linux/Unix-like environment)\n- [jq](https://stedolan.github.io/jq/) - A lightweight and flexible command-line JSON processor.\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/hima890/weatherInformation_bash.git\n   ```\n\n2. Move into the project directory:\n\n   ```bash\n   cd weatherInformation_bash\n   ```\n\n3. Make the script executable:\n\n   ```bash\n   chmod +x main.sh\n   ```\n\n### Usage\n\n1. Configure your API key and city in the `config.txt` file:\n\n   ```bash\n   # Using Free api from \"https://www.weatherapi.com/\"\n\n   # Add the API key to get access to the data\n   API_KEY=\"\u003cWrite-your-key-here\u003e\"\n   # Set the option for air quality\n   API_OP=\"no\"\n   # Set the target city\n   City=\"\u003cWrite-your-city-here\u003e\"\n   ```\n\n2. Run the script:\n\n   ```bash\n   ./main.sh\n   ```\n\n   This will display the current weather information for the specified city.\n\n### Automating Script Execution on Startup\n\nTo run the script automatically every time you start your machine, follow the instructions in the [Autostart section](#autostart) below.\n\n## Autostart\n\nTo make the script run automatically on machine startup, add the following line to your shell configuration file (e.g., `~/.bashrc`, `~/.zshrc`, or equivalent):\n\n```bash\nexport PATH=\"$PATH:/path/to/weatherInformation_bash\"\n```\n\nReplace `/path/to/weatherInformation_bash` with the actual path to the project directory.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n```\n\nPlease note that you should replace placeholders such as `\u003cWrite-your-key-here\u003e` and `\u003cWrite-your-city-here\u003e` with actual values in your `config.txt` file. Additionally, modify the installation and usage instructions based on the specific requirements of your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhima890%2Fweatherinformation_bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhima890%2Fweatherinformation_bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhima890%2Fweatherinformation_bash/lists"}