{"id":22412435,"url":"https://github.com/tusharpamnani/weather-forecast","last_synced_at":"2025-09-13T14:11:22.692Z","repository":{"id":215507607,"uuid":"739112487","full_name":"tusharpamnani/Weather-Forecast","owner":"tusharpamnani","description":"A simple CLI to fetch the current weather information of a particular city with its name and country code as a parameter","archived":false,"fork":false,"pushed_at":"2024-05-16T06:40:06.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T16:31:11.196Z","etag":null,"topics":["project"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/weather_forecast","language":"Rust","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/tusharpamnani.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":"2024-01-04T19:55:04.000Z","updated_at":"2024-05-16T06:40:09.000Z","dependencies_parsed_at":"2025-07-31T23:31:21.169Z","dependency_job_id":"791d75a9-d0ec-4b01-8215-b0221b0869be","html_url":"https://github.com/tusharpamnani/Weather-Forecast","commit_stats":null,"previous_names":["tusharpamnani/weather-forecast"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tusharpamnani/Weather-Forecast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FWeather-Forecast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FWeather-Forecast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FWeather-Forecast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FWeather-Forecast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tusharpamnani","download_url":"https://codeload.github.com/tusharpamnani/Weather-Forecast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FWeather-Forecast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274975618,"owners_count":25384281,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["project"],"created_at":"2024-12-05T14:08:49.190Z","updated_at":"2025-09-13T14:11:22.666Z","avatar_url":"https://github.com/tusharpamnani.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Forecast CLI\n\nThis is a simple command-line interface (CLI) application that fetches weather forecast data from the OpenWeatherMap API based on the provided city and country code.\n\n## Prerequisites\n\n- [Rust](https://www.rust-lang.org/tools/install): Make sure you have Rust installed on your system.\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/tusharpamnani/Weather-Forecast.git\ncd Weather-Forecast\n```\n\nBuild the project:\n\n```bash\ncargo build --release\n```\n\n## Usage\n\n1. **Add your API key:** Open the `src/main.rs` file and add your OpenWeatherMap API key to the following line (line 89):\n\n   ```rust\n   \"https://api.openweathermap.org/data/2.5/weather?q={},{}\u0026appid={YOUR_API_KEY}\u0026units=metric\",\n   ```\n\n2. **Run the CLI:**\n\n   ```bash\n   cargo run \u003cCITY\u003e \u003cCOUNTRY_CODE\u003e\n   ```\n\n   Replace `\u003cCITY\u003e` with the name of the city and `\u003cCOUNTRY_CODE\u003e` with the country code (e.g., \"ind\" for India).\n\n   Example:\n\n   ```bash\n   cargo run nagpur ind\n   ```\n\n## Output\n\nThe CLI will display information about the provided city's weather forecast, including temperature, description, humidity, wind speed and direction, and sunrise/sunset times.\n\nExample output:\n\n```\nWeather forecast for Nagpur (IND):\n  - Temperature: 19.01 °C\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [OpenWeatherMap](https://openweathermap.org/) for providing the weather forecast data through their API.\n- [reqwest](https://docs.rs/reqwest/) for HTTP client functionality.\n- [serde](https://serde.rs/) for serialization and deserialization of JSON data.\n- [structopt](https://docs.rs/structopt/) for easy command-line argument parsing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharpamnani%2Fweather-forecast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftusharpamnani%2Fweather-forecast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharpamnani%2Fweather-forecast/lists"}