PurpleAir
R package PurpleAir by cole-brokamp — release notes from GitHub.
The R client for PurpleAir sensors keeps finding its time-averaging was wrong.
◆Recent moves
- 3mo ago
Weekly averages fixed again; API key argument dropped
Five fixes, and the notable one is that the weekly history average needed correcting a second time, one release after the interval fixes. The rest tightens the failure surface — an explicit error for sf and sfc inputs, better sensor index parsing so bad requests never leave the client, and handling for history calls returning nothing — while the unused key argument is removed in favour of the environment variable alone.
View source ↗ - 10mo ago
Local sensor discovery, and averaging intervals corrected
New functions to find a PurpleAir sensor's local IP address and id are the one real capability addition in this window, and they point somewhere different from the rest of the package — at the device on your network rather than the vendor's API. Alongside, the one-week, one-month and one-year average intervals are corrected, and key validation is updated for a changed success code upstream.
View source ↗ - 1y ago
Bounding box sensor queries fixed
A single fix to bounding box queries, credited to a user who tested and reported it. Characteristic of how this package develops: small corrections arriving as people hit them in real use.
View source ↗