I cloned, compiled, and created a config file for the AirDash macOS menu bar widget per Airdash - AirGradient Information in Mac Status Bar . I enabled AirGradient API access, replaced the API token in the config file, and also replaced the location ID (using an ID from this page). The API token page says my AG API access is “enabled” and displays the token.
When I invoke airdash
binary, an “ AirDash” task bar entry appears. Every minute after invocation, the binary prints this to stdout
:
"level":"ERROR","msg":"Fetching measures","error":"Error unmarshalling JSON"
Initially I thought this was a malformed config file, but the config file is in YAML, not JSON. The only JSON is from the API response. The git repo includes basic test coverage using 4 static JSON API replies (here). go test
passes. There doesn’t appear to be a way to set a log level at runtime in Go’s slog
library (without slog-env
, which isn’t used here), so that output is all I get.
Is anyone successfully using AirDash?