You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2019. It is now read-only.
Great work with the script.
Unfortunately, I don't know why (been doing some testing my self) but there is a small problem with my location/code retriving from yahoo/ day time.
Meaning when I use your script I get a code for the night, and get the statement for day.
Using this combo:
'+weather.code+' - '+weather.timeOfDay+
I get a code for the night (lets say 27) and the time of Day returns as 'd'.
I honesty don't know where the problem comes from. I suppose it can be a problem related with this line:
Hi all
Great work with the script.
Unfortunately, I don't know why (been doing some testing my self) but there is a small problem with my location/code retriving from yahoo/ day time.
Meaning when I use your script I get a code for the night, and get the statement for day.
Using this combo:
'+weather.code+' - '+weather.timeOfDay+
I get a code for the night (lets say 27) and the time of Day returns as 'd'.
I honesty don't know where the problem comes from. I suppose it can be a problem related with this line:
var weatherUrl = 'http://query.yahooapis.com/v1/public/yql?format=json&rnd='+now.getFullYear()+now.getMonth()+now.getDay()+now.getHours()+'&diagnostics=true&callback=?&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&q=';
Most particularly with this piece of code:
+now.getFullYear()+now.getMonth()+now.getDay()+now.getHours()+