when testing GH-125 in production, we discovered at ^1 that Grafana would croak on non-numeric fields being established on the Graph panel. They will make the panel croak like InfluxDB Error: unsupported mean iterator type: *query.stringInterruptIterator or InfluxDB Error: not executed [^2].
While the ecowitt2mqtt decoder strips all text fields like PASSKEY, stationtype, and model from the original data, it adds a few other text fields through its computed data:
Hi again,
when testing GH-125 in production, we discovered at ^1 that Grafana would croak on non-numeric fields being established on the Graph panel. They will make the panel croak like
InfluxDB Error: unsupported mean iterator type: *query.stringInterruptIterator
orInfluxDB Error: not executed
[^2].While the
ecowitt2mqtt
decoder strips all text fields likePASSKEY
,stationtype
, andmodel
from the original data, it adds a few other text fields through its computed data:This patch fixes it, by skipping all non-numeric fields when provisioning the Grafana panel.
With kind regards, Andreas.
[^2]: Did anyone of you observe this flaw in the past already, @tonkenfo, @wetterfrosch, or @ClemensGruber?