Apparently yahoo changed or his api.
Here are some modifications to use the "new" api (
https://query.yahooapis.com/v1/public/yql?format=json&env=store://datatables.org/alltableswithkeys&q=select%20*%20from%20weather.forecast%20where%20woeid=%22FRXX0280%22 )
I added 2 fixes (incorrect pressure units in celcius mode, incorrect wind chill temp unit).
diff applet.js.old applet.js
61,65c61,63
< const QUERY_PARAMS = '?format=json&q=select '
< const QUERY_TABLE = 'feednormalizer where url="
http://xml.weather.yahoo.com/forecastrss/'
< const QUERY_VIEW = '*'
< const QUERY_URL = '
http://query.yahooapis.com/v1/public/yql' + QUERY_PARAMS + QUERY_VIEW + ' from ' + QUERY_TABLE
<
---
> const QUERY_URL = '
https://query.yahooapis.com/v1/public/yql'
> const QUERY_PARAMS = 'format=json&env=store://
datatables.org/alltableswithkeys'
> const QUERY = 'select * from weather.forecast where woeid='
389c387
< let weather = json.get_object_member('query').get_object_member('results').get_object_member('rss').get_object_member('channel')
---
> let weather = json.get_object_member('query').get_object_member('results').get_object_member('channel')
405,406c403
< //let pressure_unit = weather.get_object_member('units').get_string_member('pressure')
< //log('pressure: ' + pressure + ' ' + pressure_unit)
---
> let pressure_unit = weather.get_object_member('units').get_string_member('pressure')
472a470,473
> if (this._temperatureUnit == WeatherUnits.CELSIUS) {
> wind_chill = Math.round((wind_chill - 32) * 5 / 9);
> }
>
476a478,483
>
> // Check if yahoo returned mb or inHG while temperature in celcius:
> if (this._temperatureUnit != WeatherUnits.FAHRENHEIT && pressure > 20) {
> pressure = pressure / WEATHER_CONV_MBAR_IN_INHG
> }
>
801,802c808,813
< //let output = QUERY_URL + ' where location="' + this._woeid + '" and u="' + this.unitToUrl() + '"'
< let output = QUERY_URL + this._woeid + '_' + this.unitToUrl() + '.xml"'
---
> unit = ""
> if (this._temperatureUnit != WeatherUnits.FAHRENHEIT) {
> unit = " and u = 'c'"
> }
> let query = "select * from weather.forecast where woeid ='" + this._woeid + "'" + unit
> let output = QUERY_URL + '?' + QUERY_PARAMS + "&q=" + query
However, I can't figure out why translation doesn't work while my locale is supported.
Regards.