Comments (6)
Fixed and landed in #276
from homebridge-weather-plus.
Looking at the code, without reproducing it myself, this does definitely look like a bug.
In the update(forecastDays, callback)
function in openweathermap.js, it tries to fetch the current forecast with the 2.5 API:
// Old api requires an extra call to get the forecast
if (this.api === "2.5")
{
this.getWeatherData(this.apiBaseURL + "/data/2.5/forecast", (error, result) =>
{
this.generateForecasts(weather, result["list"], result["city"]["timezone"], callback);
});
}
In the function getWeatherData()
, if there is a requestError
it calls the callback with a null
result object, aka callback(requestError);
Then when it tries to process the response:
this.generateForecasts(weather, result["list"], result["city"]["timezone"], callback);
it does not take into account that an error
may have occurred and the result
object is null
.
from homebridge-weather-plus.
I have a fix that would handle this error gracefully, aka log it and move on.
Can I send you an updated openweathermap.js
file to test?
from homebridge-weather-plus.
Hello,
I have the same issue that occasionally occurs on version 3.2.11
.
I would appreciate the update of the openweathermap.js
file to test !
Thank you!
from homebridge-weather-plus.
Are we able to close this now?
from homebridge-weather-plus.
Hello thanks so much for the work! I missed the notifications unfortunately. Yes, we can close this now, thanks again!
from homebridge-weather-plus.
Related Issues (20)
- Remove support for DarkSky HOT 3
- Each sensor is named "Now" HOT 9
- Temperature data is merged when you have multiple weather stations HOT 1
- OpenWeatherMap nor forcast devices, data available in Browser HOT 3
- Openweather map dew point and UV index HOT 10
- [Tempest Weatherflow] When station offline: 1) history repeats last measurement forever, 2) one warning per minute in log HOT 11
- [Tempest WeatherFlow] v3.3.2 ReferenceError: accumulation is not defined HOT 9
- [Weatherflow Tempest] Report additional failed sensors HOT 2
- Error retrieving weather report: undefined HOT 10
- thresholdCloudCover on openweathermap.org HOT 16
- Add Light Level history/graphing support HOT 4
- [Weatherflow Tempest] Bizarrely reporting 0ΒΊC, even though the Tempest app does not HOT 41
- Unable to uninstall or update HOT 1
- Getting error "Could not retreive weather report with API 3.0, trying API 2.5 now" HOT 3
- No wind sensor with 3.3.4 Beta 1 HOT 13
- Exceed quota on OWM and/or Wunderground when used in conjunction with Tempest
- Wondered why my threshold entries were empty in the settings HOT 6
- Homekit dropping occupancy sensors when Home Hub changes HOT 4
- Wind speed threshold error in v3.3.5 HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-weather-plus.