As we mentioned earlier, apart from temperature and humidity, we will measure wind speed, atmospheric pressure, and sunrise and sunset times using free and open source weather APIs.
Quite a few weather APIs are available for free. We will use the OpenWeatherMap API, which is easy to use and requires just a simple registration on their website to get started. It provides a REST-based API endpoint to get the weather data in JSON format. As input parameters, we need to provide a city ID, which is provided on the website itself, and APPID, which you will get after registration.
Let's go through the registration process and see how it works:
- Log on to http://www.openweathermap.com/ and click on Sign Up.
- A registration page will appear; provide your username, email, and password to complete the registration.
- Once successfully logged in to your account, the following...