My DX weather widgets stopped working. This has happened before in years past. I don't know of a solution.
I installed DX 4.0. But there is one problem... look at your PM. The DesktopX Builder.exe is MISSING!!! How I can edit the widget???
I uninstalled DesktopX 4.0. Then installed my old DesktopX 3.50. Works great. That was good news. And now the bad ones...
I can’t fix your widget because it works through the WEATHER UNDERGROUND. I need the widget from which you got this function:
Vad, builder hasn't been around for a good while. Check your PM.
The problem was solved. Everything works fine, so forget about these trifles...
Please, give me a link to download any widget which works with weather.com and uses the function from Reply #27.
I cannot fix any other scripts because it takes too long to study how they work...
Here is the link to the fixed Stardock's Silica Weather widget:
https://www.sendspace.com/file/hqrwrt
I did this a few minutes ago. You may see how it work now.
Sorry Vad, I'm not putting a credit card into a "free" account in order to get this file.
Edit:, after closing and reopening the page it let me download for free.
Damn scammers! They talked about a free service! Hmm... In the Firefox, it doesn't ask for a credit card... Anyway I'm sorry.
So I decided to post the fixed code here to bypass any uploads/downloads.
1. The part of Function from DesktopX.ScriptObject ("weather_location") (it searches for a TWC weather code by Location Name):
Function Object_OnLButtonUp(x,y,dragged) If dragged = False Then x = DesktopX.ScriptObject("weather_image").location 'If IsNumeric(x) = False Then x = Object.Text x = InputBox("Please enter the zip code or location that you would like to display the weather for:" & vbNewLine & "e.g. 48152 or York,England", "Select location ...", x) If IsNumeric(x) = False Then Set http = CreateObject("Microsoft.XmlHttp") Randomize str_RANDOM_URL="&rnd=" & rnd() '<--- HERE IS YOUR FIX ---> http.Open "GET", "http://wxdata.weather.com/wxdata/search/search?where=" & x, False http.send ""' Store data in a string ..........................................................................................................................................................................End Function
As you see, we have already dealt with this Function.
2. The part of Subroutine from DesktopX.ScriptObject ("weather_image") (it retrieves and analyzes the weather data):
Sub Object_OnTimer6001 If location <> "" And location <> "Not found" Then If System.InternetConnected Then On Error Resume Next ' Create a web object Set http = CreateObject("Microsoft.XmlHttp") ' Retrieve data Randomize str_RANDOM_URL = "&rnd=" & rnd() If tempunit = "m" Then str_UNITS = "&unit=m" Else str_UNITS = "&unit=s" End If '<--- HERE IS YOUR FIX ---> http.Open "GET", "http://wxdata.weather.com/wxdata/weather/local/" & location & "?cc=*&dayf=5" & str_UNITS & str_RANDOM_URL, False http.send "" ' Store data in a string.............................................................................................................................................End Sub
That's all. Just change these two lines in your code and any widget received data from weather.com will work without errors.
Good luck and Happy Coding
I found why some widgets/gadgets stopped working. Please look here:
End of Service for the Weather Underground API
Sad news...
I don't mean to whine, but the Silica weather has an issue where you have to set city every time you load it. It doesn't remember the city you set.
Sviz scripts created a folder on the PC that would contain items to cause it to remember the location.
Jim, my goal was to fix the widget’s access to the weather forecast, and I did it. Nothing more. I don’t even know where and how this Silica stores location records...
I can and I am ready to help. But I cannot do your work in your place. These are your widgets and only you know how they should work. Not me.
Please give me a link to any of your old widgets that worked with weather.com (not through WU). I will fix this widget and you will use it as a template. Or you can do it yourself using the instructions from: Reply #32
Vad.
P.S. Here are a few other working widgets: Widget Examples.zip
Oh, Vad, that wasn't aimed at you. Sorry. it was a general rant/bitch about the way things work. I didn't expect you to fix it, though I was hoping someone would have an answer.
I can't code, so, I guess it is what it is.
I appreciate the fixing of Silica, at least now I have a template.
All (if I recall correctly) of my widgets are using WU, as that is the script that Sviz used. I will just likely delete all my non working weather, and not upload weather anymore due to the fickleness of the feeds. I MIGHT use silica as a template for future skins.
Thank you for the examples, Vadim.
There is an easy way to check the widget in the DX List Objects (turn off the Internet earlier!!!). The widget is not editable if you will see any objects with "WU ..." in their names. But if you will see an object like "weather_image", "weatherimage", etc... this is what you need.
Hi Jim,
All widgets in the "Examples" based on _Martin_ script. I think that the easiest way for you would be to use one of adni's widgets, because GT3 writes data to the Windows registry, which is not very good. Adni's widgets also have fewer objects and features, which makes them easier to use as example.
Good Luck!
P.S. There is no doubt that in a few days your widgets will work again!
Jim, YOU ROCK!
There are many great features available to you once you register, including:
Sign in or Create Account