diff --git a/weather-stats/info.json b/weather-stats/info.json index dc0073b..5abb41a 100644 --- a/weather-stats/info.json +++ b/weather-stats/info.json @@ -2,7 +2,7 @@ "name": "Weather stats", "identifier": "weather-stats", "script": "weather-stats.qml", - "version": "0.0.2", + "version": "0.0.3", "minAppVersion": "17.06.4", "authors": ["@pbek"], "description" : "This script shows the current weather in the Scripting widget. You can configure the city in the Scripting Settings. The Yahoo weather service is used to fetch the weather. The information is updated every 10min." diff --git a/weather-stats/weather-stats.qml b/weather-stats/weather-stats.qml index 25f3c76..f104498 100644 --- a/weather-stats/weather-stats.qml +++ b/weather-stats/weather-stats.qml @@ -37,7 +37,6 @@ Script { } function weatherStats() { - script.log(useFahrenheit); var unitString = useFahrenheit ? "f" : "c" var json = script.downloadUrlToString("https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22" + city + "%22)%20and%20u%3D%27" + unitString + "%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"); var weatherInfo = JSON.parse(json);