Function carbonintensity::get_intensities_postcode
source · pub async fn get_intensities_postcode(
postcode: &str,
start: &str,
end: &Option<&str>
) -> Result<Vec<(NaiveDateTime, i32)>, ApiError>Expand description
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