WordPress.org

Ready to get started?Download WordPress

Forums

Weather Underground
[resolved] Name of custom icons (4 posts)

  1. nutsonshells
    Member
    Posted 1 year ago #

    Hi Support
    It seems I am the only one who is struggling with the namings of the custom icons!? What should the names be for the various icons?
    Any help would be greatly appreciated.

    Otherwise it works very nicely.

    Thanks
    Regine

    http://wordpress.org/plugins/wunderground/

  2. mcdonna
    Member
    Posted 9 months ago #

    Regine, I'm baffled too! I found no clues in the plugin code.

    I found some names by typing in different values using http://icons-ak.wxug.com/i/c/g/ as a prefix (e.g., http://icons-ak.wxug.com/i/c/g/sunny.gif). Here are the ones that worked:

    snow.gif
    rain.gif
    sunny.gif and clear.gif are the same icon
    cloudy.gif

    But in the examples at https://katz.co/wunderground/ there is one more that is similar to cloudy. I tried overcast, gray, partly-cloudy, with no luck. Will keep trying but in the meantime anyone with a clue is invited to jump in!

    Thanks,
    Donna

  3. mcdonna
    Member
    Posted 9 months ago #

    Thanks to @wdesousa for answering this question in a different thread (http://wordpress.org/support/topic/icons-ecast-hosed):

    As to icon names - if you grab them from http://www.wunderground.com/weather/api/d/docs?d=resources/icon-sets they are already correctly named to correspond to the different weather events.

    So here is the list I came up with:

    Daytime
    
    chanceflurries.gif
    chancerain.gif
    chancesleet.gif
    chancesnow.gif
    chancetstorms.gif
    clear.gif
    cloudy.gif
    flurries.gif
    fog.gif
    hazy.gif
    mostlycloudy.gif
    mostlysunny.gif
    partlycloudy.gif
    partlysunny.gif
    sleet.gif
    rain.gif
    sleet.gif
    snow.gif
    sunny.gif
    tstorms.gif
    cloudy.gif
    partlycloudy.gif 
    
    Nighttime
    
    nt_chanceflurries.gif
    nt_chancerain.gif
    nt_chancesleet.gif
    nt_chancesnow.gif
    nt_chancetstorms.gif
    nt_clear.gif
    nt_cloudy.gif
    nt_flurries.gif
    nt_fog.gif
    nt_hazy.gif
    nt_mostlycloudy.gif
    nt_mostlysunny.gif
    nt_partlycloudy.gif
    nt_partlysunny.gif
    nt_sleet.gif
    nt_rain.gif
    nt_sleet.gif
    nt_snow.gif
    nt_sunny.gif
    nt_tstorms.gif
    nt_cloudy.gif
    nt_partlycloudy.gif
  4. Zack Katz
    Member
    Plugin Author

    Posted 4 months ago #

    Thanks @mcdonna - that's a good list. Version 2.x includes the icons in the plugin file, so you can refer to those in the /wunderground/assets/img/icons/ directory.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic