Commit Graph

158 Commits

Author SHA1 Message Date
15dec40dfc Merge remote-tracking branch 'origin/master' into develop 2024-03-16 09:11:25 +07:00
4a36cf0c13 Merge pull request #83 from austvik/master
Standardize result of /measures/current
2024-03-16 09:08:53 +07:00
471448a0f1 Prevent reboot in offline mode 2024-03-16 08:50:43 +07:00
49c7877ec3 Standardize result of /measures/current
Makes it easier for integrations which talks both to the cloud and to the
Cloud API to support the same format for reading current measures.

In practice this adds the firmware version and led mode to the output, and
changes the writing of pm003Count, tvocIndex and noxIndex to use the same
spelling as for the documented cloud API.
2024-03-15 19:22:00 +01:00
be1a9778e6 Fix: PMS Read Failed 2024-03-14 21:17:43 +07:00
ed1d45cea1 Fix OpenMetrics typo: celcius -> celsius
See #78
2024-03-10 11:02:04 +00:00
d92d312b0c add openmetrics 2024-03-10 11:57:52 +07:00
6837529096 add compensation temperature and humidity for SGP41 2024-03-10 11:20:52 +07:00
b94ae9eff0 Merge remote-tracking branch 'origin/master' into develop 2024-03-10 10:10:58 +07:00
1810c0f355 Merge pull request #78 from gouthamve/better-openmetrics-names
[ONE/Prometheus] Use full unit in temperature metric
2024-03-10 09:58:09 +07:00
9ae8fb2355 fix: Completely turn off LEDbar 2024-03-10 09:34:04 +07:00
512509c2e2 Print HTTP Response in logs in case of error 2024-03-10 08:44:49 +07:00
f60e9bbe3e Fix MDNS Service Discovery:
- Underscore before names per https://github.com/espressif/arduino-esp32/issues/962
- Only one service per port

The combination of both changes is needed to make the service discoverable in OpenHAB

The removal of the published http service is maybe something you don't want,
but as long as it doesn't serve web pages it is maybe OK?
2024-03-08 23:37:12 +01:00
f361e3c9a9 [ONE/Prometheus] Use full unit in temperature metric
Please see: https://prometheus.io/docs/practices/naming/#base-units

Also, thanks a lot for this support, I had my own exporter that I can now delete :)

Signed-off-by: gouthamve <gouthamve@gmail.com>
2024-03-08 19:02:19 +01:00
e76dcf07c8 Updated log texts 2024-03-08 13:47:28 +07:00
e6fe489be7 Updated display texts 2024-03-08 13:29:17 +07:00
78b1b0975c update: Connect to Dashboard show also S/N, remove test code 2024-03-07 21:48:13 +07:00
d99881aa46 update: Connect to Dashboard show also S/N 2024-03-07 21:44:46 +07:00
df937fe65f update mDNS servicce and attribute 2024-03-07 21:30:42 +07:00
dc742d3c92 Updated log messages and version number 2024-03-07 16:11:36 +07:00
bb804b9f6a fix: O-1PS not recognize without SGP sensor 2024-03-06 18:02:32 +07:00
469d07a2d6 fix: O-1PS not recognized 2024-03-06 17:20:55 +07:00
6cf5e31843 add nox_index to payload 2024-03-03 22:24:58 +07:00
3f1da6387b Update mDNS service model attribute 2024-03-03 22:03:23 +07:00
d78205aa20 Changed measurement and update interval for Open Air. Added fw version to logs. 2024-03-02 15:04:30 +07:00
c1228bbd06 Changed measurement and update intervalls 2024-03-02 14:05:00 +07:00
1eb43f684b Fix SHT read error. 2024-03-02 13:41:08 +07:00
4798e44cb7 MDNS replace board with model 2024-03-01 21:56:21 +07:00
a867e9af38 revert SENSOR_TEMP_HUM_UPDATE_INTERVAL value 2024-03-01 19:51:58 +07:00
b4d6006678 Changed PM polling frequency for Open Air to 2s 2024-02-29 18:30:52 +07:00
236c5bab84 Added offline mode after LED test. 2024-02-29 18:15:22 +07:00
852fdc4360 Renamed example file. 2024-02-29 17:58:58 +07:00
f7e85a92e8 Uped version Nr. Renamed examples. 2024-02-29 17:58:14 +07:00
67785ed99b Update API naming 2024-02-29 15:20:19 +07:00
173e3caf2f Update API naming 2024-02-29 15:07:23 +07:00
0bda7a1c4b Change pmPoll interval from 5s to 2s 2024-02-29 14:00:19 +07:00
9a31c107fa add get BoardName from AirGradient library 2024-02-29 13:58:48 +07:00
3e4e2affa8 Merge pull request #59 from dechamps/prometheus
Add support for Prometheus/OpenMetrics to One V9
2024-02-29 13:47:49 +07:00
5de3a34dd0 Add mDNS attribute 2024-02-29 10:22:05 +07:00
b94112e22a Merge pull request #64 from airgradienthq/feature/led-bar-color-for-pms-and-co2
Feature/led bar color for pms and co2
2024-02-29 09:38:13 +07:00
d8cba0d346 fix: build fail if set Core Debug Level to Verbose, #57 2024-02-29 09:33:33 +07:00
0084b6fb91 fix: update cloud sync json noxIndex by nox_index 2024-02-29 08:39:05 +07:00
cf5ff99d8a add Factory RESET 2024-02-26 17:48:22 +07:00
13f6c2c747 fix: Mqtt sending interval 2024-02-26 15:55:33 +07:00
760f827d0d Add support for Prometheus/OpenMetrics to One V9
This commit adds a new feature to the One V9 (ONE_I-9PSL) firmware:
support for exposing metrics to Prometheus (or any other ingestor
compatible with the OpenMetrics format).

With this change, the AirGradient device will make metrics available
on the standard HTTP /metrics endpoint, out-of-the-box, with no need to
do anything else. All the user has to do is add their device address as
a target to their scrape config on their Prometheus server.

For more information on Prometheus and OpenMetrics, see:

- https://prometheus.io/docs/instrumenting/exposition_formats/
- https://openmetrics.io/
- https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md

This obsoletes projects such as:

- ebfa8d0ac6/AirGradient-DIY
- https://forum.airgradient.com/t/prometheus-integration/1504
2024-02-25 17:51:58 +00:00
7e3eabf09f Remove old color set process for PM 2024-02-21 21:18:44 +07:00
68953d7390 Update LED for PM and CO2 2024-02-21 21:16:01 +07:00
af139331b1 Show message when sensor module not found on display 2024-02-20 21:05:13 +07:00
e79a798b88 Update show invalid value into display 2024-02-20 21:05:04 +07:00
14fb790e2a PMS5003 add failed count to 3 before show invalid value to display 2024-02-20 20:36:06 +07:00