Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Wrong Code received from Yahoo #66

@pedronoliveira

Description

@pedronoliveira

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()+

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions