@ -46,7 +46,8 @@ const Soup = imports.gi.Soup;
const Util = imports . misc . util ;
const UNITS = 'c' ; // Units for temperature (case sensitive). f: Fahrenheit. c: Celsius
const YAHOO _ID = 'AUXX0010' ;
const CITY _DISPLAYED = 'your city' ;
const YAHOO _ID = 'your yahoo woeid' ;
const WEATHER _URL = 'http://weather.yahooapis.com/forecastjson?u=' + UNITS + '&p=' + YAHOO _ID ;
const FORECAST _URL = 'http://query.yahooapis.com/v1/public/yql?format=json&q=select%20item.forecast%20from%20weather.forecast%20where%20location%3D%22' + YAHOO _ID + '%22%20%20and%20u="' + UNITS + '"' ;
@ -347,7 +348,7 @@ WeatherMenuButton.prototype = {
// Refresh current weather
this . load _json _async ( WEATHER _URL , function ( weather ) {
let location = weather . get _object _member ( 'location' ) . get _string _member ( 'city' ) ;
let location = CITY _DISPLAYED ;
let comment = this . get _weather _condition ( weather . get _object _member ( 'condition' ) . get _string _member ( 'code' ) ) ; //weather.get_object_member('condition').get_string_member('text');
let temperature = weather . get _object _member ( 'condition' ) . get _double _member ( 'temperature' ) ;
let temperature _unit = '\u00b0' + weather . get _object _member ( 'units' ) . get _string _member ( 'temperature' ) ;