https://github.com/openaq/openaq-fetch-evaluation
https://github.com/openaq/openaq-fetch-evaluation
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/openaq/openaq-fetch-evaluation
- Owner: openaq
- Created: 2021-12-14T16:37:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T16:52:29.000Z (over 3 years ago)
- Last Synced: 2025-01-11T22:45:50.678Z (4 months ago)
- Language: Python
- Size: 204 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OpenAQ fetch evaluation
This script checks the openaq-api in order to get the latest updates for [openaq-fetch](https://github.com/openaq/openaq-fetch) adapters, this will help to check which adapters have been still working correctly in which adapters may faling or needs updates in the node.js code.
## Step 1: Clone the repo
```sh
git clone https://github.com/openaq/openaq-fetch-evaluation```
## Step 2: Getting location ID from openaq-api DB
```sql
SELECT sensor_nodes_id,site_name,source_name,city FROM sensor_nodes WHERE ismobile=False and source_name !='PurpleAir';
```Save results as: `data/adapters_id.csv`
## Step 3: Building docker image
```sh
cd openaq-fetch-evaluation/
docker-compose build
```## Step 4: Getting latest updates for adapters
```sh
docker-compose up
```Outputs: `data/adapters_update.csv` and `data/adapters_outdate.csv` which can be used to the evaluations.