I don’t really like just relying on news papers and online media for information. especially when it’s as important as trends relating to the spread of Covid-19. So I’m working on some very simple PowerShell scripts to get the information from the HPSE. Feel free to grab this and add it to something more interesting. It is just the very basics at the moment but it’s a nice way of finding out what happened on a given date or a given location.
1 2 3 4 5 6 7 8 9 10 11 12 |
$RawCovidTestData = invoke-RestMethod https://opendata.arcgis.com/datasets/f6d6332820ca466999dbd852f6ad4d5a_0.geojson $TestFeatures = $RawCovidTestData.Features $TestResults = $TestFeatures.Properties 2021/01/01 11:00:00+00 $TestResults | Where-object {$_.Date_HPSC -eq '2021/01/01 11:00:00+00'} $CovidByCounty = invoke-RestMethod https://opendata.arcgis.com/datasets/4779c505c43c40da9101ce53f34bb923_0.geojson $FeaturesByCounty = $CovidByCounty.Features $CovidCountyDetails = $FeaturesByCounty.Properties $CovidCountyDetails | Where-Object {$_.CountyName -eq 'Louth'} |
0 Comments