Skip to content

Weather data aggregation from an OpenWeatherMap using AirFlow

Notifications You must be signed in to change notification settings

pratik-choudhari/WeatherFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherFlow

An AirFlow project to gather data from OpenWeatherMap API at regular intervals.

Setup

AirFlow

  1. Create a virtual environment, activate environment
  2. Install requirements.txt
  3. Run airflow scheduler in a terminal from project directory
  4. Run airflow webserver in another terminal from project directory
  5. Open localhost:8080 in browser
  6. Go to Admin -> Variables and add values for API_KEY1, API_KEY2, MYSQL_DB, MYSQL_HOST, MYSQL_USER, MYSQL_PSWD
  7. Enable DAG from DAGs menu

Database (MySQL)

  1. Install MySQL community server
  2. Create a user or use Admin user
  3. Create tables by running SQL/create_tables.sql

Database Schema

This project follows star schema in a data warehouse Database Schema

About

Weather data aggregation from an OpenWeatherMap using AirFlow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages