HowTo Vista

HowTo: Fix The Built-in Weather Gadget in Vista

tips Make the gadget work in non-English Vista systems and “remember” user settings.

One of the new features in Windows Vista is the Sidebar and Gadgets, which provide a handy and speedy way to retrieve various information without additional efforts. The integrated weather gadget, does look great when it works, however, might become less appealing, even unusable by some [serious] bugs.



The first bug, only appears in non-English systems, or on English Vistas whose “language for non-Unicode programs” option is set to other language. The weather gadget  will display nothing other than “service unavailable”. Being around for quite sometime, Microsoft seems to have no intend to fix it.

Another bug would affect anyone who is not in Redmond–the gadget simply resets the location each time it starts.

To fix the first bug, you’ll need to replace the vanilla weather.js file with a modified one(download). The original weather.js can be found

%ProgramFiles%Windows SidebarGadgetsWeather.Gadgeten-USjs 

Get full control for this file(how) and then replace it with the downloaded one. The gadget should work now regardless the language setting.

The second bug can be work around by setting a new “default” location. Find localizedStrings.js in the same directory, get full access over it, then right click the file, select Edit, this will open the file in notepad, locate the lines shown below:

L_localizedStrings_Text[‘DefaultCity’] = ‘Redmond, WA’;
L_localizedStrings_Text[‘DefaultLocationCode’] = ‘wc:USWA0367′;
L_localizedStrings_Text[‘DefaultUnit’] = ‘Fahrenheit’

Let’s change the new default to Paris(some place outside US, as an example). Navigate to MSN Weather(http://weather.msn.com/) and type “Paris France” in the search box, notice the address bar now shows

http://weather.msn.com/local.aspx?wealocations=wc:FRXX0076

So wc:FRXX0076 is the magic code we need for the 2nd line, the default city in the first line doesn’t matter in fact as the gadget actually resolve the name from the location code, but its never hurt to set it to Paris, FRA as reminder. The last line is unit, and we can choose from Fahrenheit and Celsius. So putting all these together, we have

L_localizedStrings_Text[‘DefaultCity’] = ‘Paris, FRA’;
L_localizedStrings_Text[‘DefaultLocationCode’] = ‘wc:FRXX0076′;
L_localizedStrings_Text[‘DefaultUnit’] = ‘Celsius’;

Save the file, close and reopen the weather gadget, it should show the weather in Paris in the first place.

7 Comments so far »

  1. DigitMemo.com » Hands-on: first impression on Vista SP1 Beta said

    am September 26 2007 @ 3:26 am

    […] There is no fix for the weather gadget […]

  2. der boris said

    am September 18 2008 @ 2:39 pm

    gutes ding!
    danke.

  3. Maxxon said

    am April 5 2009 @ 7:09 am

    Thanks, works fine. =)

  4. Samir said

    am July 22 2010 @ 9:09 am

    Thanks, works 100% fine

  5. eva said

    am August 26 2010 @ 4:13 am

    i can’t save my file? says its the wrong filename
    anyone knows how to fix it?

  6. Das Wetter-Gadget funktioniert nicht mehr « Borns IT- und Windows-Blog said

    am January 20 2011 @ 4:55 am

    […] [2] findet sich ein ähnlicher Ansatz, der Bugs im Gadget für nicht englische Vista-Versionen […]

  7. prom dresses under said

    am February 5 2012 @ 7:43 am

    prom dresses under…

    […]DigitMemo.com » HowTo: Fix The Built-in Weather Gadget in Vista[…]…

Comment RSS · TrackBack URI

Leave a comment

Name:

eMail:

Website:

Comment: