Scripts, tutorials, and general Desktop X help
Published on July 8, 2009 By sViz In DesktopX

The purpose of this thread is to compile and post fixes for the recent weather widget problem for anyone who has the patience to implement them. I'll try to edit this post to keep it up-to-date.

 Edit 7/10: Important information for DX authors.

 Edit 7/12: Added clarification to 2a for DX users - ZubaZ

 Edit 7/13 : Removed fixes due to legal ambiguity

 

Contents

1. The Problem

2. The Fixes

e. Disable the Weather

3. For Authors

a. Using The Weather Channel Feeds

b. Using Another Source

c. Weather & DX Themes

 

1. The Problem

If your weather widget has suddenly stopped working properly, it is likely because the source, Weather.com, has changed their site to prohibit unlicensed usage. The majority of weather widgets on this site were built with the same code which is now outdated.

Symptoms of this particular problem are:

-You get a message saying the location is invalid
-When you try to clear this message it keeps popping up

 

2. The Fixes (as far as we know)

 

*** UPDATE 7/13/09 ***

I have tried to find more information and understand the legalities of the TWC XOAP data feed services and due to ambiguity I have removed these fixes so as not to put anyone else at risk of violating known or unknown weather.com license agreements.

A very good read on the situation with weather.com and their feeds can be found here: http://www.rainmeter.net/forum/viewtopic.php?f=4&t=615

At the present time the only remaining option for end-users is to disable and/or discontinue using the weather widgets.

 

 


E.  DISABLE THE WEATHER:

If you are using a combo widget or theme and would just like to disable the weather parts read below.

There are a few objects that need to be "turned off". To do this you will open the widget/theme in DX Builder (be sure to turn off internet connection first,) find the object, right-click and uncheck Script Enabled.

These objects may be several of the following. (You can ctrl + click to select more than one object in the object list, then r-click and uncheck Script Enabled.)


Version 1:

"weather_image"
"weather_temp"
"weather_location"


Version 2:

"kdockweatherimage" (and/or "kdockweatherimage2")
"Kdockweatherlocation" (and/or "kdockweatherlocation2")
"kdockweathertemp" (and/or "kdockweathertemp2")
"kdockforecastimage1" (through "kdockforecastimage5")


Version 3:

"Weather_Output"
"Weather_Script"
"WeatherFunction_ToggleUnits"
"CUI_SCripts"
"WeatherFunction_SetLocation"

 

 

 3. For Authors

A Notice From the WC Staff:

Starting Monday, July 20th, we will start exiling weather widgets from the WinCustomize galleries that have not been updated and/or violate any ToS/ToU in regards to weather feeds.

See here for more details.

 

Q: Can't I fix and reupload my widgets?

It's fairly certain that our widgets are not in compliance with The Weather Channel's license agreements. Among other things, a widget using TWC's feed now needs to include their logo and 5 advertisement links (to see the full details get registered and download the SDK file included in your confirmation email.)

This is aside from the fact that most of these fixes hard code YOUR license ID and KEY, and you CAN NOT allow others to use these; uploading a fixed widget with your ID and KEY is in violation of the license agreement.

The short answer is no. We can't use these fixes and then reupload our widgets.


Q: What CAN I do?

Right now you need to archive your skins before they are deleted from the galleries.


Q: So that's it? No more weather widgets?

Not necessarily. We have two options:  A. Re-build our widgets in compliance with TWC's license agreement or  B. find another data source.

 

 

A. USING THE WEATHER CHANNEL FEEDS

If you are looking to rebuild your widget in compliance with TWC's agreement you'll need to do the following:

