{"id":27416119,"url":"https://github.com/ephbaum/wxdotgov","last_synced_at":"2025-04-14T09:46:42.626Z","repository":{"id":219666889,"uuid":"749584845","full_name":"ephbaum/wxdotgov","owner":"ephbaum","description":"A simple Rust based CLI tool that utlizing open APIs to produce weather information for a given location (in the US)","archived":false,"fork":false,"pushed_at":"2025-04-02T07:44:09.000Z","size":73,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T08:31:56.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ephbaum.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}},"created_at":"2024-01-29T01:09:21.000Z","updated_at":"2025-04-02T07:48:12.000Z","dependencies_parsed_at":"2024-01-29T03:28:39.061Z","dependency_job_id":"0e9bcfe8-541c-416c-b396-bf395ea6c598","html_url":"https://github.com/ephbaum/wxdotgov","commit_stats":null,"previous_names":["ephbaum/wxdotgov"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Fwxdotgov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Fwxdotgov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Fwxdotgov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Fwxdotgov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ephbaum","download_url":"https://codeload.github.com/ephbaum/wxdotgov/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248858025,"owners_count":21173089,"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-04-14T09:46:41.232Z","updated_at":"2025-04-14T09:46:42.539Z","avatar_url":"https://github.com/ephbaum.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WXdotGOV\n\nA command-line weather application written in Rust that fetches weather forecasts from the National Weather Service API.\n\n## Features\n\n- Location search by:\n  - ZIP code\n  - City name\n  - City and state combination\n- Two forecast types:\n  - Detailed forecast (default)\n  - Hourly forecast\n- Pretty printing with colored output\n- Error handling with informative messages\n- Uses OpenStreetMap's Nominatim for geocoding\n- Uses the National Weather Service API for weather data\n\n## Installation\n\nMake sure you have Rust and Cargo installed. Then:\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/wxdotgov.git\ncd wxdotgov\n\n# Build the project\ncargo build --release\n\n# The binary will be available in target/release/wxdotgov\n```\n\n## Usage\n\n```bash\n# Get help and see all available options\nwxdotgov --help\n\n# Get weather by ZIP code\nwxdotgov --zip 98101\n\n# Get weather by city and state\nwxdotgov --city \"Seattle\" --state WA\n\n# Get weather by city only (less precise)\nwxdotgov --city \"Seattle\"\n\n# Get hourly forecast with pretty printing\nwxdotgov --city \"Seattle\" --state WA --forecast-type hourly --pretty\n\n# Get detailed forecast with pretty printing\nwxdotgov --city \"New York\" --state NY --pretty\n```\n\n### Command-line Options\n\n- `-z, --zip \u003cZIP\u003e`: ZIP code in the U.S.\n- `-c, --city \u003cCITY\u003e`: City name\n- `-s, --state \u003cSTATE\u003e`: State abbreviation (e.g., CA)\n- `--pretty`: Enable pretty output with colors and formatting\n- `--forecast-type \u003cTYPE\u003e`: Type of forecast to display [possible values: detailed, hourly]\n- `-h, --help`: Print help\n- `-V, --version`: Print version\n\n## APIs Used\n\n- **Nominatim (OpenStreetMap)**\n  - Used for geocoding (converting location names to coordinates)\n  - [API Documentation](https://nominatim.org/release-docs/develop/api/Search/)\n\n- **National Weather Service API**\n  - Used for weather forecasts\n  - [API Documentation](https://www.weather.gov/documentation/services-web-api)\n\n## Error Handling\n\nThe application includes robust error handling for:\n- Invalid location inputs\n- Network request failures\n- API response parsing\n- Missing forecast data\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Why?\n\nThis project serves as both a useful weather tool and a learning exercise in Rust, demonstrating:\n- API integration\n- Error handling\n- Command-line argument parsing\n- Pretty printing and user interface\n- Modular code organization\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fephbaum%2Fwxdotgov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fephbaum%2Fwxdotgov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fephbaum%2Fwxdotgov/lists"}