dhayab / homebridge-withings-air-quality

Homebridge plugin that exposes air quality data from the Withings WS-50 Smart Body Analyzer
MIT License
16 stars 6 forks source link

Cannot read property 'date' of undefined #7

Closed marmitol closed 4 years ago

marmitol commented 4 years ago

Hello.

The log shows this error.

Withings Air Quality] Could not fetch data from API / Cannot read property 'date' of undefined.

How can we make the data update frequency more frequent? Now the update frequency can be up to 24 hours. The data you display is not current.

Thank you very much.

dhayab commented 4 years ago

Hi,

The API used to retrieve the data needed by the plugin is unstable and sometimes it fails to return values that are expected in the code.

The smart scale, being a low-powered device, sends its data to the server at most twice a day in batch (less if you don’t wake it by using it). The plugin gets the latest data available from the API every 15 minutes.

marmitol commented 4 years ago

Okay.

What a quick response. I got it, thanks a lot.