Checking Covid-19 national test result figures

Jan 2, 2021 | Scripting and programming, Technology | 0 comments

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.

$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

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.