package carbon

  1. Overview
  2. Docs

Energy Mix for Great Britain

This plugin provides a client for interacting with the carbon-intensity API. This includes intelligent forecasting models as well as current and past energy mixes.

type t

A configuration value for accessing the data

val v : Eio.Net.t -> t

Creates a new configuration value with network access.

Data types

module Period : sig ... end
module Error : sig ... end
module Intensity : sig ... end
module Factors : sig ... end
val get_intensity : t -> Intensity.t
val get_intensity_period : period:(Ptime.t * [ `Fw24 | `Fw48 | `Pt24 | `To of Ptime.t ]) -> t -> Intensity.t list
OCaml

Innovation. Community. Security.