jag4710 jag4710

Invalid zip code when running weather widgets

Invalid zip code when running weather widgets

My computer was shutdown incorrectly when the breaker in my apartment went off. Now, when I run a weather widget, I get an invalid zip code error. I uninstalled and reinstalled DesktopX, but it didn't help. I cleared the widget cache, but I still get the same error. Does anyone have any suggestions? I never had any problems running anything in DesktopX before this.
997,335 views 382 replies +1 Loading…
Reply #101 Top

I made Winstep Xtreme get the weather.com feed again by adding '&link=xoap&prod=xoap' to the XML request string.

Unfortunately that string is hard coded into the program, so you guys won't be able to change it and will have to wait for an emergency release (don't you just love Weather.com's timing?)

They pulled up a similar stunt to this last year or so, again by changing the request format. At least back then they warned authors before it happened, but, alas, they didn't even bother this time.

I'm going to make the XML request a user modifiable setting (a bit like the METAR HTML search string) to prevent cases like this in the future.

Reply #103 Top

Finaly! The weather.com have blocked their service for unregistered users. This is just a result of using unlicensed rss feeds and of reluctance to learn coding as well... I've found this problem yesterday and already solved it. The changes in my script is more serious than you'll see below. But we must respect the Copyright so I will show you only the legal way to get the weather data here.

To get detailed text forecast:

url = "http://xoap.weather.com/weather/local/"&ZIPCODE&"?cc=*&dayd=10&unit="&UNITS&"&link=xoap&prod=xoap&par="&ID&"&key="&KEY

To get 5-days forecast:

url = "http://xoap.weather.com/weather/local/"&ZIPCODE&"?cc=*&dayf=5&unit="&UNITS&"&link=xoap&prod=xoap&par=ID&key=KEY"

To get hour-by-hour forecast:

url = "http://xoap.weather.com/weather/local/"&ZIPCODE&"?cc=*&hbhf=36&unit="&UNITS&"&link=xoap&prod=xoap&par="&ID&"&key="&KEY 

You only need to register on the weather.com and add your ID and KEY into your code...

Besides I'm sad that Stardock doesn't buy a license from weather.com because the AccuWeather service is much worst because it provides far fewer opportunities for their users... Seems it was a big mistake.

Reply #104 Top

You only need to register on the weather.com and add your ID and KEY into your code...
End of quote

Can't see where on weather.com there's that possibility 8C

Reply #106 Top

[quote]It's very easy: http://registration.weather.com/ursa/xmloap/step1[/quote]

Done and get now a Partner ID and a License Key :|

BTW, i'm not seeing myself editing all Weather widgets i've done and downloaded to insert my specifics.

The only sensible solution is that Stardock should get a unique Partner ID & License key that could be used by all his consumers

Reply #107 Top

Dear XXXXXXXXX:
We are contacting you because you are a registrant for the weather.com XML Data Feed (the “Service”). We are providing you with IMPORTANT INFORMATION REGARDING THE CONTINUATION OF YOUR ACCESS TO THE SERVICE. Your registered application may or may not currently be in compliance with the terms of our agreement (please refer to the developer SDK containing the license agreement – see link below).

We are in the process of updating the Service to programmatically validate certain licensing conditions. Beginning May 6, 2008, if your application is not in compliance with these terms, the Service will no longer return data to your application.


