Skip to content

gordienko-dmitry/weather_forecast_with_simple_ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini server for weather forecast

Made for ycloud.school
Test exercise with weather forecast with advices (third level).
Using Python, Aiohttp, and html page as UI.

Using:

Screenshot image

Install

First of all, install Python3 (version 3.8 or above).
Then clone this repository or download it in archive.

After it install requirements with your terminal and pip command:

pip install -r requirements.txt

Run

For running script type in your terminal

python server.py

How it works

  • User enter town (or country, or other place, or coordinates, etc) and press button.
  • Sends get query via ajax to server
  • Server making 2 get queries to wttr:
    • json response analyzing for advices
    • html response using for forecast visualization
  • Then results merges to html response
  • Page getting response and put it in div block

That's it.

P.S. If we have problem with get query we can see error message instead forecast visualization.

Video demonstration

Video you can watch here, but if it'll be not available - you can download it from media folder.

Demonstration video

About

exersize for "future cto school"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published