{"id":15009583,"url":"https://github.com/gonzaloplaza/python-weather-forecast","last_synced_at":"2025-04-09T17:24:48.608Z","repository":{"id":103296209,"uuid":"80289154","full_name":"gonzaloplaza/python-weather-forecast","owner":"gonzaloplaza","description":"A simple Python console program to get Weather Forecast from DarkSky API using any address as parameter.","archived":false,"fork":false,"pushed_at":"2017-01-28T14:38:10.000Z","size":54,"stargazers_count":29,"open_issues_count":0,"forks_count":27,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T19:38:39.496Z","etag":null,"topics":["python","python-3-5","weather-forecast","weather-information"],"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/gonzaloplaza.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":"2017-01-28T14:35:43.000Z","updated_at":"2025-03-14T06:20:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"e10e9389-3507-4b9f-97e2-7376fa234ac3","html_url":"https://github.com/gonzaloplaza/python-weather-forecast","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"ae60360bde52beee233577424b96e5a70fdf5494"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonzaloplaza%2Fpython-weather-forecast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonzaloplaza%2Fpython-weather-forecast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonzaloplaza%2Fpython-weather-forecast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonzaloplaza%2Fpython-weather-forecast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gonzaloplaza","download_url":"https://codeload.github.com/gonzaloplaza/python-weather-forecast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075680,"owners_count":21043633,"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":["python","python-3-5","weather-forecast","weather-information"],"created_at":"2024-09-24T19:26:46.974Z","updated_at":"2025-04-09T17:24:48.575Z","avatar_url":"https://github.com/gonzaloplaza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Weather Forecast\r\n### version 1.0.0\r\nWeather Forecast is a simple Python 3 console program to get Weather Forecast from DarkSky.net service API using any address as parameter. \r\n\r\n  - It uses Google Maps Geocoding API to transform any string address into numeric coordinates.\r\n  - It obtains weekly forecast and related weather information for any coordinates in the World.\r\n  - Output language and metric system are configurables parameters.\r\n\r\n\u003e Note: This program has been developed using Python 3.5.2. It's NOT compatible with Python 2.7 versions.\r\n\r\n### Requirements\r\n\r\nIn order to get the weather forecast information from external services,you'll need to sign up and obtain your own API Key:\r\n* Python 3.5.* installed in your OS.\r\n* DarkSky.net API Key: You can obtain your own here: https://darksky.net/dev/\r\n* Google Maps API Key - It's optional for development purposes, but you'll need to get your own key here: https://developers.google.com/maps/documentation/geocoding/get-api-key\r\n\r\n### Installation (for Linux OS)\r\n\r\nYou must have to declare **DS_API_KEY** (DarkSky) and **GM_API_KEY** as environment variables. Note that GM_API_KEY is optional for development purposes, you don't need to declare.\r\n\r\n```sh\r\n$ export DS_API_KEY=your_api_key_obtained_from_darksky\r\n$ export GM_API_KEY=your_api_key_obtained_from_google\r\n``` \r\nDownload the project from this repository:\r\n```sh\r\n$ git clone https://github.com/gonzaloplaza/python-weather-forecast.git my-project\r\n```\r\n\r\n### Configuration\r\nYou can change the main language for output information using ISO codes. By default, language variable (**LANG**) is \"en\". \r\n\r\nYou can change the default code for **UNITS** variable that is \"si\" (International System). Available codes are: \r\n- **auto**: automatically select units based on geographic location\r\n- **ca**: same as si, except that windSpeed is in kilometers per hour\r\n- **uk2**: same as si, except that nearestStormDistance and visibility are in miles and windSpeed is in miles per hour\r\n- **us**: Imperial units\r\n- **si**: SI units (default)\r\n\r\nYou can find a list of available languages and unit codes here: https://darksky.net/dev/docs/forecast\r\n\r\n### Usage\r\nOnce you have declared environment variables, you can execute the console program:\r\n\r\n```sh\r\n$ cd my-project\r\n$ python3 forecast.py \"Gran Via Street 28,Madrid\"\r\n```\r\nAnd you'll get forecast information as output!:\r\n![Output Example](http://ordermin.com/images/python-weather-forecast-output.png)\r\n\r\n\u003e Note: Forecast API is free until 1000 requests per day. For more information, check their FAQ: https://darksky.net/dev/docs/faq\r\n\r\n### Contributing\r\nFeel free to contribute to this project, pull requests and other improvements are welcome. If you have any ideas, just open an issue and tell me what you think, or send me an email to hello (at) ordermin.com\r\n\r\n### Licensing\r\n\r\nThe code in this project is licensed under [MIT LICENSE](https://github.com/gonzaloplaza/python-weather-forecast/blob/master/LICENSE). Read file for more information.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonzaloplaza%2Fpython-weather-forecast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgonzaloplaza%2Fpython-weather-forecast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonzaloplaza%2Fpython-weather-forecast/lists"}