User Tools

Site Tools


owm

Open Weather API

OpenWeather (https://openweathermap.org/) is a service that can give you lots of weather data, past, present and future. In this article I'm going to discuss a Perl implementation to get the current weather using the published API. The service is free for up to 1000 queries per day, which is more than adequate for most purposes. Since the weather doesn't change much minute to minute if you need current weather data more frequently then I suggest you cache the data locally and limit your queries to less than 1000 per day.

First of all you need to sign up to get an account at https://home.openweathermap.org/users/sign_up.

Once you have signed up and logged in, you can see your keys by left clicking your account in the top right of your screen and select “My API Keys”.

To be continued

owm.txt · Last modified: 2022/08/30 15:11 by admin