Skip to content

Commit

Permalink
Merge pull request #3 from mediasanctuary/better-time-series
Browse files Browse the repository at this point in the history
Better time series
  • Loading branch information
dphiffer authored Oct 4, 2023
2 parents 7fa4376 + c5e6946 commit 18fd1e0
Show file tree
Hide file tree
Showing 5 changed files with 1,971 additions and 1,976 deletions.
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Each day a GitHub Actions workflow runs `node scripts/index.js` to incrementally

## Dependencies

* [node.js v18](https://nodejs.org/)
* [PurpleAir API key](https://develop.purpleair.com/)
- [node.js v18](https://nodejs.org/)
- [PurpleAir API key](https://develop.purpleair.com/)

## Developer Setup

Expand All @@ -35,7 +35,7 @@ Each sensor's historical records are stored in `data/sensor-[id]` folders. Batch
### records columns

1. `id` - PurpleAir sensor ID
2. `timestamp` - Unix epoch timestamp
2. `time_stamp` - Unix epoch timestamp
3. `pm2.5_alt_a` - PM 2.5 ALT cf=3 channel A
4. `pm2.5_alt_b` - PM 2.5 ALT cf=3 channel B
5. `pm2.5_atm_a` - PM 2.5 ATM channel A
Expand All @@ -46,15 +46,36 @@ Each sensor's historical records are stored in `data/sensor-[id]` folders. Batch
10. `humidity` - relative percentage humidity
11. `pressure` - pressure in Millibars

## Time Series

Combined readings from all sensors over the last 7 days is available in `data/time-series.csv`.

### time-series.csv columns

Sensor columns are sorted numerically by ID.

1. `Time` - date/time in ISO 8601 format (UTC timezone)
2. `North Central Troy #1 (87173)` - 10 minute averaged AQI readings
3. `South Troy #2 (149970)` - 10 minute averaged AQI readings
4. `Rensselaer #6 (151502)` - 10 minute averaged AQI readings
5. `Cohoes (156051)` - 10 minute averaged AQI readings
6. `Cohoes #17 (156171)` - 10 minute averaged AQI readings
7. `Cohoes (164327)` - 10 minute averaged AQI readings
8. `Cohoes #15 (164351)` - 10 minute averaged AQI readings
9. `Rensselaer #10 (166327)` - 10 minute averaged AQI readings
10. `Lansingburgh #8 (166331)` - 10 minute averaged AQI readings
11. `Cohoes #14 (166371)` - 10 minute averaged AQI readings
12. `Stephentown #22 (166653)` - 10 minute averaged AQI readings

## Data Attribution

Source: [PurpleAir](https://map.purpleair.com/1/mAQI/a10/p604800/cC0#12.04/42.7431/-73.6769)

## References

* [Sensor map](https://map.purpleair.com/1/mAQI/a10/p604800/cC0#12.04/42.7431/-73.6769)
* [Sensors - Get Sensor History](https://api.purpleair.com/#api-sensors-get-sensor-history)
* [What is the Difference Between CF=1, ATM, and ALT?](https://community.purpleair.com/t/what-is-the-difference-between-cf-1-atm-and-alt/6442)
- [Sensor map](https://map.purpleair.com/1/mAQI/a10/p604800/cC0#12.04/42.7431/-73.6769)
- [Sensors - Get Sensor History](https://api.purpleair.com/#api-sensors-get-sensor-history)
- [What is the Difference Between CF=1, ATM, and ALT?](https://community.purpleair.com/t/what-is-the-difference-between-cf-1-atm-and-alt/6442)

## Data Attribution

Expand Down
Loading

0 comments on commit 18fd1e0

Please sign in to comment.