Yevgenium / weather-chart-card

Custom weather card with charts
MIT License
275 stars 81 forks source link

Custom icons, static and animated #51

Closed tomasrudh closed 2 years ago

tomasrudh commented 3 years ago

Add two new settings: icons: "/local/custom_ui/weather-card-chart/icons/static/" chartIconsWidth: 30

The first set an URL to custom icons, svg files, static or animated. Local path or a URL to an external site. The setting is optional. The other sets the width of the custom icons, in case they are two big. The setting is optional.

Mapping from type to file name: clear: day clear-night: night cloudy: cloudy fog: cloudy hail: rainy-7 lightning: thunder lightning-rainy: thunder partlycloudy: cloudy-day-3 pouring: rainy-6 rainy: rainy-5 snowy: snowy-6 snowy-rainy: rainy-7 sunny: day windy: cloudy windy-variant: cloudy-day-3 For example, the weather 'fog', looks a file named cloudy.svg

Use preferably the icons from amCharts