Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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