This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import datetime | |
| import ephem | |
| LAT = '' # in form 'xx.xxxxxx' or "xx:xx:xx.xx" | |
| LON = '' # in form 'xx.xxxxxx' or "xx:xx:xx.xx" | |
| ELE = 0 # in whole meters | |
| Today = datetime.date.today() | |
| CurrentYear = Today.strftime("%Y") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cls | |
| $TodayDate = Get-Date -Format "yyyy-MM-dd" | |
| #$TodayDate = "2023-08-15" #for testing | |
| $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] ' | |
| $Soap = @" | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> | |
| <soap12:Body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 = @" |