diff --git a/src/openweathermap_org.js b/src/openweathermap_org.js index 20e1dbc..a9e0d08 100644 --- a/src/openweathermap_org.js +++ b/src/openweathermap_org.js @@ -378,7 +378,11 @@ function parseWeatherCurrent() { this._currentWeatherSunrise.text = sunrise; this._currentWeatherSunset.text = sunset; this._currentWeatherBuild.text = lastBuild; - this._currentWeatherWind.text = this.formatWind(json.wind.speed, this.getWindDirection(json.wind.deg)); + if (json.wind != undefined && json.wind.deg != undefined) { + this._currentWeatherWind.text = this.formatWind(json.wind.speed, this.getWindDirection(json.wind.deg)); + } else { + this._currentWeatherWind.text = _("?"); + } this.parseWeatherForecast(); this.recalcLayout();