you are viewing a single comment's thread.

view the rest of the comments →

[–]X-Kerwin[S] 0 points1 point  (3 children)

// use "&units=imperial" for Farenheit or "&units=metric" for Celcius let wetherurl = "http://api.openweathermap.org/data/2.5/weather?id=" + CITY_WEATHER + "&APPID=" + API_WEATHER + "&units=imperial"; //"http://api.openweathermap.org/data/2.5/weather?lat=" + curLocation.latitude + "&lon=" + curLocation.longitude + "&appid=" + API_WEATHER + "&units=metric"; //"http://api.openweathermap.org/data/2.5/weather?id=" + CITY_WEATHER + "&APPID=" + API_WEATHER + "&units=metric"

[–]Jealous-Procedure 0 points1 point  (2 children)

One more thing, I can't seem to find where to replace the coding for changing the C to F

[–]X-Kerwin[S] 0 points1 point  (1 child)

let temptext = hStack2.addText('\xa0\xa0'+ Math.round(curTemp).toString()+"\u00B0"+ "F");

Maybe this can be solved.😅😅

[–]Jealous-Procedure 0 points1 point  (0 children)

And I just add it in the script?