Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply temperature and humidity correction based on configuration #277

Merged
merged 11 commits into from
Feb 6, 2025

Conversation

samuelbles07
Copy link
Collaborator

Changes

  1. Apply temperature and humidity correction for indoor and outdoor monitor
  2. Correction configuration can be set from cloud or local server
  3. Correction applied to display, led bar, local server and open metrics
  4. Add docs on how to apply correction locally
  5. Add AirGradient and Configuration object to Measurements class

@@ -33,6 +33,13 @@ const char *PM_CORRECTION_ALGORITHM_NAMES[] = {
[SLR_PMS5003_20240104] = "slr_PMS5003_20240104",
};

const char *TEMP_HUM_CORRECTION_ALGORITHM_NAMES[] = {
[CA_TH_UNKNOWN] = "-", // This is only to pass "non-trivial designated initializers" error
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure what CA & TH means maybe better avoid abbreviations

Copy link
Collaborator

Choose a reason for hiding this comment

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

COR_ALGO_TEMP_HUM_ ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@samuelbles07 samuelbles07 merged commit b0f5263 into develop Feb 6, 2025
20 checks passed
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.

2 participants