Working to setup a build environement for the AirGradient firmware, to allow me to make potential “tweaks” to the monitor firmware.
Followed the procedure for IDE setup (have been doing numerous Arduino projects, so my baseline is good).
Added the ESP32 device and did the git clone of the Arduino libarary. Compile tries to run, but errors with:
/tmp/arduino_build_749163/sketch/OneOpenAir.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Libraries/airgradient-client/src/common.h: []
OneOpenAir:39:10: fatal error: Libraries/airgradient-client/src/common.h: No such file or directory
ResolveLibrary(Libraries/airgradient-client/src/common.h)
→ candidates: []
#include “Libraries/airgradient-client/src/common.h”
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Using library AirGradient_Air_Quality_Sensor at version 3.3.9 in folder: /home/tadawson/Arduino/libraries/AirGradient_Air_Quality_Sensor
Using library Wire at version 2.0.0 in folder: /home/tadawson/.arduino15/packages/esp32/hardware/esp32/2.0.17/libraries/Wire
Using library EEPROM at version 2.0.0 in folder: /home/tadawson/.arduino15/packages/esp32/hardware/esp32/2.0.17/libraries/EEPROM
Using library ESPmDNS at version 2.0.0 in folder: /home/tadawson/.arduino15/packages/esp32/hardware/esp32/2.0.17/libraries/ESPmDNS
exit status 1
Libraries/airgradient-client/src/common.h: No such file or directory
Note also that this path is explicitly called from the OneOpenAir.ino file in the examples tree in the AirGradient_Air_Quality_Sensor library, no matter how it is uploaded, and in both the 3.3.9 and 3.4.0 versions.
Notably, nothing in the directions, imported library (either via library install, git clone, or the 3.4.0 (latest) .zip release provides this path or file. I did find what looks like “airgradient-client” in git, which has it, but the build environment does not seem to be able to find it, even when placed in the failing path, perms correct, and the IDE restarted.
Is the doc deprecated (or flat out wrong), or ? ? ? This shouldn’t be this difficult . . . You guys build it, so one would think the build process and environment would be extremely well known and documented . . .
Thanks,
- Tim