Skip to content

A Django web app that takes forecasts from different sources, shows them side-by-side and calculates their average.

Notifications You must be signed in to change notification settings

werka-z/skyTwine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

skyTwine is a tool designed to alleviate the confusion caused by multiple weather forecasts. It takes forecasts from different sources, shows them side-by-side and calculates their average. Currently available for Kraków, Poland.

Preview

Alt Text

Technology Stack

Framework: Django.
Styling: Bootstrap.
Database: SQLite.
Techniques: API requests and a shared task to fetch and process data.

Data Sources

OpenWeather: Provides a 5-day forecast with logs every 3 hours. Daily weather is calculated by taking the average from the logs.
WeatherAPI: Daily weather is directly plugged into the model.
Averaging Method: Employs arithmetic averages for most parameters, with manually picked cases for description and icons.
Fetched From: openweather.com, weatherapi.com in JSON format.

Models and Management

A Django model 'weather' populates the database, supported by a highly functional model manager.

Libraries Used

Celery: Manages fetching data and updating the forecasts every hour.
Bootstrap: Templates from startbootstrap.com, mdbootstrap.com.
Weather Icons: Sourced from joypixels.com.
Other: Standard libraries like datetime and decouple.

Future Improvements

Potential upgrades include adding more locations, weather sources and data tracking for statistics.

About

A Django web app that takes forecasts from different sources, shows them side-by-side and calculates their average.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages