{"id":21168150,"url":"https://github.com/m0nica/flask_weather","last_synced_at":"2025-07-09T17:33:48.839Z","repository":{"id":28546384,"uuid":"81033307","full_name":"M0nica/flask_weather","owner":"M0nica","description":"☀️  ☔️ Flask app to auto-detect local weather based off of user's IP address.","archived":false,"fork":false,"pushed_at":"2022-12-14T04:37:06.000Z","size":455,"stargazers_count":89,"open_issues_count":7,"forks_count":82,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-07T18:43:36.520Z","etag":null,"topics":["detection","flask","hacktoberfest","ip","python","weather"],"latest_commit_sha":null,"homepage":"https://clima-weather.herokuapp.com/","language":"Python","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/M0nica.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}},"created_at":"2017-02-06T00:51:18.000Z","updated_at":"2024-08-02T08:51:33.000Z","dependencies_parsed_at":"2023-01-14T09:01:52.350Z","dependency_job_id":null,"html_url":"https://github.com/M0nica/flask_weather","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0nica%2Fflask_weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0nica%2Fflask_weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0nica%2Fflask_weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0nica%2Fflask_weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M0nica","download_url":"https://codeload.github.com/M0nica/flask_weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225578930,"owners_count":17491283,"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":["detection","flask","hacktoberfest","ip","python","weather"],"created_at":"2024-11-20T15:07:24.201Z","updated_at":"2024-11-20T15:07:24.731Z","avatar_url":"https://github.com/M0nica.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Weather App ☀️☔️\n\nThis is a Flask (Python) application that auto-detects local weather based off of user's external IP address.\n\n\u003cimg src=\"https://raw.githubusercontent.com/M0nica/flask_weather/master/static/nyc_weather_screenshot.png\"\u003e\n\n_Example screenshot of flask_weather application_\n\n## Setup\n\n- Install dependencies\n- `pip install -r requirements.txt`\n- Add environment variables\n  - `weather_key=\"###############\";`. The weather_key is the API key received from registering at https://darksky.net/dev.\n  - add `secret_key=\"********\"`. It should be a random string that is hard to guess.\n- Run\n  - `python app.py`\n- Run Tests\n  - `python flask_weather_tests.py`\n\n## Functionality\n\nGets a user's external IP address and then used http://freegeoip.net to get more specific location information to pass into Weather API (https://darksky.net/dev/). Weather information (current temperature and % chance of rain) is returned based on the location associated with the IP.\n\nTo work on this locally clone the repo, request and add an API key (locally) from darksky and then run `app.py`\n\n`weather.html` displays the weather information and displays appropriate weather icon (https://erikflowers.github.io/weather-icons/) based on what the current weather is.\n\nTo display temperature in Celsius instead of Fahrenheit, set `celsius = True` environment variables.\n\n## Sample Output:\n\n### Today's Weather Forecast for Brooklyn, New York\n\nRight now it is 41° and there is a 0% chance of rain.\n\n### Today's Weather Forecast for City, State\n\nRight now it is X° and there is a Y% chance of rain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0nica%2Fflask_weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0nica%2Fflask_weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0nica%2Fflask_weather/lists"}