Skip to content

Commit

Permalink
Merge pull request #270 from roberbike/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
hpsaturn authored Oct 21, 2023
2 parents 1d7310c + 11cb99c commit 5f37c85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cloud_anaire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ void anairePublish() {
doc["geo"] = cfg.geo;
doc["battery"] = String(battery.getCharge());
doc["VBat"] = String(battery.getVoltage());
doc["co"] = String(sensors.getCO());
doc["nh3"] = String(sensors.getNH3());
doc["no2"] = String(sensors.getNO2());

size_t n = serializeJson(doc, buffer);

Expand Down
3 changes: 3 additions & 0 deletions src/cloud_hass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ void hassPubSensorPayload() {
doc["voltage"] = String(battery.getVoltage());
doc["cpm"] = String(sensors.getGeigerCPM());
doc["usvh"] = String(sensors.getGeigerMicroSievertHour());
doc["co"] = String(sensors.getCO());
doc["nh3"] = String(sensors.getNH3());
doc["no2"] = String(sensors.getNO2());

size_t n = serializeJson(doc, buffer);

Expand Down
1 change: 1 addition & 0 deletions src/cloud_influxdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void influxDbParseFields() {
sensor.addField("gas",sensors.getGas());
sensor.addField("nh3",sensors.getNH3());
sensor.addField("co",sensors.getCO());
sensor.addField("no2",sensors.getNO2());
sensor.addField("alt",sensors.getAltitude());
sensor.addField("cpm",sensors.getGeigerCPM());
sensor.addField("usvh",sensors.getGeigerMicroSievertHour());
Expand Down

0 comments on commit 5f37c85

Please sign in to comment.