An open API service indexing awesome lists of open source software.

https://github.com/openaq/openaq-fetch-evaluation


https://github.com/openaq/openaq-fetch-evaluation

Last synced: 3 months ago
JSON representation

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.