BootCount not updated when posting to AirGradient is disabled
dtrejod opened this issue · 2 comments
Problem
When using the local server API to get air gradient sensor data, I noticed the boot
and bootCount
values were not being updated. This only happened after I configured postDataToAirGradient: false
. I have a simple airgradient prometheus exporter that I used to gather the local server metrics into a Prometheus instance. You can see from the below Grafana graph before postDataToAirGradient: false
, the boot count metric was incremented every 1m. After the change, the bootCount
value doesn't increment.

Analysis
It appears bootCount
is incremented in the sendDataToServer()
func. The func returns early, not incrementing bootCount
, when posting to airgradient servers is disabled.
Yes good point. We will fix in one of the next updates.