1
jva1601
ms-weather module city codes
  • 2004/10/24 22:52

  • jva1601

  • Just popping in

  • Posts: 20

  • Since: 2004/8/29


I have it installed and working Great. But my question is, does anyone know where I can find US Weather city codes? so I can add to the current lists which came with module. It doesn't use zip codes. I have tried googling but so far only find sites that offer zip codes to determine weather. Thank you.

JVA1601

2
limecity
Re:ms-weather module city codes
  • 2004/10/25 0:01

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


I suppose msweather is using yahoo services
so now go to yahoo weather US listings
http://weather.yahoo.com/regional/USXX.html
take for example, New York,
Click on new York,
select a city, take for example Atlanta
and you will have a page on the weather info.
take a look on the URL of that particular page

http://weather.yahoo.com/forecast/USNY0063.html

now you see USNY60063 at the end of it?
I think that should be the weather code for Atlanta

I don't know and just assuming this should be the solution for you.
I don't live in the US. Hope it helps

3
DonXoop
Re:ms-weather module city codes

I'm only guessing here but perhaps the README file or the site that is feeding the weather will give you a quick answer? Might be even faster than a google search....

4
jva1601
Re:ms-weather module city codes
  • 2004/10/25 0:23

  • jva1601

  • Just popping in

  • Posts: 20

  • Since: 2004/8/29


Thank you! Both for responding. You were right limecity that was the solution I just looked at the link from yahoo and there was the city code.

5
sylvainb
Re:ms-weather module city codes
  • 2004/10/25 5:11

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello everybody,

I wouldn't recommend to use msweather on a live website (on an intranet one...perhaps!?) because when I released it I didn't noticed that the way it recovered the weather info was ILLEGAL.

So, do what you want but use it at your own risk.

Kind Regards

6
jva1601
Re:ms-weather module city codes
  • 2004/10/26 0:15

  • jva1601

  • Just popping in

  • Posts: 20

  • Since: 2004/8/29


Hi sylvainb,

Thank you, for the heads up and for developing this nifty module. Are you going to add the ability to show extended weekly forcast too?

Regards,

jva1601

7
rider
Re:ms-weather module city codes
  • 2004/10/26 1:13

  • rider

  • Just popping in

  • Posts: 56

  • Since: 2003/6/18


Download the SnX-Weather module.

In the admin section there is a list box that is a little easier to use than the MS-Weather one.

Now go to Weather.com and find the country you want.

Highlight the towns/cities you want and do a copy.

If you have excel paste into Excel, works best if you're using Excel 2003.

This will create seperate cells for each location.

Now edit the hyperlink and copy the city code then paste into the cell beside the name.

When you're done export as a comma-separated file then open that file in a text editor.

You should see the city then a comma then the city code.

Select all and then go to the admin page for SnX-Weather and paste into the box.

Works sweet on my site: rider.net.nz

8
jva1601
Re:ms-weather module city codes
  • 2004/10/26 20:46

  • jva1601

  • Just popping in

  • Posts: 20

  • Since: 2004/8/29


Hi rider,

I will try out your suggestion and thank you, for taking the time to give a detailed how-to it is truly appreciated

jva1601

Login

Who's Online

425 user(s) are online (332 user(s) are browsing Support Forums)


Members: 0


Guests: 425


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits