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,398 views 382 replies +1 Loading…
Reply #126 Top

if all weather gadgets used the same external file it could be updated once and would work for all
End of quote

That would be a wonderful thing,Zubaz. I hope that turns out to be do-able.:')

Reply #127 Top

Redbuzzard:

Just try... now working with my own location, only 5 days forecast :'(

 

http.Open "GET", "http://xoap.weather.com/weather/local/YOURLOCATIONCODE?cc=*&dayf=5&link=xoap&prod=xoap&par=YOURID&key=YOURKEY" & str_UNITS & str_RANDOM_URL, False


Reply #128 Top

That does it.

Think I'll stick with Winstep and mothball DX till SD gets its act together.

Something tells me JcRabbit's way ahead on this one.

 

 

Reply #129 Top

Just try... now working with my own location, only 5 days forecast
End of quote

Yes... And I see only one way to get the 10 days/36 hours forecast right now .  You need retrieve the data directly from the web pages through HTML. This is a hard way but it works for me...

Reply #130 Top

Think I'll stick with Winstep and mothball DX till SD gets its act together.
End of quote
This is not an Stardock issue in any way.  It comes from users creating weather widgets all based on the same code (by another user) that calls weather.com without a parnet ID and key.

Reply #131 Top

Thanks for proposal Vad, but i know how to do with your explanation, i just have too many widgets to re-script and, as it's told by Adni18, i think that's the real only way (for everyone already using widgets) is that Stardock should negociate codes to be used by their consumers

Reply #132 Top


 It comes from users creating weather widgets all based on the same code (by another user) that calls weather.com without a parnet ID and key.
End of quote

yes... BUT DesktopX one of SD application

Weather widgets and objects, really based martin's code..

Silica weather come with dx, I think this one Offical Stardock Weather widget..and NOT work now...

So we need SD and dx developer support in these days...

Reply #133 Top

i asked about the silica widgets, apparently they are not supported as they are too outdated

+1 Loading…
Reply #134 Top

This is not an Stardock issue in any way. It comes from users creating weather widgets all based on the same code (by another user) that calls weather.com without a parnet ID and key.
End of quote

Dear Zubaz,
Stardock is or was offering a weather widget with the DesktopX, many people may have buy the DesktopX only for the Silica weather widget ;)
I don’t mean that Stardock has to buy a license for all widgets, but it may help for a solution, for example an additional script for all widgets. Stardock has many professional employees with great knowledge of scripts!

 

Reply #135 Top

This is not an Stardock issue in any way. It comes from users creating weather widgets all based on the same code (by another user) that calls weather.com without a parnet ID and key.
End of quote

I Agree. That problem must be solved only by the authors of these widgets (certainly if they have a free time or just desire to do this).

Besides it should not be forgotten - all of these widgets was FREE OF CHARGE. So I think you have no rights to submit any claims to their authors... And more than - to Stardock.

Reply #136 Top

Quoting bilbo1930, reply 7



yes... BUT DesktopX one of SD application

Weather widgets and objects, really based martin's code..

Silica weather come with dx, I think this one Offical Stardock Weather widget..and NOT work now...

So we need SD and dx developer support in these days...
End of bilbo1930's quote

Yeah. It seems Silica and Martin's BaseWeather are the two widgets everyone based their work off of and they require two different methods of modification as the scripts are not the same (BaseWeather is more extensive.) 

 

I'm working with Martin's BaseWeather and so far I got the licenseKey and PartnerID prompt working, and finally cleaned up the code for the new restrictions.

If I understood correctly, the license agreement says if you're gonna distrubute the desktop applications you have to include the 4 links provided as well as the TWC logo with an embedded link. Would it be against the rules to include the links but have a way for the user to hide them?

I'll be looking into the silica script later.

Reply #137 Top

Hello.

I had the huge bad luck of downloading desktopx yesterday, when the weather services were down
and i've read all the posts and commants, but yet have found no way to fix it.

Can someone please make a tutorial of how to fix it?
I'm no good with scripts and stuff so PLEASE make it simple.

Thanks :grin:

Reply #138 Top

Any way seams that only US residents can get an ID/key , I have register and I can’t get any ID/key or put an European city!!!
End of quote

No any problems. Just send me one of your widgets which you want to modify. Or a link where I can download it and I'll help you to solve this little problem. I'm live in Europe too and I'm a big Internationalist. :)

Reply #139 Top

i just have too many widgets to re-script
End of quote

This, I think, is the bigger problem. There's no easy way to fix this on the user's end. Even if we wrote a how-to, the user would have to do this for dozens of their weather widgets. And there are several variations to the script in each widget; just going through my collection I've encountered 3 different versions.

 

Reply #140 Top

just going through my collection I've encountered 3 different versions.
End of quote

This is one more argument that only the authors of widgets must fix this issue in their scripts and the upload an update.

So it may be a tutorial for widget developers but not for end users!

Reply #141 Top

Quoting bilbo1930, reply 2
Redbuzzard:

Just try... now working with my own location, only 5 days forecast

 

http.Open "GET", "http://xoap.weather.com/weather/local/YOURLOCATIONCODE?cc=*&dayf=5&link=xoap&prod=xoap&par=YOURID&key=YOURKEY" & str_UNITS & str_RANDOM_URL, False



End of bilbo1930's quote

 

Thanks Bilbo!! Worked like a charm!!! :thumbsup: \o/

Reply #142 Top

Thank you Vad, you are very kind, I appreciate it. :)

I have delete the quote you have included in your post, because I was wrong, I got the ID etc with email.


It will be very useful for all the widgets creators to have an additional script for our widgets, so we will be abble to update them.

What you have suggested is a great idea.This is exactly what we need:

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.
End of quote


One of my weather widgets is here: http://adni18.wincustomize.com/skins.aspx?skinid=284&libid=34

Reply #143 Top

Well, I think we might have to do 2 tutorials: one for end-users where you just hard code the sucker, and the other for developers so they can modify the script to include a prompt for the key and ID, as well as any other TWC license requirements.

 

Reply #144 Top

Silica weather come with dx, I think this one Offical Stardock Weather widget..and NOT work now...
End of quote
That object was made a very long time ago.  In all honesty, it was forgotten in the sands of time.  I am working to get it replaced wiht an accuweather version.

Reply #145 Top

Would it be against the rules to include the links but have a way for the user to hide them?
End of quote

make it an "About" page

 

Reply #146 Top

Quoting Izerath, reply 12
Hello.

I had the huge bad luck of downloading desktopx yesterday, when the weather services were down
and i've read all the posts and commants, but yet have found no way to fix it.

Can someone please make a tutorial of how to fix it?
I'm no good with scripts and stuff so PLEASE make it simple.

Thanks
End of Izerath's quote

Here's a quick and dirty how-to:

 

 

First, subscribe to the Weather.com feed -- LINK

When you get your confirmation email save the Partner ID code and License Key.

 

Next:

- Load DesktopX Builder

- Before importing your widget, disconnect from/turn off the internet (unplug cable, etc.)

- R-click on the DX Builder icon in your system tray and Import your widget

- R-click on the DX Builder icon and choose List Objects

- Find the "weather_image" object. R-click and choose Edit Script

(If you don't see this object, you are likely using a different version)

- In the script editor, find the line that looks similar to this:

http.Open "GET", "http://xoap.weather.com/weather/local/" & location & "?cc=*&dayf=5" & str_UNITS & str_RANDOM_URL, False

- Replace that line with the line Vad_M posted:

http.Open "GET", "http://xoap.weather.com/weather/local/ZIPCODE?cc=*&dayf=5&unit="&str_UNITS&"&link=xoap&prod=xoap&par=ID&key=KEY" , False

- Change ZIPCODE to your zipcode, ID to your PartnerID, and KEY to your LicenseKey

- In the script editor, click File and then Save and Close.  Click Ok on the properties window to apply the new script

- This hardcodes your location into the widget, meaning if you want to change the location, you have to open the script to do so.

- Restore your internet connection and test the widget (Use the change location button; it will call your location no matter what you enter.)

- If all goes okay, you can now export the widget again.

Reply #147 Top

i just have too many widgets to re-script

This, I think, is the bigger problem.
End of quote

Amen sister!  8C

Reply #148 Top

Any way seams that only US residents can get an ID/key , I have register and I can’t get any ID/key or put an European city!!!
End of quote

Nope, in the box where US zip code is asked, just type the local code you are using with widgets (ex: for me i entered Trappes, France and it worked  fine till sending me the email with Partnet ID and License key :P )

Reply #149 Top

and here I believed the universe had suddenly turned against me. I've had a few issues with my PC as of late, BSOD's, Mysterious Reboots, erroneous error messages such as "Windows was shutdown to prevent damage to your computer: the bios in your computer does not support ACPI"

HUH? (so why does it not support it today, when it supported it yesterday?)

and "warning, disk drive errors detected" with no clue as to which of the 8 connected drives (yes, I'm a complete geek, and have 8 drives connected totalling over 6 TB, it's how I save and later watch my High Def Movies etc.) as it turns out, these messages appear even when NO DRIVES are connected, and the BIOS has been updated to the latest version. Head Scratching......... RAM! it has to be. Sure enough, I had a stick of RAM go bad, and once removed everything was back to normal, except the ZIP code issues in any weather module I loaded. (Except some weather apps would return a script error for a certain line.)

wow, I find it hard to believe that my machine suddenly is rejecting DX weather apps, but no other DX apps. (as I tried to determine why) so I decided to post here for help, and lo and behold, the very first topic I see!!! Thank the Gods! I'm really not losing it!

With my version of Martin's Weather, I had to insert the fix posted here, then once it was done, I had to click on the City/Zip and either change the zip (to something other than it already was before), or type in my city. once I did, it retrieved the data, but now instead of seeing just the city listed like before, it now lists CITY (ZIP) at the top of the widget. 

In all, I'm very happy for all of your efforts, I had just spent weeks working on a weather widget based on martin's, that matches a certain theme, and I was rather distressed that after all that work, something was kaput. Thanks again everyone for input here, and special thanks to those of you (Vad_M, Sviz, etc) who figured out and posted a fix.

-Doc

Reply #150 Top

• 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

or in other words,put adware in every DX theme that has a weather widget.#:(