File Exchange

image thumbnail

UIWEATHER ( www.weather.com )

version 1.2.0.0 (6.1 KB) by Elmar Tarajan
UIWEATHER displays forecast weather information obtained from "www.weather.com" service.

3 Downloads

Updated 07 Jan 2010

View Version History

View License

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.

Cite As

Elmar Tarajan (2021). UIWEATHER ( www.weather.com ) (https://www.mathworks.com/matlabcentral/fileexchange/20313-uiweather-www-weather-com), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Sherif

Excellent work

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! :)

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

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.

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.

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Yahoo! Weather

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!