Code covered by the BSD License  

Highlights from
UIWEATHER ( www.weather.com )

4.5

4.5 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 6.1 KB File ID: #20313
image thumbnail

UIWEATHER ( www.weather.com )

by Elmar Tarajan

 

16 Jun 2008 (Updated 07 Jan 2010)

UIWEATHER displays forecast weather information obtained from "www.weather.com" service.

| Watch this File

File Information
Description

There are two modes possible.
-----------------------------
1. As a standalone GUI which displays the weather information. For standalone mode you will need an UIWEATHER.INI file which contains start settings like color, units and the specified city codes. The UIWEATHER.INI should simplify the function call. So you can predefine the settings before and use only UIWEATHER without start parameters to show the weather forecast for specified cities.
 
2. It is possible to place the weather forecast within another GUI. In this case you should specify the GUI handle, position in pixels and some other settings if necessary.
        
If multiple city codes are specified you can use the contextmenu to switch between city names. The tooltipstrings provides additional infos.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Yahoo! Weather

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
28 Jun 2008 John D'Errico

A nice idea. But it is poor programming style to force the person who might use this to edit your code to set their own preferences.

28 Jun 2008 Elmar Tarajan

unfair review!

The user can set his own preferences in UIWEATHERINI.M file and each available feature is documented!

P.S. The person who might use my code should be able to use debugger, not mentioned to that the code is easy comprehensible for an programmer with enough experience.

28 Jun 2008 John D'Errico

Sorry. But I stand by my statement. It is poor programming practice to force a user to edit your code to set their preferences. Well written code does not require this of the user, ergo, this does not qualify as well written code in my opinion.

However, I'm amazed that the author calls my review unfair, as I still gave it a "good" rating. In fact, I also considered a "fair" rating as an alternative. As this code is, it is not what I would describe as "excellent".

30 Jun 2008 Elmar Tarajan

OK! Indeed, I agree with you up to a certain point, but I think that using of M-script or M-file as an INI-File is absolutely ok and is very robust. Anyway I have recoded the handling of the INI-File. :)

A "Fair" raiting would be suspect in this case! John D'Errico, be (more) objective! :)

28 Apr 2009 Sherif

Excellent work

Please login to add a comment or rating.
Updates
30 Jun 2008

-many code improvements
-improved handling of UIWEATHER.INI file (thx @ John D'Errico :)
-improved look
-fixed bugs

01 Jul 2008

-

07 Jan 2010

readapt from yahoo! to TWC (www.weather.com)

07 Jan 2010

bug fixed: converting F° to C°

Tag Activity for this File
Tag Applied By Date/Time
yahoo weather forecast ui gui icon Elmar Tarajan 22 Oct 2008 10:06:18

Contact us at files@mathworks.com