The complete terms and conditions surrounding the use of the Service can be found in the developer SDK along with graphical icons that are necessary to represent the sky conditions associated with our current conditions and forecast data, and our logo. This SDK can be accessed by clicking on the link below.
http://download.weather.com/web/xoap/sdk.zip
You may update your user profile or change your product selections at any time by logging in to the weather.com registration system with the following information:
Sign-In Page: https://registration.weather.com/ursa/xmloap/step2
E-mail address: XXXXXXXXXX
The Service includes:
• city search capability for all locations covered by www.weather.com;
• location specific information necessary for data presentation;
• current condition information (Observations) for the selected location; and
• up to five (5) days of forecast information (the current day’s forecast plus four additional days of forecast information in consecutive order beginning with tomorrow’s forecast) for the selected location in ten (10), 12-hour day-parts.
VERY IMPORTANT
YOU MAY NOT USE THE SERVICE TO CREATE WEATHER AND WEATHER-RELATED PRODUCTS TO BE DISPLAYED ON HANDHELD OR OTHER WIRELESS DEVICES.
YOU MAY NOT USE THE SERVICE IN CONNECTION WITH AMONG OTHER THINGS, ANY BROADCAST TELEVISION, INTERACTIVE TELEVISION, CABLE TELEVISION, TELEPHONE OR DSL SERVICES, DIGITAL CABLE SERVICES, HEAD-END-IN-THE-SKY SATELLITE SYSTEMS, RADIO, PRINT PUBLICATIONS, DIGITAL BROADCAST SATELLITES, TELEMATICS, TELETEXT, VIDEO-ON-DEMAND, KIOSKI DISPLAY, OR OTHER PUBLIC OR PRIVATE INFORMATION DISPLAY UNIT, WIRE-LINE TELEPHONE, OR AS ALL OR PART OF ANY STREAMING VIDEO OR AUDIO CONTENT OR FOR DELIVERY BY ANY MEANS OTHER THAN STATIC DISPLAY ON A TRADITIONAL WEB PAGE ON YOUR WEBSITE OR DESKTOP APPLICATION.
YOU MAY NOT USE ANY LATITUDE OR LONGITUDE DATA ASSOCIATED WITH A LocID OR ZIP CODE EVEN IF SUCH INFORMATION IS RETURNED AS PART OF AN XML DOCUMENT FROM THE XML FEED.
USE OF THE SERVICE IN VIOLATION OF THE TERMS OF YOUR AGREEMENT WITH TWCi MAY RESULT IN YOUR IMMEDIATE TERMINATION AND PAYMENT OF MONETARY DAMAGES TO TWCi.
To comply with the terms of the Agreement, Your Website or Desktop Application must, among other things:
• display weather data for no more than three (3) locations at a time;
• adhere to the data request rules, usage rules, and refresh rates outlined in Exhibit B of the Agreement;
• clearly separate TWCi data from other data within a single visual element;
• identify that the weather data comes from TWCi by incorporating The Weather Channel logo containing an embedded link to the www.weather.com home page (one of 5 Required Links);
• provide four (4) promotional links, selected by TWCi and provided through the Service on each data call, back to www.weather.com for additional weather information in close proximity to the TWCi Content as set forth in Exhibit B of the Agreement; and
• be free of charge to your end-users.
If you cannot meet these requirements but would still like to use our weather data, please contact our business development department at 770-226-0000.
Thank you for your continued support!
Your friends at The Weather Channel Interactive, Inc. (a/k/a weather.com)
Check out other tools by The Weather Channel at http://www.weather.com/services.



This is a transactional/relationship message that you are receiving because you registered for XML Data Feed by The Weather Channel. Click here to access your profile and products you are registered for at weather.com.
If you have any questions or concerns about how we use your personal information, please read our privacy policy. We welcome your feedback.
Copyright © 1995-2008, The Weather Channel Interactive, Inc.

The Weather Channel Interactive, Inc.
P.O. Box 724554
Atlanta, GA 31139

Reply #108 Top

BTW, i'm not seeing myself editing all Weather widgets i've done and downloaded to insert my specifics.
End of quote

No any problems! Just send me by email a link to download your weather widget and your ID/key. I'll edit a script for you in a few seconds and then send you the updated widget.

Reply #109 Top

Vad_M,as always you seem to be on top of things.  For wincustomize customers this means what to those of us who are using widgets that violate the user licensing agreement and no longer work?  Looks like widgets need a weather channel logo to be in compliance as well.  And can't be sold to end users.    On a side note Vad,stay in the Desktop X game.  Your work is stellar.  You have a lot of fans who don't post or comment.  

Reply #110 Top

I'm not sure about LOGO. Why do we need to see it every day if we will use the widgets only on our own, Personal Computers? So I think that our widgets are not violate any paragraphs of TWC user licensing agreement.

But there is one problem that I'm really seeing... How the thousands of WC members/visitors which already downloaded the Weather Widgets will correct their scripts? Seems we must to ask sVis make a special tutorial which will show to people how correct this funny problem with DesktopX Builder in 1-2 easy steps.

Reply #111 Top

Advertising.  Had this happened to me and all my MY COLORS themes I would have been hacked off.    I went and checked to make sure all the weather widgets had the accuweather logo.  And they do.  Along with links to the college bookstores/ticket offices etc...From the Texas Longhorns to the Boston Celtics,everyone is getting their love.

So If I understand you correctly Vad_M,everyone has to have an end user license to use these widgets?  Or just the widget creators?

 

 

Reply #112 Top

Good solution for us skinners Vad_M, thank you!

Though,not much helpful for gadget and widget users.

Because every user has to be register in Weather.com and change (personalize)  the script of the gadget/widget, which practically is impossible for the 90% of them.