- Register, download and thoroughly read the SDK file included in your confirmation email
- Comply
- Add a function to allow the user to input their license key and partner ID.
- Add a link to the registration page so users know where to get the key and ID.
- Be mindful of the fact that TWC could change their site again and consider putting contingencies in place to prevent further headaches. (i.e., Use and external script that can be copied onto the user's computer, and have as little code in the actual objects.)

 To be clear, anyone looking to make a weather widget using weather.com services MUST be in compliance with their terms of service and license agreements.

 

B. USING ANOTHER SOURCE suggestions by Zubaz

If you decide to part ways with TWC, here are some alternative weather feed sources to consider (You will need to abide by their Terms of Service as well):

-  Wunderground.com  -- LINK

- Yahoo! -- LINK 

- rssweather.com -- LINK

 

Again, I strongly advise using an external script to save yourself (and by extension your end-users) from any headaches in future.

 

C. WEATHER & DX THEMES

If you are a DesktopX theme author, the best advice for now is to exclude the weather widget from your theme and consider uploading weather as a separate widget in future.

 

 

 

 

 

That's all for now...

Leave questions, comments, and your experience reports below.


Comments (Page 1)
on Jul 08, 2009

Thakns for spending the time compiling this.  You rock.

on Jul 09, 2009

Thanks sViz!! I have a feeling this is what everyone wants to see. Just the answers. Good work and thanks for the effort of putting this together.

on Jul 09, 2009

thanks sViz.

 

on Jul 09, 2009

At first, I thought this would be too much of a run-a-round, but it was actually pretty easy. Thank you so much, sViz!

on Jul 09, 2009

I'm probably too lazy, incompetent, and cowardly to try this, but it's great response to the problem. I like the way you always lay things out so clearly.

on Jul 09, 2009

I'm probably too lazy, incompetent, and cowardly to try this, but it's great response to the problem. I like the way you always lay things out so clearly.

Yes, he did lay it out very clearly! It's not as daunting as it may seem, Will.

on Jul 09, 2009

"It's not as daunting as it may seem, Will"

I had to go into Windows sytem files once to remove the word "Professional" from two files so my Windows XP CD could be read. Microsoft had mistakenly put the word in for the non-Professional version, and I couldn't update the system files without doing it, because Windows demanded that I put the "Professional" CD in. I was lucky just to search and find that out. It got me sweating. Look at all those lines of code that she has for us. Scary monsters.

on Jul 09, 2009

Thakns for spending the time compiling this. You rock.

Yes, she most certainly does!!

on Jul 09, 2009

Yes, he did lay it out very clearly! It's not as daunting as it may seem, Will.

Bryan, don't look now, but he is a she...lol..

on Jul 09, 2009

Another way to fix it and much more simple (independant off what version used)

 

And here's THE solution to keep using weather.com (well at least to keep widgets OK) but without having to get any Partner ID and License Key


- 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 in that line http://xoap.weather.com/weather/local/ by http://xml.weather.com/weather/local/ , save & apply the script


- R-click on the DX Builder icon and find the "weather_forecaststatus" object. R-click and choose Edit Script

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

http.Open "GET", "http://xoap.weather.com/search/search?where=" & x, False

- Replace in that line http://xoap.weather.com/search/search?where= by http://xml.weather.com/search/search?where=, save & apply the sript

(you may have to do the same with the second line:  http.Open "GET", "http://xoap.weather.com/search/search?where=" & y, False - in case of two locations choice ...)


- This hardcodes NOTHING and the widget goes fine

- Restore your internet connection and test the widget (Use the change location button)

- If all goes okay (and it will), you can now export the widget again.

Funny isn't it ?

on Jul 09, 2009

good catch neo!

on Jul 09, 2009

Don't hate me but I have to point out that none of the existing widgets comply the Weather.com's XOAP terms of use regarding advertising links and logo display.  I'm not a lawyer and I don't want to be, just don't want Weather.com coming after WC/Stardock with a hammer.  Not looking for a huge debate. I do appreciate the effort and intent of the post though.

on Jul 09, 2009

this doesn't help those of us outside the US. I tried to register with weather.com and there is no place to enter a non-specific US based zip code/city etc. Unfortunate

on Jul 09, 2009

neophil78 way works ok outside US

 

Just tried his way out on krome widget and tracer widget both now work ok in UK.

 

 

on Jul 09, 2009

this doesn't help those of us outside the US. I tried to register with weather.com and there is no place to enter a non-specific US based zip code/city etc. Unfortunate

If you really want to register, just enter your Town and Country that you are using currently in widgets in the box "U.S. Zip Code or City Name *"

 

ex: for me, living in FRANCE, i entered Trappes, FRANCE and i got the email with Partner ID and License Key BUT you don't have too, just read reply #10