package carbon

  1. Overview
  2. Docs

Module Carbon.GbSource

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.

Sourcetype t

A configuration value for accessing the data

Sourceval v : _ Eio.Net.t -> t

Creates a new configuration value with network access.

Data types

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