Skip to content

128 add pmsa003i particulate matter sensor support#129

Open
sjefferson99 wants to merge 4 commits into
masterfrom
128-add-pmsa003i-particulate-matter-sensor-support
Open

128 add pmsa003i particulate matter sensor support#129
sjefferson99 wants to merge 4 commits into
masterfrom
128-add-pmsa003i-particulate-matter-sensor-support

Conversation

@sjefferson99

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 PMSA003I sensor 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.

Comment thread src/lib/sensors/PMSA003I.py
Comment thread README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PMSA003I particulate matter sensor support

2 participants