Commit Graph
69 Commits
Author SHA1 Message Date
samuelbles07 46f6309b77 Fix use the right function 2024-11-18 22:42:43 +07:00
samuelbles07 1b4d89e1a1 fix correction on top of compensation 2024-11-18 19:53:28 +07:00
samuelbles07 a513943cba New agvalue member to get avg values 2024-11-09 23:27:29 +07:00
samuelbles07 96bb6952fb correction function return raw if algorithm is none 2024-11-09 21:28:33 +07:00
samuelbles07 ade72ff3b8 Apply correction to transmission payload
Only for indoor
2024-11-02 16:11:00 +07:00
samuelbles07 7b0381dea3 Apply pm correction to display and led bar 2024-11-02 14:44:32 +07:00
samuelbles07 3a9bb16c09 Change json key name for particle count 2.5 and 5.0 2024-11-01 17:46:58 +07:00
samuelbles07 bb754edc51 Add other sensor json key field as const 2024-11-01 17:44:11 +07:00
samuelbles07 1d991b1004 json key field from constants 2024-11-01 17:26:18 +07:00
samuelbles07 e6696f3d41 New particle count 0.5 and 5.0 2024-10-29 23:51:19 +07:00
samuelbles07 bf0768c7da Comment description to invalidValue variable 2024-10-23 20:55:45 +07:00
samuelbles07 33e2977eb4 Fix comments 2024-10-23 11:18:18 +07:00
samuelbles07 85e779cfc2 Use camel case for transmission payload 2024-10-23 11:05:16 +07:00
samuelbles07 4783684443 Update local server payloads 2024-10-22 18:37:56 +07:00
samuelbles07 3b0c77ca4d New measurements add to transmission payload 2024-10-22 18:28:56 +07:00
samuelbles07 eeba41f497 Include other PMS data to measurements 2024-10-22 17:13:15 +07:00
samuelbles07 4673999dda Fix var type 2024-10-22 12:50:43 +07:00
samuelbles07 8a87b865e6 Handle consecutive invalid value update
Set measurements type average value to invalid when invalidCounter reached max period
2024-10-21 22:37:44 +07:00
samuelbles07 c3068be6e9 Fix calculation PPT compensated PM2.5 2024-10-21 22:00:47 +07:00
samuelbles07 63bb5f8ddb Compensate function use float data type 2024-10-21 01:49:01 +07:00
samuelbles07 8548d3e9f4 Optional to debug every measurement update value 2024-10-21 00:43:04 +07:00
samuelbles07 f7e1363da9 Rename function 2024-10-21 00:22:50 +07:00
samuelbles07 43ca0a2c2e get and getFloat function specific for latest value
Update functions comments
2024-10-20 20:04:07 +07:00
samuelbles07 84884d0c15 Move average member value to update struct 2024-10-20 19:20:17 +07:00
samuelbles07 f36f860c2e Switch to moving average for sensor data
average value to floating points
2024-10-20 19:01:41 +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
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 8b0fe967f1 Merge pull request #223 from airgradienthq/hotfix/print-log-wrong-format
Fix print log message number format
2024-09-02 12:11:43 +07:00
Phat Nguyen 28d27ee8fd Rename temperatureCompensated to compensateTemp and humidityCompensated to compensateHum 2024-08-30 19:17:58 +07:00
Phat Nguyen 753f22923c rename isValidPMS to isValidPm 2024-08-30 19:07:31 +07:00
Phat Nguyen c45901706f Merge branch 'develop' into hotfix/pms25-compensated-show-on-display 2024-08-30 19:02:50 +07:00
Phat Nguyen 7a988ea6c1 rename compensated to compensate 2024-08-26 11:56:01 +07:00
Phat Nguyen db21648e91 Merge branch 'develop' into feature/send-pms-sensor-fw-version-to-ag-cloud 2024-08-25 20:46:28 +07:00
Phat Nguyen 81b13134d2 update PM2.5 firmware prefix to PMS5003x 2024-08-16 06:42:43 +07:00
Phat Nguyen f3a9c722b2 Change pm25Compensated to compensated 2024-08-16 06:39:52 +07:00
Phat Nguyen 6cd587b008 Merge remote-tracking branch 'origin/develop' into feature/correct-pm2.5-formula 2024-08-15 08:19:10 +07:00
Phat Nguyen 6d01366887 change pmsFirmare to firmware 2024-08-15 08:04:30 +07:00
Phat Nguyen 040bd28038 Add report PMS5003 and PMS5003T firmware version 2024-08-07 08:50:43 +07:00