Sometimes, a reboot will fail because the plugin doesn't read the JSON properly from ambientweather on reboot.
To Reproduce:
Rebooting.
Expected behavior:
There should not be an error
Logs:
[21/01/2024, 10:09:58] [AmbientWeatherSensors] ERROR: invalid json response body at https://rt.ambientweather.net/v1/devices?applicationKey=xxx&apiKey=xxx reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
TypeError: Cannot read properties of undefined (reading 'filter')
at HumidityAccessory.updateData (/var/lib/homebridge/node_modules/homebridge-ambient-weather-sensors/src/humidityAccessory.ts:49:28)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Describe The Bug:
Sometimes, a reboot will fail because the plugin doesn't read the JSON properly from ambientweather on reboot.
To Reproduce:
Rebooting.
Expected behavior:
There should not be an error
Logs:
Plugin Config:
Screenshots:
Environment: