airgradienthq / arduino

Firmware of open-source hardware air quality monitors AirGradient ONE (indoor) and AirGradient Open Air (outdoor).
https://www.airgradient.com/documentation/
Other
220 stars 114 forks source link

Seperate Error Messages for AG Server N/A & Add to Dashboard #248

Open airgradienthq opened 2 months ago

airgradienthq commented 2 months ago

At the moment "AG Server N/A" is shown even if the AirGradient server is up and running but only the monitor has not been registered on the dashboard. In this case the "Add to Dashboard" messages should appear.

samuelbles07 commented 1 month ago

I can't reproduce this issue, in my test it works as expected @airgradienthq

a. TEST 1 - Remove monitor serial number from AG dashboard

IMG_9355

IMG_9354

Monitor will remove the notification on display when monitor is registered on AG dashboard and after monitor successfully fetch server configuration.

b. TEST 2 - Monitor registered on AG dashboard, and simulate AG server is "down" by setting http request timeout to 100ms

IMG_9351


Local configuration

{
  "country": "ID",
  "mqttBrokerUrl": "mqtt://broker.hivemq.com:1883",
  "configurationControl": "both",
  "pmStandard": "ugm3",
  "temperatureUnit": "c",
  "postDataToAirGradient": true,
  "ledBarBrightness": 10,
  "displayBrightness": 20,
  "ledBarMode": "co2",
  "tvocLearningOffset": 12,
  "noxLearningOffset": 12,
  "abcDays": 8,
  "model": "I-9PSL",
  "offlineMode": false,
  "monitorDisplayCompensatedValues": false
}
airgradienthq commented 1 month ago

@samuelbles07 with which exact firmware version did you test this?

samuelbles07 commented 1 month ago

@airgradienthq 3.1.9