Skip to content

Instantly share code, notes, and snippets.

@1CM69
1CM69 / GetCalorificAverage.ps1
Last active October 29, 2023 07:13 — forked from lwsrbrts/GetCalorificAverage.ps1
Find the Average Gas Calorific Value for any LDZ in the UK for a period that you specify, based on : https://gist.github.com/lwsrbrts/d96092b65f2f7b7952e2f7983a9ee527
cls
$TodayDate = Get-Date -Format "yyyy-MM-dd"
$TodayDateF = Get-Date -Format "dd/MM/yyyy"
$LDZ = Read-Host -Prompt 'Enter the Local Distribution Zone (LDZ) that you require info for, see here: [https://www.xoserve.com/xoserve-search?term=Postcode%20Exit%20Zone/LDZ%20mapping%20list] '
$PreviousReading = Read-Host -Prompt 'Enter the date of the previous reading in dd/mm/yyyy format'
$PreviousReadingDate = Get-Date $PreviousReading -Format "yyyy-MM-dd"
$Tab = [char]9
$Soap = @"