128 add pmsa003i particulate matter sensor support#129
Open
sjefferson99 wants to merge 4 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds end-to-end support for the Plantower PMSA003I particulate-matter sensor, spanning the MicroPython sensor driver, HTTP API endpoints, and web UI pages to view/configure the sensor.
Changes:
- Introduces a new
PMSA003Isensor driver with async polling + cached readings and optional inclusion of CF=1 “standard” values. - Adds PMSA003I web UI pages/panels and JS to display readings and configure fan duty cycle / standard-values toggle.
- Extends the HTTP server routing/API and navigation to expose PMSA003I pages and configuration endpoints.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/smibhid_http/www/sensors/sensors.html | Adds PMSA003I sensor panel and live-readings group on the sensors page. |
| src/smibhid_http/www/sensors/pmsa003i.html | New PMSA003I management page (readings + duty cycle + data config). |
| src/smibhid_http/www/js/sensors.js | Shows PMSA003I panel based on detected modules and updates PMSA003I live cards. |
| src/smibhid_http/www/js/pmsa003i.js | New client logic for PMSA003I config + readings + PUT endpoints. |
| src/smibhid_http/www/js/common.js | Adds PMSA003I-aware nav visibility + caching and active-page highlighting. |
| src/smibhid_http/www/includes/header.html | Adds PMSA003I entry to the Sensors dropdown. |
| src/smibhid_http/www/css/pmsa003i.css | New styles for PMSA003I management page. |
| src/smibhid_http/website.py | Serves new PMSA003I assets/page and adds PMSA003I config API resources. |
| src/lib/sensors/PMSA003I.py | New MicroPython PMSA003I driver with async polling and cached readings. |
| src/lib/sensors/init.py | Imports PMSA003I and makes module loading skip failed initializations; trims noisy logging. |
| src/lib/config/config_template.py | Documents PMSA003I config options and updates I2C frequency guidance/list of supported sensors. |
| src/config.py | Mirrors config template updates (I2C_FREQ + PMSA003I config keys). |
| README.md | Documents PMSA003I support and config options. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.