Getting started

First, make sure you added the sunny package to your gleam project !

gleam add sunny

You will also need a way to make HTTP requests, as this package only returns requests and handles the results. For that, you can use HTTP clients such as gleam_httpc or gleam_fetch.

To start interacting with the diffent Open-meteo (OM) APIs, you need to create a new sunny client :

import sunny

pub fn main() {
  let sunny = sunny.new()
}
If you have a commercial access to Open-meteo ```gleam let sunny = sunny.new_commercial("") ```

Using the APIs

Now you can start using the other APIs :

More APIs will be supported in the future.

You can check the various examples to get an idea of how to use the APIs.

Search Document