You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/howto-compile.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,15 @@ Arduino IDE version 2.x ([download](https://www.arduino.cc/en/software))
16
16
17
17
#### Version < 3.2.0
18
18
19
-
Using library manager install the latest version (Tools ➝ Manage Libraries... ➝ search for `"airgradient"`)
19
+
Using library manager install the latest version (Tools ➝ Manage Libraries... ➝ search for `"airgradient"`)
20
20
21
21

22
22
23
23
#### Version >= 3.3.0
24
24
25
25
- From your terminal, go to Arduino libraries folder (windows and mac: `Documents/Arduino/libraries` or linux: `~/Arduino/Libraries`).
26
-
- With **git** cli, execute this command `git clone --recursive https://github.com/airgradienthq/arduino.git AirGradient_Air_Quality_Sensor`
27
-
- Restart Arduino IDE
26
+
- With **git** cli, execute this command `git clone --recursive https://github.com/airgradienthq/arduino.git AirGradient_Air_Quality_Sensor`
27
+
- Restart Arduino IDE
28
28
29
29
3. On tools tab, follow settings below
30
30
@@ -57,15 +57,15 @@ Upload Speed ➝ 921600
57
57
58
58

59
59
60
-
3. Install AirGradient library on library manager using the latest version (Tools ➝ Manage Libraries... ➝ search for `"airgradient"`)
60
+
3. Install AirGradient library on library manager using the latest version (Tools ➝ Manage Libraries... ➝ search for `"airgradient"`)
61
61
62
62

63
63
64
64
4. On tools tab, set board to `LOLIN(WEMOS) D1 R2 & mini`, and let other settings to default
65
65
66
66

67
67
68
-
5. Open sketch to compile (File ➝ Examples ➝ AirGradient Air Quality Sensor ➝ `<Model Option>`). Depends on the DIY model, either `BASIC`, `DiyProIndoorV3_3` and `DiyProIndoorV4_2`
68
+
5. Open sketch to compile (File ➝ Examples ➝ AirGradient Air Quality Sensor ➝ `<Model Option>`). Depends on the DIY model, either `BASIC`, `DiyProIndoorV3_3` and `DiyProIndoorV4_2`
69
69
6. Compile
70
70
71
71

@@ -78,13 +78,13 @@ ModuleNotFoundError: No module named ‘serial’
78
78
79
79

80
80
81
-
Make sure python pyserial module installed globally in the environment by executing:
81
+
Make sure python pyserial module installed globally in the environment by executing:
82
82
83
83
`$ sudo apt install -y python3-pyserial`
84
84
85
-
or
85
+
or
86
86
87
-
`$ pip install pyserial`
87
+
`$ pip install pyserial`
88
88
89
89
Choose based on how python installed on your machine. But most user, using `apt` is better.
“ecda3b1eaaaf” being the serial number of your monitor.
21
21
22
22
You get the following response:
23
-
```json
23
+
```json
24
24
{
25
25
"wifi": -46,
26
26
"serialno": "ecda3b1eaaaf",
@@ -84,7 +84,7 @@ Compensated values apply correction algorithms to make the sensor values more ac
84
84
85
85
"/config" path returns the current configuration of the monitor.
86
86
87
-
```json
87
+
```json
88
88
{
89
89
"country": "TH",
90
90
"pmStandard": "ugm3",
@@ -118,22 +118,22 @@ Configuration parameters can be changed with a PUT request to the monitor, e.g.
118
118
Example to force CO2 calibration
119
119
120
120
```bash
121
-
curl -X PUT -H "Content-Type: application/json" -d '{"co2CalibrationRequested":true}' http://airgradient_84fce612eff4.local/config
121
+
curl -X PUT -H "Content-Type: application/json" -d '{"co2CalibrationRequested":true}' http://airgradient_84fce612eff4.local/config
122
122
```
123
123
124
124
Example to set monitor to Celsius
125
125
126
126
```bash
127
-
curl -X PUT -H "Content-Type: application/json" -d '{"temperatureUnit":"c"}' http://airgradient_84fce612eff4.local/config
127
+
curl -X PUT -H "Content-Type: application/json" -d '{"temperatureUnit":"c"}' http://airgradient_84fce612eff4.local/config
128
128
```
129
129
130
130
If you use command prompt on Windows, you need to escape the quotes:
131
-
131
+
132
132
``` -d "{\"param\":\"value\"}" ```
133
133
134
134
### Avoiding Conflicts with Configuration on AirGradient Server
135
135
136
-
If the monitor is set up on the AirGradient dashboard, it will also receive the configuration parameters from there. In case you do not want this, please set `configurationControl` to `local`. In case you set it to `cloud` and want to change it to `local`, you need to make a factory reset.
136
+
If the monitor is set up on the AirGradient dashboard, it will also receive the configuration parameters from there. In case you do not want this, please set `configurationControl` to `local`. In case you set it to `cloud` and want to change it to `local`, you need to make a factory reset.
137
137
138
138
### Configuration Parameters (GET/PUT)
139
139
@@ -204,34 +204,34 @@ Example correction configuration:
204
204
Field Name: `pm02`
205
205
206
206
| Algorithm | Value | Description | SLR required |
207
-
|------------|-------------|------|---------|
207
+
|------------|-------------|------|---------|
208
208
| Raw |`"none"`| No correction (default) | No |
209
209
| EPA 2021 |`"epa_2021"`| Use EPA 2021 correction factors on top of raw value | No |
Copy file name to clipboardExpand all lines: docs/ota-updates.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## OTA Updates
2
2
3
-
From [firmware version 3.1.1](https://github.com/airgradienthq/arduino/tree/3.1.1) onwards, the AirGradient ONE and Open Air monitors support over the air (OTA) updates.
3
+
From [firmware version 3.1.1](https://github.com/airgradienthq/arduino/tree/3.1.1) onwards, the AirGradient ONE and Open Air monitors support over the air (OTA) updates.
4
4
5
5
#### Mechanism
6
6
@@ -10,7 +10,7 @@ The device attempts to update to the latest version on startup and in regular in
0 commit comments