This one does not work for me. I live in Bratislava, Slovakia, so my WOEID is 818717. I have actually debugged the YQL query used and it does not expect a WOEID, but it expects a string, in my case "AUXX0010". Never the less, I also tried "Bratislava, Slovakia", and also changing the query to use weather.search table, but it still crashes on json.get_object_member("query").get_object_member( "results") is null. It is NOT null (at least in YQL query console), but I am unable to check actual downloaded content in load_json_async() in extension.js (global.log does not work there for some reason?)
load_json_async: function(url, fun) {
global.log("Downloading weather"); ///////////////////////// will not log into looking glass?
let here = this;
let session = new Soup.SessionAsync();
if (Soup.Session.prototype.add_feature != null)
Soup.Session.prototype.add_feature.call(session, new Soup.ProxyResolverDefault());
let message = Soup.Message.new('GET', url);
session.queue_message(message, function(session, message) {
let jp = new Json.Parser();
jp.load_from_data(message.response_body.data, -1);
fun.call(here, jp.get_root().get_object());
});
},
So I am unable to check actual content downloaded by Soup (but the "fun.call(here, jp.get_root().get_object());" call is definitely made, because the error message in format "A error has occured" is logged in the catch block of the called function.
So, what settings do you use? Maybe I could try yours just to see if it works. Thanks.
---------- Post added at 12:21 PM ---------- Previous post was at 12:16 PM ----------
OMG. The python configurator script does not work. When I changed my "woeid" using "gsettings set org.gnome.shell.extensions.weather woeid AUXX0010" the applet immediately recognised the change (as registered by "this._settings.connect('changed::' + WEATHER_WOEID_KEY, load_settings_and_refresh_weather);"), and the weather immediately popped up! So thanks, I also tried setting woeid by command line but I was actually setting an WOEID (818717) and not expected "AUXX0010" so it did not work back then.
---------- Post added at 01:52 PM ---------- Previous post was at 12:21 PM ----------
well as it shows up Bratislava is LOXX0001 but nevermind it works correctly now