Closed iksws closed 8 years ago
I fixed it like this Just need to change the query block:
// Query
const QUERY_PARAMS = '?q=select'
const QUERY_TABLE = 'weather.forcast'
const QUERY_VIEW = '*'
const QUERY_CMD = this.woeid
const QUERY_URL = 'http://query.yahooapis.com/v1/public/yql' + QUERY_PARAMS + QUERY_VIEW + ' from ' + QUERY_TABLE + 'where ' +QUERY_CMD
Also need to change the WOEID_URL:
const UUID = "weather@mockturtl"
const APPLET_ICON = "view-refresh-symbolic"
const CMD_SETTINGS = "cinnamon-settings applets " + UUID
const WOEID_URL = "http://woeid.rosselliot.co.nz"
const CMD_WOEID_LOOKUP = "xdg-open " + WOEID_URL
Lastly have to change weatherURL:
, weatherUrl: function weatherUrl() {
let output = QUERY_URL + "format=json&callback="
//let output = QUERY_URL + this._woeid + '_' + this.unitToUrl() + '.xml"'
return output
}
It has stopped working for me too. However I'm total noob I don't know how to fix it like the guys above.
Same trouble here. I tried to replace the applet.js file by the file proposed by iksws without success. I also try to directly edit like LinuxEngineer. As I understand, we must also change the WOIED to complete the fix and I now have a 4 digits code (before, it was a longer mix of letters and numbers).
The PR #143 contains a solution already applied in the source code. And if you have some doubt to install the applet, the issue #146 have the step's to do it.
+1 here! Fixed using code in #143
duplicates #127
Your applet stop working in cinnamon 2.8.8 well I need this weather infos hehe I look your code and I think yahoo weather change API I make some changes in your code and working now :D but I change WOEID and now i not get more XML get pure JSON
not more 4 leters and 4 numbers, now is only number of the city in geodata! After my WOEID is BRXX0043 now my WOEID in applet conf is 27455819 I use this link to get my id http://woeid.rosselliot.co.nz/lookup/brasilia well is it!
FULL CODE CHANGED