Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alina1412/weather_checker
flask web application for checking the current weather in different cities
https://github.com/alina1412/weather_checker
api flask html sqlite
Last synced: 2 months ago
JSON representation
flask web application for checking the current weather in different cities
- Host: GitHub
- URL: https://github.com/alina1412/weather_checker
- Owner: alina1412
- Created: 2021-11-11T12:50:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T05:27:41.000Z (about 2 years ago)
- Last Synced: 2023-03-11T07:06:32.602Z (almost 2 years ago)
- Topics: api, flask, html, sqlite
- Language: Python
- Homepage:
- Size: 2.82 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather checker
### Video Demo: [https://youtu.be/DKPiaEyKfbs](https://youtu.be/DKPiaEyKfbs)
## Description:
The project is a simple `flask web application` which allows a user to check the current weather in the chosen city.
(made for educational purposes)
The main web-page has:
- a form to ask a user for the name of the city
- the table from sqlite database with last requests from the user
- the background image (changing depending on the weather)The app sends an http-request to the site “[api.openweathermap.org]()” to get the information of the temperature.
![](image/README/1651653010717.png)
## How to run locally
- get API key from https://openweathermap.org/ and put it to .env
- set flask app secret key in .env
- python -m venv .venv
- activate virtual environment
- pip install -r requirenments.txt
- flask run### Toolset:
- Flask
- Jinja2
- sqlite
- pytest