DesktopX Weather Widget Fixes

Wednesday, July 8, 2009 by sViz | Discussion: 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.

First Previous Page 1 of 11 Next Last
ZubaZ
Reply #1 Wednesday, July 8, 2009 11:49 PM

Thakns for spending the time compiling this.  You rock.

G3mpi3
Reply #2 Thursday, July 9, 2009 12:05 AM

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.

bilbo1930
Reply #3 Thursday, July 9, 2009 12:36 AM

thanks sViz.

 

Mirsguy
Reply #4 Thursday, July 9, 2009 12:41 AM

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!

willistuder
Reply #5 Thursday, July 9, 2009 1:16 AM

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.

Mirsguy
Reply #6 Thursday, July 9, 2009 1:46 AM

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.

willistuder
Reply #7 Thursday, July 9, 2009 2:16 AM

"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.

RedneckDude
Reply #8 Thursday, July 9, 2009 2:45 AM

Thakns for spending the time compiling this. You rock.

Yes, she most certainly does!!

RedneckDude
Reply #9 Thursday, July 9, 2009 2:47 AM

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..

neophil78
Reply #10 Thursday, July 9, 2009 3:38 AM

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 ?

bilbo1930
Reply #11 Thursday, July 9, 2009 4:29 AM

good catch neo!

DaveRI
Reply #12 Thursday, July 9, 2009 4:40 AM

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.

Nimbin
Reply #13 Thursday, July 9, 2009 5:06 AM

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

RickJP
Reply #14 Thursday, July 9, 2009 5:17 AM

neophil78 way works ok outside US

 

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

 

 

neophil78
Reply #15 Thursday, July 9, 2009 5:18 AM

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

neophil78
Reply #16 Thursday, July 9, 2009 5:20 AM

good catch neo!

Much more simple isn't it ?

 

BTW i don't know at all if there's any breach of Conditions of use as it's not the same Informations flux url (http://xml.weather.com/weather/local/ instead of http://xoap.weather.com/weather/local/) and search flux url (http://xml.weather.com/search/search?where= instead of http://xoap.weather.com/search/search?where= )

sViz
Reply #17 Thursday, July 9, 2009 7:56 AM

Awesome work neophil! I've updated the post. Thank you.

sViz
Reply #18 Thursday, July 9, 2009 7:59 AM

DaveRI
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.

Its up to the authors to make the necessary adjustments going forward. These solutions are for the end-users who have already downloaded the widgets.

sViz
Reply #19 Thursday, July 9, 2009 8:18 AM

Nimbin
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

Hmm. Vad_M and adni both got it working. I tried entering some international zip codes with no luck. Then I entered the city/country names and they gave a list of suggested city/countries that had the place I was looking for. See if that works.

Wizard1956
Reply #20 Thursday, July 9, 2009 11:41 AM

I was going with solution "E" In the object list I have mostly "weather..." showing.LOTS of them.It makes it hard to disable things with no more info than that. Even so, there is no way am I going through every single one in my collection.

It looks like I'll just have to mothball or delete most of my themes and hopefully get RedneckDude to walk me through fixing (disabling) a handful for use,then redownload updated(read legal) versions if they become available.  Doesn't this make all weather widgets/DX themes in the galleries that use weather dot com a direct violation of the TWC terms of usage? Same for Master DX themes for sale, if they don't comply and/or will not work in their present form shouldn't they all be removed. Flame me if you like,but why would anyone download a broken widget/theme? I see no disclamer or notification in any gallery that these will no longer work or require signing up with TWC and modification before they will function.(Even then,they won't comply unless the links and logo are added.)

I will continue to follow these threads,but I have no more comments on the subject. Thanks for letting me rant.I am very disappointed that an easier solution can't be found.

As Bob Dylan once sang "You don't need a weatherman to know which way the wind blows."

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01