Commit Graph
91 Commits
Author SHA1 Message Date
samuelbles07 7a153cc0ea add cellular signal quality to post measures payload
If value invalid 0, then do include it to payload
2025-04-07 16:29:15 +07:00
samuelbles07 958ed0bd80 Fix TVOC and NOx payload position 2025-03-31 15:26:34 +07:00
samuelbles07 67d377a514 Rename measurementCycle on agVlaue to Measures
capitalize static const for image bit
2025-03-28 13:45:07 +07:00
samuelbles07 070a103234 build CE payload include tvoc and nox index
If measures value invalid, set it to empty
New schedule to print network signal
2025-03-26 16:18:48 +07:00
samuelbles07 0297059e91 Fix check pm0003 count is valid
AgLog set to debug level
2025-03-21 08:46:14 +07:00
samuelbles07 30622fca99 MeasurementCycle queue only applied for cellular
Cellular post measures payload different with wifi
Update submodule to support different cellular post endpoint
2025-03-21 04:40:27 +07:00
samuelbles07 66b0c63de5 New function for measurement cycle
getMeasurementCycle to capture current measurement that will be added to queue
buildMeasurementPayload using measurementCycle to build json string as transmission payload
2025-03-16 02:19:22 +07:00
samuelbles07 1c42ff083d Make PM correction applied for all model 2025-02-06 15:58:15 +07:00
samuelbles07 38aebeb50a Reformat pm correction enum naming 2025-02-06 12:49:41 +07:00
Samuel Siburian b0f5263829 Merge pull request #277 from airgradienthq/feat/correction-temp-hum
Apply temperature and humidity correction based on configuration
2025-02-06 10:14:38 +07:00
samuelbles07 15869be234 Rename prefix temp hum correction enum member 2025-02-05 11:05:36 +07:00
samuelbles07 d2ee3a5d24 Set default value for each measurements value to invalid 2025-02-03 01:28:42 +07:00
samuelbles07 af16c1c060 Apply temphum correction 2025-01-24 09:56:01 +07:00
samuelbles07 1666923ab3 Add AirGradient and Configuration object to AgValue 2025-01-23 03:33:47 +07:00
samuelbles07 89475ddf95 Get correction of temp and hum based on configuration 2025-01-23 01:21:27 +07:00
samuelbles07 c842346724 Fix invalidate value check for getAverage 2025-01-19 15:45:09 +07:00
Samuel Siburian 5bc1821ef9 Merge pull request #264 from airgradienthq/feat/ssl
Airgradient API calls using https
2024-12-05 13:23:52 +07:00
samuelbles07 6312612ada resetReason and freeheap only for esp32 based mcu 2024-11-30 00:45:46 +07:00
samuelbles07 c1f22674e2 Add reset reason to transmission payload 2024-11-29 18:01:34 +07:00
Jakub Porębski 39ef69cbdf Fix printing of debug logs throught serial 2024-11-27 17:18:43 +01:00
samuelbles07 4c165b31f5 Add freeheap to cloud payload 2024-11-21 02:36:56 +07:00
samuelbles07 2be91b3968 Boot count using setter and getter 2024-11-21 02:30:03 +07:00
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