Trying to get the weather from yahooapis

This should return the weather for my location:

The temperature is correct, but the code is always 3200, which means 'not available' - see

It wasn't always like that. I used to get the correct code in return. Anyone know if I am doing something wrong or if there is some tweak to this?

The javascript I use is this:
    // Specify the ZIP/location code and units (f or c)
    var loc = 'NOXX0008'; // or e.g. SPXX0050
    var u = 'c';

    var query = "SELECT item.condition FROM weather.forecast WHERE location='" + loc + "' AND u='" + u + "'";
    var cacheBuster = Math.floor((new Date().getTime()) / 1200 / 1000);
    var url = '' + encodeURIComponent(query) + '&format=json&_nocache=' + cacheBuster;

    window['wxCallback'] = function(data) {
        var info =;        
            backgroundPosition: '-' + (61 * info.code) + 'px 0'
            title: info.text
        $('#wxIcon2').append('<img src="' + info.code + '.gif" width="34" height="34" title="' + info.text + '" />');
        $('#wxTemp').html(info.temp + '&deg;' + (u.toUpperCase()));

        url: url,
        dataType: 'jsonp',
        cache: true,
        jsonpCallback: 'wxCallback'

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
itniflAuthor Commented:
This tells me NOXX0008 is the code for Drammen, Norway. It is the code that I use.

I could also use woeid like you do. In this case I used 29326649 which I got from Like the site suggests, the code result is 3200 in this case also:

So, Yahoo having problems with measuring the weather at my location? Who should I contact?
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Try a different api.  I get very frustrated every time I try and use yahoo stuff.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
itniflAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.