erikflowers / weather-icons

215 Weather Themed Icons and CSS
https://github.com/erikflowers/weather-icons
6.93k stars 854 forks source link

openweathermap.org icons #61

Closed kubante closed 9 years ago

kubante commented 9 years ago

I would like to add this javascript objects that permits to map the openweathermap.org icons to your weather-icons.

Here is a first draft:

var weather_icon_matrix: {

  "01d": "wi-day-sunny",
  "02d": "wi-day-cloudy",
  "03d": "wi-cloudy",
  "04d": "wi-smoke",
  "09d": "wi-rain",
  "10d": "wi-day-rain",
  "11d": "wi-lightning",
  "13d": "wi-snow",
  "50d": "wi-fog", 
  "01n": "wi-night-clear",
  "02n": "wi-night-cloudy",
  "03n": "wi-cloudy",
  "04n": "wi-smoke",
  "09n": "wi-rain",
  "10n": "wi-night-rain",
  "11n": "wi-night-alt-thunderstorm",
  "13n": "wi-night-snow",
  "50n": "wi-night-cloudy-windy"
}
erikflowers commented 9 years ago

Open weather map codes have been added to the 2.0-wip

carl-alberto commented 9 years ago

Hi Erik,

I'm not sure if the Kubante's suggestion was implemented, If yes, much better if we can be able have it detailed in the readme me file so new users (like me) can be able to easily associate the data from open weather to this icon set.

Thanks for sharing these codes and more power!