Silver IT
Making Computers Fun Again

Adding a small weather widget to a website

websites

One of my favorite weather APIs, wttr.in serves up a simple, text-based weather applet and forecast that you can even view in a terminal.

They also generate PNG images of current conditions. For example, this is the weather in Antonito, Colorado right now:

https://wttr.in/Antonito,Colorado

This weather data is pulled from an external API (wttr.in), which means that the image is not served by this website. After all the content on this page loads, that image is generated off-site and inserted into the page when you load it. That's how we achieve lightning-fast page load times and display realtime data.

< Back to all posts