Private/Convert-Minutely.ps1

filter Convert-Minutely([TimeSpan]$TimeZoneOffset = [TimeSpan]::Zero)
{
    $DateTimeUtc = Get-Date -UnixTimeSeconds $_.dt -AsUTC

    [PSCustomObject]@{
        PSTypeName      = 'UncommonSense.Weather.Minutely'
        DateTimeUtc   = $DateTimeUtc
        DateTime      = $DateTimeUtc.Add($TimeZoneOffset)
        Precipitation = $_.precipitation
    }
}