AirGradient Test API App v2.2.0-rc.1
Pre-releaseAirGradient Test API App v2.2.0-rc.1
Release candidate — for testing and demonstration. The Python + localhost app remains the main product. This release adds a
supplementary GitHub Pages preview for easier access without installation.
Install and run
- Install Python from python.org. Python 3.9+ is the compatibility minimum; use a currently supported stable version for a new setup. Windows setup · macOS downloads · Linux guidance.
- Connect to the internet to fetch live API readings and load online map/library resources.
- Download AirGradient-Test-API-App-v2.2.0-rc.1.zip from this release's Assets and extract it.
- Open a terminal in the extracted folder. Run
py serve.pyon Windows orpython3 serve.pyon macOS/Linux. - Open the exact local URL printed by Python. Leave the terminal open; stop it with Ctrl+C.
No extra Python packages are needed. Do not open the HTML directly.
Short setup guide ·
Full user guide
Supplementary web preview
The Python + localhost app remains the main product. For convenient viewing
without installing Python, open the supplementary GitHub Pages preview.
Use the main app for the fuller experience and better results when testing the API:
on-demand upstream requests, configurable devices, correction selection, and
permission-based hourly access. It does not improve underlying sensor accuracy.
| Main local app (recommended) | Supplementary website |
|---|---|
Install Python, run serve.py, open the printed local URL |
Open the website; visitors need only internet and a browser |
| Requests data on demand, subject to API cadence/cache | Displays snapshots collected on a nominal 15-minute GitHub schedule |
| Device controls, corrected/raw selection, illustrative AQI, authorized hourly history | Four fixed devices, raw PM2.5, returned fields, world map, and published JSON |
| Tokens stay in your local server's memory | No token entry or private/authenticated data |
The page labels itself as supplementary and links back to the main download.
Reload published data only reloads the latest published snapshot; it does not
trigger AirGradient collection. GitHub scheduling/deployment delays add latency.
Measurement time and per-device collection time are displayed separately in UTC.
Failures may retain earlier readings with explicit errors and original timestamps;
missing readings remain unavailable. The browser checks for published updates every
five minutes while visible. Readings older than 20 minutes and collection gaps over
45 minutes are flagged. These are demo thresholds, not a service guarantee.
GitHub may disable scheduled collection after 60 days without repository activity.
If updates stop, check the Pages workflow
or use the main local app. Full supplementary guide.
Included changes
- Main local app preserved, with updated release information and a supplementary-page link.
- Added the labelled web preview, public-data collector, nominal 15-minute publishing workflow, and tests for data handling and freshness.
- Markdown user guide, top-level quick guide, official Python installation links, and explicit internet requirements.
- Setup and license information visible near the top of the app.
- Git exclusions, consistent line endings, automated checks, and a portable source ZIP builder.
- A checksum sidecar for the ZIP and
SHA256SUMS.txtinside it for individual files.
License
MIT No Attribution (MIT-0). Freely use, change, share, and sell the original
code and documentation. Attribution is not required; optional credit to Akila DJ
is welcome. No requirement to publish changes or use the same license. Provided
as is, without warranty. Third-party data, libraries, and maps keep their own terms.
Full project license ·
Official MIT-0 license ·
Third-party notices
Testing scope and limitations
The release checks cover Python and inline JavaScript syntax and ZIP integrity.
Regression tests cover zero/null values, stale timestamps, and retained readings
after failed collection. Local smoke checks cover the served page, API status/error routes, and the renamed
client/server response header. Authenticated hourly history needs a suitable user
token and has not been live-tested. Original device-selection readings are
historical notes, not a guarantee that devices are currently online. AQI values
are illustrative; this is not a production server or an official AirGradient app.
The ZIP distributes the main local app plus the supplementary website source.
Generated live snapshots are not bundled. GitHub also provides source ZIP/tar
downloads; the named app ZIP includes an additional per-file checksum manifest.
The supplementary hosted page is available separately at the link above.