package carbon

  1. Overview
  2. Docs
type t

A configuration value for accessing the data

module Zone : sig ... end

Possible Zones as defined by the Electric Map API for more information see the zones API.

val v : api_key:string -> Eio.Net.t -> t

v api_key constructs a new configuration value using the provided api_key.

module Intensity : sig ... end
val get_intensity : zone:Zone.t -> t -> Intensity.t

get_intensity ~net ~zone t will try to get the intensity values for a particular zone by calling the API.

OCaml

Innovation. Community. Security.