Skip to content

SamuunJinnie/pm2.5dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

123 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PM 2.5 Dashboard by Samun Jiratchaya

Data architecture

Screen Shot 2566-01-05 at 12 34 34

Note: Not compatible with M1 chip krub ajarn TT

(Reccommend : Windows or Mac with intel chip)

Manual

Step 0.)

Clear docker volume and images (if needed)

Clear Docker volume Be aware that your every volume will be gone

docker volume rm $(docker volume ls -q)

Clear Docker images Be aware that your every images will be deleted

docker rmi -f $(docker images -aq)

Step 1.)

Build postgres image with initial command in setup.ql

Please remind that this will remove exist table name raw_data and predicted_data and create the new ones.

docker-compose build --no-cache postgres

Step 2.)

Build other every images and run (About 15 minutes for the first time)

docker-compose up -d

now you should be able to access airflow UI via http://localhost:8080

Step 3.)

Log in to airflow with username : airflow and password : airflow

now you should be able to see DAGs available in the system

Step 4.)

Trigger hourly_dag to start scraping data and save the data to the database (table: raw_data)

Cautions! Default start date of DAG is set to 14-05-2022 00.00 UTC+7

To change this, go to daily_dag.py and change start date argument with UTC timezone.

Step 5.)

Trigger daily_dag to feed the data to a model and start training the model.

After that the data will be saved in the database (table: predicted_data)

Next, the data will be sent to PowerBI report.

Cautions! To execute this step, you need atleast 6 successive days data from the previous step.

Step 6.)

Open the provided PowerBI report and enjoy! 😂

Link to PowerBI report

ps. We use PowerBI report instead of dashboard since the dashboard is not responsive. 😢

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors