Inspired by @arsaboo’s beautiful animated weather card, I created subtle, ‘flat’ style animated icons for all of the values currently reported by the Dark Sky APIPirate Weather API.
Hope y’all enjoy!
clear-day
clear-night
fog
partly-cloudy-day
partly-cloudy-night
rain
sleet
snow
cloudy
wind
To save:
Copy the name text to your clipboard.
Right-click on the image and select “Save image as…” (or similar).
Wow, I can’t believe there is no interaction on this thread! I just downloaded the icons and replaced the custom weather card ones. This looks so clean! Thank you for this!
Btw: do you know a way to decrease the size of the temperature text, while retaining the icon? I’m rocking only the icon and temperature, but they seem to be linked. When decreasing the font, they both shrink
Glad you like them! I was pretty happy with how they turned out too, but I thought maybe I was just an oddball.
The last section in weather-card.js is renderStyle(), and that contains the .css formatting for the text and icons. I just played around with it – refreshing alot – until I got it how I liked.
@pollinolas: Since they are Scalable Vector Graphics (.svg) they can be resized using .css without becoming distorted, just like fonts.
Where are you wanting to use them, maybe we can help with the styling?
If you’re referring to this, it allows for a size: option. You can either use a percentage (eg: size: 50%) that will dynamically change with the card size, or a fixed number of pixels (eg: size: 50px) that will remain static.
So I’m using these along with the original ones.
The original ones seem to be 64x64px and these are 512x512? They also go right to the edge whereas the original ones don’t I think I need to edit them to give them some whitespace…
I downloaded the icons, renamed them rain, partly-cloudy-day etc
Placed them in /local/custom-lovelace/weather-card/icons/
They didn’t show up with your edited weather-card.js
I also placed them in /local/custom-lovelace/weather-card/icons/animated
And that didn’t work either.
And yes, I added the icons location in the custom card