mirror of https://github.com/espruino/BangleApps
owmweather - Use default random ID
parent
1abeaa45d1
commit
1e9d708d8c
|
@ -17,7 +17,7 @@
|
|||
let settings = require("Storage").readJSON("owmweather.json", 1);
|
||||
let uri = "https://api.openweathermap.org/data/2.5/weather?lat=" + location.lat.toFixed(2) + "&lon=" + location.lon.toFixed(2) + "&exclude=hourly,daily&appid=" + settings.apikey;
|
||||
if (Bangle.http){
|
||||
responsePromise = Bangle.http(uri, {id:"debug"}).then(event => {
|
||||
responsePromise = Bangle.http(uri).then(event => {
|
||||
let result = parseWeather(event.resp);
|
||||
responsePromise = false;
|
||||
if (completionCallback) completionCallback(result);
|
||||
|
|
Loading…
Reference in New Issue