Forums

WeatherIcon 2.0 location change (how to?) (3 posts)

  1. swordfish
    Member
    Posted 4 years ago #

    I have just installed WeatherIcon 2.0 (http://www.sonicpling.net/archives/2005/03/12/weathericon-20/)
    at my blog: http://www.gangavalli.com/blog/
    The question is; how do i change the location to 'Hyderabad, India' now and display the weather in my city?

    Does this plugin work for all cities in the world?

    If you guys worked with it, guide me please.

    Thanks.

  2. swordfish
    Member
    Posted 4 years ago #

    ok,

    add 'VOHY' where the php is included in the side bar.
    http://weather.noaa.gov/weather/current/VOHY.html

    Is that the correct way to do it?

  3. vkaryl
    Member
    Posted 4 years ago #

    Nope. You need to get the weather code for Hyderabad (is that VOHY? if so, that's fine), then put that into this call where you want the weather displayed:

    <?php if (function_exists('WeatherIcon')) : ?>
    <li class="weather">Hyderabad, India
    <ul><?php WeatherIcon('VOHY'); ?></ul>
    </li>
    <?php endif; ?>

    So that code snippet goes into your sidebar.php or index.php or wherever you want the weather displayed.

    Then you need to go to the Options page in your admin section, to the WeatherIcon tab, and select the appropriate options. The above call for the program is shown at the bottom of the WeatherIcon options page, btw.

Topic Closed

This topic has been closed to new replies.

About this Topic