Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

CNN Weather service from SDK

Looks like the hard coded urls have moved. Anyone have an update?

Thanks, Rick

Here service retrieves the weather information from CNN weather website http://weather.cnnaudience.com/cgi-bin/weather/redirect for given city zip code. If user provides city name and state then corresponding city zip code is obtained from website http://generalsearch.com/AreaCode/index.php.

12 REPLIES
New Member

Re: CNN Weather service from SDK

It looks like the new page is here:

http://weather.cnn.com/weather/search?wsearch=72712

Where the wsearch is the zip code. But, if they changed the location, they may have changed the page layout as well. I have not tried the weather app, but if they changed the page layout then your service may not work anymore. You may have to play with it to get it pulling the correct information.

Matt

New Member

Re: CNN Weather service from SDK

Tried the link and getting either forcast or current conditions seems to break it. The new format will take time to decode. I dont know about the city lookup part.

Thanks, Rick

New Member

Re: CNN Weather service from SDK

Has anyone had any luck with this...i edited most of the asp pages just to have lookup by zip, and changed the URL to the one above but using the phone services emulator it still is broken. Has anyone decoded the page layout?

New Member

Re: CNN Weather service from SDK

I just got my version working. I hate that I didn't have the original format to go on, but I made it. It seems like a hack, but it works. The forecast data on CNN's site doesn't have a text field for the condition, so I was only able to grab temps, but maybe with a little more work something could be worked out. This version is still messy, but I wanted to get it up here to help out as many as I could.

New Member

Re: CNN Weather service from SDK

First of all - Thank you for your file.

I do have a question though. I replaced the original weather.asp file with your's. I select the service and enter my zip - then the cnn screen comes up and the I get "Authorization Required" and it wants a username and password. I have tried every different username/password I can think of, but it doesn't work. Any chance you know what I am doing wrong?

Thanks

New Member

Re: CNN Weather service from SDK

As far as I can tell there is nothing in the weather.asp code that could cause that type of authorization request. Can you troubleshoot as to where the authorization request is coming from, i.e. your server or cnn.com? If it is your server is it coming from weather.asp or is the folder that weather.asp is located in password protected?

New Member

Re: CNN Weather service from SDK

Could someone please re-post this sample file? Thanks!

New Member

Re: CNN Weather service from SDK

I second the request.

New Member

Re: CNN Weather service from SDK

I'll throw my request in as well.

If anyone could repost that would be great!

New Member

Re: CNN Weather service from SDK

I'll throw my request in as well.

If anyone could repost that would be great!

New Member

Re: CNN Weather service from SDK

Can you re-post the file please.

New Member

Re: CNN Weather service from SDK

Can someone please post a simple asp script to display weather for a predifined zip code?

216
Views
0
Helpful
12
Replies
CreatePlease to create content