API - Definition

An API is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software.

API - Request

We make a HTTP request through the API which gives us a JSON with our data. Then we only fetch what is necessary for our website.

JSON - Definition

JSON is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute-value pairs and arrays.

Background

For our background, depending on the temperature, we select the appropriate background. If it is hot, we have a picture of fields, while if it's cold, we have a picture of mountains.

Clouds

If the weather is cloudy, we will have animated clouds. This is really simple, since we add our clouds image to our background, and then move it 5px to the left every 200ms.