Hacker News new | ask | show | jobs
by eflowers 3927 days ago
That weather readout would look great with some slick weather icons:

https://erikflowers.github.io/weather-icons/

1 comments

I'm using these for my smart mirror project, and tied them by index to the Yahoo Weather API.[1][2] There isn't a perfect one-to-one relationship between the API codes and the icons, but it's pretty close.

My one complaint about the icons is that they flow outside of the boundaries of what you'd expect them to be contained in, which can lead to some accidental overlap if you aren't careful with your margins.

[1] https://github.com/alaycock/SmartMirror/blob/master/public/j...

[2] https://developer.yahoo.com/weather/documentation.html#codes

I have updated these quite a bit, the bounding boxes are fixed and there are various API mapping a including yahoo. Check it out.
Thanks for the reply! I'll take a look at it soon, I'll definitely grab these again. I think the version I used was from July, so it's definitely outdated.