421 Commits

Author SHA1 Message Date
MallocArray
e47a9057ea Update AQI breakpoints to 2024 values (#208)
* Update breakpoints to 2024 standard

* Update formula to match Wikipedia
https://en.wikipedia.org/wiki/Air_quality_index#Computing_the_AQI

---------

Co-authored-by: Samuel Siburian <samuelbles07@gmail.com>
2024-10-19 14:55:08 +07:00
samuelbles07
399b4ca1dc Other related class use new AgValue structure 2024-10-19 01:35:36 +07:00
samuelbles07
0ccf46c219 Rename AgValueType to MeasurementType
Just use plain enum instead of enum class
Remove unecessary legacy variables and function
2024-10-19 01:32:41 +07:00
samuelbles07
76a2f332d7 Fix rhum precission on buildIndoor measurements 2024-10-17 12:08:00 +07:00
samuelbles07
ed344d3e1a measurement toString
Tested on I-9PSL monitor
Update OneOpenAir post and mqtt to use new measurement toString
2024-10-17 00:53:49 +07:00
samuelbles07
2082a2fa93 Fix missing line when commit 2024-10-14 02:14:10 +07:00
samuelbles07
e145d32714 First test, console
Working average from main only
2024-10-14 02:05:30 +07:00
samuelbles07
a2c19438c0 validateChannel implementation 2024-10-14 01:54:55 +07:00
samuelbles07
ac838efdb5 validate measurement type channel 2024-10-14 01:25:35 +07:00
samuelbles07
751d4e8380 Get value from each data type 2024-10-14 01:22:44 +07:00
samuelbles07
6925b1ac9a Provide channel for neccessary ValueType
To support OA that have 2 PMS sensor
2024-10-13 23:30:03 +07:00
samuelbles07
ea91cf9b6c New function to set max update before averaging
Rename enum member
2024-10-11 22:47:43 +07:00
samuelbles07
467b3e8637 Tidy up 2024-10-11 22:11:26 +07:00
samuelbles07
2a5cf78b68 updateValue return bool to indicate max average is set or not
Add more comments
Update naming
2024-10-11 22:05:03 +07:00
samuelbles07
9c09b82efd The data structure and update value function 2024-10-11 20:54:05 +07:00
samuelbles07
60d01c0d94 First init the data structure 2024-10-10 22:51:37 +07:00
samuelbles07
e7a91c53bc Update PM ledbar threshold 2024-10-08 00:34:29 +07:00
Kelly Campbell
4e41fd5d71 Fix default for ledBarMode (#252) 2024-10-07 21:31:24 +07:00
samuelbles07
fe4389bff4 Fix color under <4000 for co2 2024-09-30 22:43:08 +07:00
samuelbles07
9325830fad Replace orange to yellow for ledbar co2 indicator 2024-09-30 22:38:52 +07:00
samuelbles07
b86f0d45e3 Update PM2 level ledbar indicator 2024-09-30 22:33:52 +07:00
samuelbles07
210f0a5ff9 Update CO2 level ledbar indicator 2024-09-30 22:27:45 +07:00
Phat Nguyen
cb511903ef Update the API use Stream instead of Hardware/Software serial 2024-09-24 20:07:14 +07:00
Phat Nguyen
ebb3f01dcd set active mode on init 2024-09-24 10:39:17 +07:00
Phat Nguyen
2e0ba26c97 Merge commit '0370a8aa15ffaf776f9055f84b5d7c221046b9be' into fix/pms-read-data 2024-09-24 10:39:04 +07:00
Phat Nguyen
c1a4758c6c update timeout handle 2024-09-24 10:28:41 +07:00
AirGradient
0370a8aa15 Update AirGradient.h to 3.1.9 2024-09-24 10:05:04 +07:00
AirGradient
8873bacf55 Merge pull request #243 from airgradienthq/feature/add-pm-configuratin-for-display
Add configuration: monitorDisplayCompensatedValues
2024-09-24 09:42:50 +07:00
AirGradient
bf2388b121 Merge pull request #241 from DmitryPustovit/support-display-disable-for-diy-board
Added support clearing display at 0 brightness for DIY Boards
2024-09-24 09:41:01 +07:00
Phat Nguyen
2a6fce674e add variable comment 2024-09-23 06:51:01 +07:00
Achim
3adf58537a Changed error message 2024-09-22 14:13:24 +07:00
Phat Nguyen
12c6ec9910 format code 2024-09-21 17:48:18 +07:00
Phat Nguyen
d108b63a57 Update read proccess 2024-09-21 17:47:59 +07:00
Phat Nguyen
866684eb30 fix load configuration value changed 2024-09-21 14:26:06 +07:00
Phat Nguyen
9d01479406 Update show PM compensate value on display and documents 2024-09-21 14:08:42 +07:00
Phat Nguyen
20245f2110 Saving work 2024-09-21 13:06:01 +07:00
Dmitry Pustovit
c4024f49fb Added support clearing display at 0 brightness for DIY Boards to AgOledDisplay.
Currently, the only affect the brightness setting has with the DIY boards is an attempt to set the contrast. 

Setting the contrast to 0 does not have any effect. 
This appears to be a know limitation for these display boards.
2024-09-20 00:36:34 -07:00
Phat Nguyen
507b958fdf Correct LED bar show PM value use compensate 2024-09-17 10:15:47 +07:00
Phat Nguyen
c8d5b546ed correct PM compensate the input argument value humidity instead of temperature, fix #234 2024-09-16 14:52:04 +07:00
AirGradient
b7cfdc4c4d Update AirGradient.h to v 3.1.8 2024-09-16 12:47:50 +07:00
nick-4711
520550037d Explicitly set active mode for PM sensor upon initialization 2024-09-15 08:26:38 +07:00
nick-4711
90f336dee7 Revert "Explicitly set active mode for PM sensor upon initialization"
This reverts commit 0d39643e76.
2024-09-15 08:23:32 +07:00
nick-4711
0d39643e76 Explicitly set active mode for PM sensor upon initialization 2024-09-15 08:22:50 +07:00
Phat Nguyen
21232ec49d Optimize PMS sensor read data on active mode send each second 2024-09-14 14:05:35 +07:00
samuelbles07
013fb94307 Only for tcp timeout
Ignoring connect to server timeout
2024-09-11 16:37:50 +07:00
samuelbles07
e16373a64d Add new public member to set http client timeout by caller 2024-09-11 16:02:13 +07:00
samuelbles07
f929623443 Fix uri formatting postToServer to use apiRoot 2024-09-11 16:01:16 +07:00
samuelbles07
59587ce2b7 Add http request timeout number for ApiClient 2024-09-11 15:48:44 +07:00
Phat Nguyen
28096e9faf Update version to 3.1.7 2024-09-02 19:55:16 +07:00
Phat Nguyen
682378a47c Merge pull request #231 from airgradienthq/develop
Add WiFi feature
2024-09-02 19:53:33 +07:00