All Projects → M0nica → Flask_weather

M0nica / Flask_weather

☀️ ☔️ Flask app to auto-detect local weather based off of user's IP address.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flask weather

Satpy
Python package for earth-observing satellite data processing
Stars: ✭ 679 (+870%)
Mutual labels:  weather, hacktoberfest
Senseme
Python Library for Haiku SenseMe app controlled fans/lights
Stars: ✭ 19 (-72.86%)
Mutual labels:  hacktoberfest, flask
Metpy
MetPy is a collection of tools in Python for reading, visualizing and performing calculations with weather data.
Stars: ✭ 717 (+924.29%)
Mutual labels:  weather, hacktoberfest
Cookiecutter Flask
A flask template with Bootstrap 4, asset bundling+minification with webpack, starter templates, and registration/authentication. For use with cookiecutter.
Stars: ✭ 3,967 (+5567.14%)
Mutual labels:  hacktoberfest, flask
X Proxies
Usable ip proxies, crawling from some proxy websites.
Stars: ✭ 53 (-24.29%)
Mutual labels:  flask, ip
Flask Googlemaps
Easy way to add GoogleMaps to Flask applications. maintainer: @RiverFount
Stars: ✭ 550 (+685.71%)
Mutual labels:  hacktoberfest, flask
Apispec
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
Stars: ✭ 831 (+1087.14%)
Mutual labels:  hacktoberfest, flask
HexBot
A Relatively Simply Awesome Discord bot with Music, Games, Comics, Memes and other cool features. This bot is made in Python 3.8 using discord.py
Stars: ✭ 109 (+55.71%)
Mutual labels:  weather, ip
Analysispreservation.cern.ch
Source code for the CERN Analysis Preservation portal
Stars: ✭ 37 (-47.14%)
Mutual labels:  hacktoberfest, flask
Laravel Weather
🌤️ A wrapper around Open Weather Map API (Current weather)
Stars: ✭ 36 (-48.57%)
Mutual labels:  weather, hacktoberfest
Cidr.xyz
Web-based CIDR / netmask / IP address visualizer
Stars: ✭ 293 (+318.57%)
Mutual labels:  hacktoberfest, ip
Mahapps.metro.iconpacks
Awesome icon packs for WPF and UWP in one library
Stars: ✭ 1,157 (+1552.86%)
Mutual labels:  weather, hacktoberfest
Freki
🐺 Malware analysis platform
Stars: ✭ 285 (+307.14%)
Mutual labels:  hacktoberfest, flask
Flask Empty
An empty project skeleton / boilerplate for flask projects. Powered by CookieCutter.
Stars: ✭ 569 (+712.86%)
Mutual labels:  hacktoberfest, flask
watsor
Object detection for video surveillance
Stars: ✭ 203 (+190%)
Mutual labels:  detection, ip
Yacht
A web interface for managing docker containers with an emphasis on templating to provide 1 click deployments. Think of it like a decentralized app store for servers that anyone can make packages for.
Stars: ✭ 712 (+917.14%)
Mutual labels:  hacktoberfest, flask
Training
🐝 A fast, easy and collaborative open source image annotation tool for teams and individuals.
Stars: ✭ 2,615 (+3635.71%)
Mutual labels:  hacktoberfest, detection
Wradlib
weather radar data processing - python package
Stars: ✭ 143 (+104.29%)
Mutual labels:  weather, hacktoberfest
App
The SimpleLogin back-end
Stars: ✭ 958 (+1268.57%)
Mutual labels:  hacktoberfest, flask
Webargs
A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.
Stars: ✭ 1,145 (+1535.71%)
Mutual labels:  hacktoberfest, flask

Flask Weather App ☀️☔️

This is a Flask (Python) application that auto-detects local weather based off of user's external IP address.

Example screenshot of flask_weather application

Setup

  • Install dependencies
  • pip install -r requirements.txt
  • Add environment variables
    • weather_key="###############";. The weather_key is the API key received from registering at https://darksky.net/dev.
    • add secret_key="********". It should be a random string that is hard to guess.
  • Run
    • python app.py
  • Run Tests
    • python flask_weather_tests.py

Functionality

Gets 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.

To work on this locally clone the repo, request and add an API key (locally) from darksky and then run app.py

weather.html displays the weather information and displays appropriate weather icon (https://erikflowers.github.io/weather-icons/) based on what the current weather is.

To display temperature in Celsius instead of Fahrenheit, set celsius = True environment variables.

Sample Output:

Today's Weather Forecast for Brooklyn, New York

Right now it is 41° and there is a 0% chance of rain.

Today's Weather Forecast for City, State

Right now it is X° and there is a Y% chance of rain.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].