Crate carbonintensity
source ·Expand description
API for retrieving data from the Carbon Intensity API https://api.carbonintensity.org.uk/
Structs
Enums
- An error communicating with the Carbon Intensity API.
Functions
- ISO8601 format YYYY-MM-DDThh:mmZ but tolerates YYYY-MM-DD https://api.carbonintensity.org.uk/regional/intensity/2023-05-15/2023-05-20/postcode/RG10
- Return a representation of the end date or an error if the dates are incorrectly formulated
- Current carbon intensity for a postcode
- Current carbon intensity for a region The region id is a number between 1 and 17