Please, where am I wrong? I can't get the weather in the simulator, where do I have something to put it? Thank you

(:background) class BackgroundService extends Sys.ServiceDelegate { function initialize() { Sys.ServiceDelegate.initialize(); } function onTemporalEvent() { Sys.println("onTemporalEvent"); var pendingWebRequests = App.getApp().getProperty("PendingWebRequests"); if (pendingWebRequests != null) { if (pendingWebRequests["OpenWeatherMapCurrent"] != null) { var api_key = App.getApp().getProperty("openweathermap_api"); if (api_key.length() == 0) { api_key = "753670xxxxxxxxxxxx"; // default apikey } Sys.println("Key " + api_key); makeWebRequest( "">api.openweathermap.org/.../weather", { "lat" => App.getApp().getProperty("LastLocationLat"), "lon" => App.getApp().getProperty("LastLocationLng"), "appid" => api_key, "units" => "metric" // Celcius. }, method(:onReceiveOpenWeatherMapCurrent) ); } } /* else { Sys.println("onTemporalEvent() called with no pending web requests!"); } */ } // Sample invalid API key: /* { "cod":401, "message": "Invalid API key. Please see openweathermap.org/faq for more info." } */ // Sample current weather: /* { 

function onReceiveOpenWeatherMapCurrent(responseCode, data) { var result; if (responseCode == 200) { result = { "cod" => data["cod"], "lat" => data["coord"]["lat"], "lon" => data["coord"]["lon"], "dt" => data["dt"], "temp" => data["main"]["temp"], "temp_min" => data["main"]["temp_min"], "temp_max" => data["main"]["temp_max"], "humidity" => data["main"]["humidity"], "icon" => data["weather"][0]["icon"], "des" => data["weather"][0]["main"] }; // HTTP error: do not save. } else { result = { "httpError" => responseCode }; } Bg.exit({ "OpenWeatherMapCurrent" => result }) } function makeWebRequest(url, params, callback) { var options = { :method => Comms.HTTP_REQUEST_METHOD_GET, :headers => { "Content-Type" => Communications.REQUEST_CONTENT_TYPE_URL_ENCODED}, :responseType => Comms.HTTP_RESPONSE_CONTENT_TYPE_JSON }; Comms.makeWebRequest(url, params, options, callback); } }