Many thousand users are using those gadgets/widgets we must find a solution to update our gadgets/widgets in Wincustomize and all other sites of skinning community.

 

Reply #113 Top

weather.com
End of quote
I tried to go register but it asks for a U.S. zip code or city. I'm in Canada. What can I do?

Reply #114 Top

Good solution for us skinners Vad_M, thank you!

Though,not much helpful for gadget and widget users.



Because every user has to be register in Weather.com and change (personalize) the script of the gadget/widget, which practically is impossible for the 90% of them.

Many thusand users are using those gadgets/widgets, we must find a solution to update our gadgets/widgets in Wincustomize and all other sites of skinning community.
End of quote

yeah thanks Vad..

I have agree with adni

If members need change the sripts, and register anywhere, put some code and save as... that not will work

In my opinion only way if Stardock pay the weather,com feed like yahoo.

 

Reply #115 Top

How come I can't see the rest of this thread? o_O

Reply #117 Top

So If I understand you correctly Vad_M,everyone has to have an end user license to use these widgets?  Or just the widget creators? 
End of quote

First of all the registration is free. So I don't see any problems to get it. Then I'm not sure that the widget creator have a rights to use (share) his (or her) Partner ID and License Key. However I know how to help with this. We just need to add one more simple suroutine into the "Classic Weather Script" which will generate the multiline inputbox (with DesktopX Form) like:

1. Enter here your TWC Partner ID:

2. Enter here your TWC License Key:

3. Enter here the US ZIPCODE or City, Country....

Then these three parameters must be used in the widget script to access to RSS Feed and be saved in the widget's *.INI file.

That's all. And seems this is more than easy! 

Reply #118 Top

'Tis a sad day indeed! I'm glad I stumbled across this thread so I know that my widget is not the only one broken. I'm looking forward to being able to use my "Naked Noir" widget again! |-)

Reply #119 Top

How come I can't see the rest of this thread?
End of quote
fixed . . MS Word code in the post + IE = fail.

Reply #120 Top

Quoting jkbeard, reply 16
One word:

http://www.weather.gov/
End of jkbeard's quote

Isn't that just for the US?

 

Quoting Vad_M, reply 17

So If I understand you correctly Vad_M,everyone has to have an end user license to use these widgets?  Or just the widget creators? 

We just need to add one more simple suroutine into the "Classic Weather Script" which will generate the multiline inputbox (with DesktopX Form) like:

1. Enter here your TWC Partner ID:

2. Enter here your TWC License Key:

3. Enter here the US ZIPCODE or City, Country....

Then these three parameters must be used in the widget script to access to RSS Feed and be saved in the widget's *.INI file.

That's all. And seems this is more than easy! 
End of Vad_M's quote

That's what I was thinking. Such are the lessons of building new widgets on old code; time to work on an upgrade.

+1 Loading…
Reply #121 Top

I tried to go register but it asks for a U.S. zip code or city. I'm in Canada. What can I do?
End of quote
Move south.;)

Reply #122 Top

Yay I got it working thanks to your suggestions.

I replaced the default http://xoap.weather.com/ link with a custom one containing my city and license details.

Thanks!

Reply #123 Top

Cr4z33. Can you show me the line (without you user ID &Key) that you changed in martins script so that I can fix mine as well?? Thanks.

Reply #124 Top

I'm looking forward to being able to use my "Naked Noir" widget again!
End of quote

I'm looking forward to just being able to use any of my 132 DX themes.I tried a dozen or so and none will fully load. I don't relish the idea of having to modify every one of them,just to have Weather dot com pull this crap again in the future. It looks like I am done with DX until this is straightened out.:'(

Reply #125 Top

First of all the registration is free. So I don't see any problems to get it. Then I'm not sure that the widget creator have a rights to use (share) his (or her) Partner ID and License Key. However I know how to help with this. We just need to add one more simple suroutine into the "Classic Weather Script" which will generate the multiline inputbox (with DesktopX Form) like:

1. Enter here your TWC Partner ID:

2. Enter here your TWC License Key:

3. Enter here the US ZIPCODE or City, Country....

Then these three parameters must be used in the widget script to access to RSS Feed and be saved in the widget's *.INI file.

That's all. And seems this is more than easy!
End of quote
Adding a link to the registration page too?

Again . . I might suggest that an external file be used for scripts that may use common code. That way they could be replaced easily on the host system if needed and if all weather gadgets used the same external file it could be updated once and would work for all

+1 Loading…