package carbon

  1. Overview
  2. Docs
type t
type index = [
  1. | `Very_low
  2. | `Low
  3. | `Moderate
  4. | `High
  5. | `Very_high
]

The index is a measure of the Carbon Intensity represented as a scale

val period : t -> Period.t

The period of time for which the Carbon Intensity information is valid.

val forecast : t -> int

The forecast Carbon Intensity for the period in units gCO2/kWh

val actual : t -> int option

The forecast Carbon Intensity for the period in units gCO2/kWh. This is optional as the data might be for the future.

val index : t -> index

Extracts the index for a given intensity

val pp : t Fmt.t

A simple pretty printer for intensity information

OCaml

Innovation. Community. Security.