1
0
Fork 0
mirror of https://github.com/marty-oehme/scripts.git synced 2024-12-22 07:58:08 +00:00

removed a log message

This commit is contained in:
Patrizio Bekerle 2017-06-09 08:22:54 +02:00
parent de6dcdb75e
commit 9a3be00a4f
No known key found for this signature in database
GPG key ID: 2E9FFD770DABE838
2 changed files with 1 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"name": "Weather stats", "name": "Weather stats",
"identifier": "weather-stats", "identifier": "weather-stats",
"script": "weather-stats.qml", "script": "weather-stats.qml",
"version": "0.0.2", "version": "0.0.3",
"minAppVersion": "17.06.4", "minAppVersion": "17.06.4",
"authors": ["@pbek"], "authors": ["@pbek"],
"description" : "This script shows the current weather in the <i>Scripting widget</i>. You can configure the city in the <i>Scripting Settings</i>. The Yahoo weather service is used to fetch the weather. The information is updated every 10min." "description" : "This script shows the current weather in the <i>Scripting widget</i>. You can configure the city in the <i>Scripting Settings</i>. The Yahoo weather service is used to fetch the weather. The information is updated every 10min."

View file

@ -37,7 +37,6 @@ Script {
} }
function weatherStats() { function weatherStats() {
script.log(useFahrenheit);
var unitString = useFahrenheit ? "f" : "c" 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 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); var weatherInfo = JSON.parse(json);