Skip to content

Commit

Permalink
adding lightweight flask app for aqi time machine
Browse files Browse the repository at this point in the history
  • Loading branch information
c3pko committed Jan 3, 2023
0 parents commit aba45a2
Show file tree
Hide file tree
Showing 17 changed files with 19,888 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
23 changes: 23 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Steps to setup this project:

Step 1: Clone this repo and pip install requirements.txt
Step 2: Download pgAdmin https://www.pgadmin.org/download/ and create your Postgres database
Step 3: Add your database credentials info to config.py
Step 4: Run "await add_test_data()" to load sample AQI data to your Postgres database the first time you run your app
Step 5: In all other instances, run "run app.run(port=8000, debug=True)"
Step 6: Navigate over to your localhost (e.g. http://127.0.0.1:8000) and interact with the app as you please
Step 7: If you'd like to download additional historical AQI data you can do so over at https://aqicn.org/data-platform/register/


Purpose of this project:

To build the "Time travel Machine - for seeing the air quality at any day back in time" mentioned here: https://aqicn.org/contribute/.

Future developments:
1. Error handling
2. Check for and fetch new data for target sensor cities
3. Cache most popular user queries
4. Show historical mean and median for all available particulate types in user query
5. Show pie chart with AQI classification frequency
6. Allow user who may not know exact sensor station name to search by city to find station name

Binary file added __pycache__/config.cpython-39.pyc
Binary file not shown.
Loading

0 comments on commit aba45a2

Please sign in to comment.