{"id":28373996,"url":"https://github.com/joergmlpts/weather","last_synced_at":"2026-05-09T09:04:38.193Z","repository":{"id":169237958,"uuid":"405703671","full_name":"joergmlpts/weather","owner":"joergmlpts","description":"Command-line tool for obtaining weather forecasts from the National Weather Service for the USA. Regular and hourly weather forecasts are supported. Alerts are displayed if there are any.","archived":false,"fork":false,"pushed_at":"2023-02-24T18:33:49.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T18:45:53.595Z","etag":null,"topics":["linux","weather","weather-forecast","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","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/joergmlpts.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":"2021-09-12T17:08:46.000Z","updated_at":"2025-01-20T03:56:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"8eccb6fd-8fbd-46be-bb45-4b15032d5e70","html_url":"https://github.com/joergmlpts/weather","commit_stats":null,"previous_names":["joergmlpts/weather"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joergmlpts/weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joergmlpts%2Fweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joergmlpts%2Fweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joergmlpts%2Fweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joergmlpts%2Fweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joergmlpts","download_url":"https://codeload.github.com/joergmlpts/weather/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joergmlpts%2Fweather/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502167,"owners_count":23618557,"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":["linux","weather","weather-forecast","windows"],"created_at":"2025-05-29T20:38:14.919Z","updated_at":"2026-05-09T09:04:32.950Z","avatar_url":"https://github.com/joergmlpts.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weather.py\nThis command-line tool retrieves weather forecasts for the USA from the National Weather Service. Regular and hourly weather forecasts are supported. Alerts are displayed if there are any. A forecast location can be specified; it defaults to a location obtained from the IP address.\n\n## Usage\n\nThis is a command-line utility. It is usually called with no command-line arguments. This is the command for Linux and macOS:\n\n```\n./weather.py\n```\n\nOn Windows the command is:\n\n```\npython .\\weather.py\n```\n\nThis call results in weather alerts (if any) and a forecast:\n```\nHeat Advisory issued September 12 at 2:10AM PDT until September 12 at 9:00PM PDT by NWS San Diego CA\n====================================================================================================\n* WHAT...Temperatures 97 to 103. * WHERE...San Bernardino and Riverside County Valleys-The Inland Empire.\n* WHEN...Until 9 PM PDT Sunday. * IMPACTS...Hot conditions may cause heat illness.\nDrink plenty of fluids, stay in an air-conditioned room, stay out of the sun, and check up on relatives and neighbors.\nYoung children and pets should never be left unattended in vehicles under any circumstances. When possible reschedule\nstrenuous activities to early morning or evening.\n\nForecast for Jurupa Valley, CA\n==============================\n\nToday\n=====\nSunny, with a high near 99. West wind 0 to 15 mph, with gusts as high as 25 mph.\n\nTonight\n=======\nClear, with a low around 65. West wind 0 to 15 mph, with gusts as high as 25 mph.\n\nMonday\n======\nSunny, with a high near 94. Southwest wind 0 to 15 mph, with gusts as high as 25 mph.\n\nMonday Night\n============\nClear, with a low around 62. Southwest wind 0 to 15 mph, with gusts as high as 25 mph.\n\nTuesday\n=======\nSunny, with a high near 90. Southwest wind 0 to 15 mph, with gusts as high as 25 mph.\n\nTuesday Night\n=============\nMostly clear, with a low around 61.\n\nWednesday\n=========\nSunny, with a high near 88.\n\nWednesday Night\n===============\nMostly clear, with a low around 59.\n\nThursday\n========\nSunny, with a high near 86.\n\nThursday Night\n==============\nMostly clear, with a low around 59.\n\nFriday\n======\nSunny, with a high near 86.\n\nFriday Night\n============\nMostly clear, with a low around 60.\n\nSaturday\n========\nSunny, with a high near 86.\n\nSaturday Night\n==============\nMostly clear, with a low around 60.\n```\nSeveral command line options are available:\n\n```\nusage: weather.py [-h] [--latitude LATITUDE] [--longitude LONGITUDE] [--hourly]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --latitude LATITUDE   Latitude for forecast.\n  --longitude LONGITUDE\n                        Longitude for forecast.\n  --hourly              Request hourly forecast.\n```\nThe `--hourly` option requests an hourly forecast for the next 6 days or so. The `--latitude` and `--longitude` options can be used to specify a forecast location.\n\n## Dependencies\n\nThis package requires Phyton 3 and only one additional package `requests` is needed. This package can be installed on Debian distributions like Ubuntu with the command `sudo apt install python3-requests` and on other platforms with the command\n\n```\npip install requests\n```\n\nIf necessary, `pip3` should be called instead of `pip` to avoid accidentally installing the Python 2 package.\n\n## Errors\n\nAn error is expected for a forecast location outside the USA. This is an example:\n\n```\n./weather.py --lat 89.99999 --lon 0\n*** Error #404. ***\n{\n    \"correlationId\": \"1976c6\",\n    \"title\": \"Data Unavailable For Requested Point\",\n    \"type\": \"https://api.weather.gov/problems/InvalidPoint\",\n    \"status\": 404,\n    \"detail\": \"Unable to provide data for requested point 90,0\",\n    \"instance\": \"https://api.weather.gov/requests/1976c6\"\n}\n```\n\nThe location given is the North Pole for which the National Weather Service does not provide forecasts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoergmlpts%2Fweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoergmlpts%2Fweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoergmlpts%2Fweather/lists"}