Skip to content

lschloetterer/airgradient-one-v9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firmware for Airgradient ONE v9

based on https://github.com/airgradienthq/arduino

Changes

  • API URL hw.airgradient.com set to airgradient.internal
  • sending measurements via HTTP disabled
  • inital ping to server on startup is disabled
  • HTTP config endpoint is only called once on startup, not on a schedule
  • hardware watchdog reset after sending mqtt message
  • RGB strip shows gradual changes in CO2 value by calculating hue dynamically
  • added PlatformIO configuration

Using local config endpoint

A json object is expected at the webserver config endpoint. Here is an example configuration using Caddy:

http://airgradient.internal {
  respond /sensors/airgradient:SERIALNO/one/config `{"country": "DE", "pmStandard": "ugm3", "co2CalibrationRequested": false, "ledBarMode": "co2", "model": "onev9", "mqttBrokerUrl": "mqtt://user:password@mqtt-server:1883", "abcDays": -1, "ledBarTestRequested": false}` 200
  respond "request blocked" 403
}

replace SERIALNO with the serial number of your device

Updating

Use the update.sh script which downloads the newest version from the Airgradient GitHub repo and automatically pastes the aforementioned changes into the file

References

About

Firmware for Airgradient ONE v9 with PlatformIO config

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published