- Add file
airqo-250220-5149c2aac8f2.json
tojobs/
. Obtain from a team member or GCP. - Create a virtual environment
pip install -r requirements.txt
flask run
(Uses "production" dockerfile.)
- Add file
airqo-250220-5149c2aac8f2.json
tojobs/
. Obtain from a team member or GCP. docker build --target=dev -t calibrate .
docker run -d -p 4001:4001 --env FLASK_APP=app.py --env FLASK_ENV=development --env MONGO_URI=mongodb://localhost:27017 calibrate
It is implicit that mongodb
should be installed and running.
Make a POST
request to http://localhost:4001/api/v1/calibrate_tool using form data: Form must contain:
- A csv file containing the data you want to calibrate.
- Mapping for
datetime
,pm2_5
,s2_pm2_5
,pm10
,s2_pm10
,humidity
,temperature
.