Syndicated Weather

Freshness Warning
This article is over 16 years old. It's possible that the information you read below isn't current.

It’s not an XML weather feed, but a someone sent a link to some JavaScript on Yahoo that returns the weather for any zip code. If you put this in your Web page:

<SCRIPT LANGUAGE="JavaScript" SRC=",95670,10001&hbc=ffffff&hfc=314584

What gets displayed is

Just change the 95670,10001 to any zip codes you want. By playing with the JavaScript URL, we’ve also found some other options that can be set.

hbc: Header Background Color
hfc: Header Font Color
hfs: Header Font Size
hff: Header Font Face
ibc: body Background Color (what does I stand for?)
ifc: body Font Color
ifs: body Font Size
iff: body Font Face

It is unknown what the rest of the variables mean. Changing things from udd and beyond had no obvious affect.

While we’d love to give credit where credit’s due, the contributor neglected to sign their email.

October 22, 2002 11:27 PM

how to syndicate the weather in jakarta, indonesia?

Adam Kalsey
October 23, 2002 9:39 AM

It appears that this service is only for the United States, since it uses ZIP codes (US postal codes) to determine what are you want the weather for. I'm not aware of any sort of free weather syndication service. In fact, I'd imagine that this Yahoo JavaScript feed is probably protected by some sort of copyright and was designed for use on Yahoo sites only.

Paul Robertson
August 19, 2003 1:43 AM

To get New Zealand I changed the ct entry to ct=nz and then for the city info I looked at the url for cities as displayed on the weather page, ie for auckland and wellington NZ the entry is NZXX0003,NZXX0049 The only issue is that it defaults to readings in Fahrenheit. Not sure how to get it to display in the more godly Celsius.

August 26, 2003 7:02 PM

To get Celsius, change ?w=f, to ?w=c,

Philip Ashlock
September 11, 2003 2:10 PM

To display the weather for any city go to and type in the name of the city you want displayed in the search box that says "Enter City or Zip Code" and when you have your city's weather displayed look at the URL. The end of the URL should say something like IDXX0022_f.html (for jakarta) replace the zip code in the javascript with IDXX0022 and it should display the correct weather info (for jakarta in this case). This is also usefull when it doesn't display the correct information when using a zip code.

jeff graber
December 20, 2004 12:32 PM

any way that when you click on the city name, it pops a new window instead of writing to the same one?

January 19, 2005 12:33 PM

What's with the red asterisk? What purpose does it serve and is there any way to get rid of it?

March 22, 2005 12:11 AM

I am also having problems with the default Fahrenheit display. I have tried to modify most of the settings in the script without any luck. It would be great if someone can figure out how to do this....

August 30, 2005 5:42 PM

what jon said To get Celsius, change ?w=f, to ?w=c,

Peter Codrington
October 4, 2005 3:31 PM

I've been looking for a long time for a feed like this. I wrote a program to transform the feed to HTML. Here's the weather for New York city: That's a live RSS stream. I can add one for your city of choice and you can link to it - it's FREE. Hope you like it.

Scott Grayban
November 27, 2005 11:55 PM

Peter Codrington wrote: Here’s the weather for New York city: 404 error for that. Also this javascript for yahoo weather doesn't anymore---they freeze the output the minute a outside domain hits it.

April 30, 2006 9:48 PM

To display city e.g. Fak-fak (indonesia) replace 95670,10001 become IDXX0086 so it become: <SCRIPT LANGUAGE="JavaScript",IDXX0086&hbc=ffffff&hfc=314...

October 9, 2006 12:22 PM

Thank you for this. Anyway to launch link in new window?

October 27, 2006 5:36 AM

Is it possible to put the link in an separate js file? Want to keep my website as clean as possible. // Patrik

DK Riese
December 12, 2006 6:44 AM

Anyone know how to get this weather into a flash file SWF

Your comments:

Text only, no HTML. URLs will automatically be converted to links. Your email address is required, but it will not be displayed on the site.


Not your company or your SEO link. Comments without a real name will be deleted as spam.

Email: (not displayed)

If you don't feel comfortable giving me your real email address, don't expect me to feel comfortable publishing your comment.

Website (optional):

Follow me on Twitter

Best Of

  • How not to apply for a job Applying for a job isn't that hard, but it does take some minimal effort and common sense.
  • Movie marketing on a budget Mark Cuban's looking for more cost effective ways to market movies.
  • California State Fair The California State Fair lets you buy tickets in advance from their Web site. That's good. But the site is a horror house of usability problems.
  • Customer reference questions. Sample questions to ask customer references when choosing a software vendor.
  • Comment Spam Manifesto Spammers are hereby put on notice. Your comments are not welcome. If the purpose behind your comment is to advertise yourself, your Web site, or a product that you are affiliated with, that comment is spam and will not be tolerated. We will hit you where it hurts by attacking your source of income.
  • More of the best »

Recently Read

Get More

Subscribe | Archives


Assumptions and project planning (Feb 18)
When your assumptions change, it's reasonable that your project plans and needs change as well. But too many managers are afraid to go back and re-work a plan that they've already agreed to.
Feature voting is harmful to your product (Feb 7)
There's a lot of problems with using feature voting to drive your product.
Encouraging 1:1s from other managers in your organization (Jan 4)
If you’re managing other managers, encourage them to hold their own 1:1s. It’s such an important tool for managing and leading that everyone needs to be holding them.
One on One Meetings - a collection of posts about 1:1s (Jan 2)
A collection of all my writing on 1:1s
Are 1:1s confidential? (Jan 2)
Is the discussion that occurs in a 1:1 confidential, even if no agreed in the meeting to keep it so?
Skip-level 1:1s are your hidden superpower (Jan 1)
Holding 1:1s with peers and with people far below you on the reporting chain will open your eyes up to what’s really going on in your business.
Do you need a 1:1 if you’re regularly communicating with your team? (Dec 28)
You’re simply not having deep meaningful conversation about the process of work in hallway conversations or in your chat apps.
What agenda items should a manager bring to a 1:1? (Dec 23)
At least 80% of a 1:1 agenda should be driven by your report, but if you also to use this time to work on things with them, then you’ll have better meetings.

Subscribe to this site's feed.


Adam Kalsey

Mobile: 916.600.2497

Email: adam AT

Twitter, etc: akalsey



©1999-2019 Adam Kalsey.