AirGradient Forum

Go's HTTP interface doesn't serve anything

Hi, I got my Go a week ago and I can’t seem to get the HTTP endpoint to serve me anything. I’ve got it set to ‘Stationary’, the display reports the IP. I’ve toggled it back and forth between portable/stationary, turned it off an on. But the server just returns a 404 on any endpoint I try, like:

% curl -i http://192.168.30.99/
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 29

Nothing matches the given URI

My config endpoint is http://hw.airgradient.com/sensors/airgradient:10bda3e48370/go/config

Am I missing something?

Hi @tall.lock, welcome to our community!

Could you try these endpoints instead?

For measurement:

curl -i http://192.168.30.99/api/v1/measures

For configuration:

curl -i http://192.168.30.99/api/v1/config

Alternatively, you can use the .local URL (please replace the SERIALNUMBER with your AirGradient Go’s serial number)

http://airgradient_SERIALNUMBER.local/api/v1/measures
http://airgradient_SERIALNUMBER.local/api/v1/config

You can take a look at this document for more information about the local HTTP API: firmware-core/docs/local_http_api.md at main · Open-Air-Foundation/firmware-core · GitHub

Please let me know if you still experience any issues or have any questions. Thanks!