Wunderground Weather Template Tutorial

Wednesday, May 19, 2010 by sViz | Discussion: DesktopX Tutorials

 

DOWNLOAD WUNDERGROUND WEATHER TEMPLATE

 

So what’s new?

This template uses wunderground.com exclusively for current and forecast weather. NOAA is out. This means many more locations to choose from and no more long (annoying) location names.

Specifically, wunderground adds:

-Radar
-Webcams
-Local Personal Weather Stations
-Airport locations
-Weather Alerts
- Restores Day & Night time icons


What’s changed under the hood?

An external script is still in use for all the data retrieval and parsing functions, BUT all functions relating to presentation (that’s the stuff you’d want to modify) are back in the main object’s script, making it less of a pain for everyone to access.


How do I start using it?

Same as before only less complicated: decide what objects to keep, delete everything else except for the main background (“wu_script”) object. Change graphics and layout as desired.

To change the weather icons, replace all the .PNG files included in “wu_script” Properties > Summary > Custom Files with images of your own using the exact file names you see there.


Adding Information

Here I’ll briefly show how to add and duplicate information.

Supposing you want another location name display separate from the main window.

  1. Clone the location name object (don’t clone entire group.)
  2. Open the “wu_script” script
  3. Add 2 new lines of code

In the "wu_script" object's script, look for the  CURRENT WEATHER  section under DISPLAY WEATHER. Below that you’ll see a General Current Weather section and a Personal Weather Station Current Weather section. Duplicate the Location text code and change the object name in both sections. See below:

 

Adding a second location

 

You can also use any of the extra information not already on display. You’ll see a list of these variables at the top of the script. For instance, ‘localTime’.

  1. Create a new text object, “wu_timestamp”
  2. Open the “wu_script” script
  3. Add 2 new lines of code

Again, under both General Current Weather and Personal Weather Station Current Weather add the following line of code:

DesktopX.Object(“wu_timestamp”).text = localTime

Adding local time

For more ideas on how to modify the template check out this stripped down widget version of the wunderground weather template.


Backwards Compatibility

In one step, you can upgrade your old Summer Weather 2 weather widgets to run exclusively on wunderground.

  • Go to the main DesktopX folder (Programs > Stardock > DesktopX), delete the existing NOAAWUexternalscript.txt file, and replace with the NOAAWUexternalscript.txt file included in the zip. Restart widgets.


In addition, if you’re an author upgrading a widget for reupload:

  • Delete all files in “Weather_Back” Properties > Summary > Custom Files, and add the “NOAAWUexternalscript.txt” file in the zip (when prompted, click Yes to replace.)
  • Update info image to reflect weather provider exclusivity

 

This upgrade does not support:

  • Extra objects included in the Summer Weather 2 template (duplicate objects, etc.) not found in the Wunderground Weather template.
  • Extra features provided by Wunderground that are not included in Summer Weather 2 template (radar, webcams, nighttime icons, etc.)


Questions, comments, visit http://sviz.wincustomize.com

DOWNLOAD WUNDERGROUND WEATHER TEMPLATE

willistuder
Reply #1 Wednesday, May 19, 2010 1:27 PM

Thank you for another wonderful piece of work.

RedneckDude
Reply #2 Wednesday, May 19, 2010 1:37 PM

Eve.....I love ya! lol....(Hope my wife don't read that!)   You rock! This is by far the awsomest weather app ever! Looking forward to skinning it!

Thanks for all you do to further DesktopX! It really needs you. K and stars to you!  

sViz
Reply #3 Thursday, May 27, 2010 5:21 PM

Thanks, guys.

BUMP.  

RedneckDude
Reply #4 Thursday, May 27, 2010 6:31 PM

Richard Mohler
Reply #5 Thursday, May 27, 2010 6:43 PM

 

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