A shell script, get_latest.sh uses the Purple Air API to pull data from all sensor IDs listed in the sensor file for the fields specified in fields, for the past month. Register with Purple Air to get an API key and add that key variable to a .env under .gitignore.
Fields to be pulled from the sensor include: sensor_index, humidity, temperature, pressure, voc, pm2.5_atm_a, pm2.5_atm_b. Field descriptions can be found here.
Each sensor will have a temporary file created with the past month's data that gets appended to a larger csv file for each sensor.