mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +02:00
Update list-coffee-prices.ps1
This commit is contained in:
parent
86f447985e
commit
5b2a69b336
@ -33,7 +33,10 @@ function WriteHorizontalBar { param([float]$Value, [float]$Max)
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Write-Progress "⏳ Loading data from www.alphavantage.co..."
|
||||||
$prices = (Invoke-WebRequest -URI "https://www.alphavantage.co/query?function=COFFEE&interval=monthly&apikey=demo" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
$prices = (Invoke-WebRequest -URI "https://www.alphavantage.co/query?function=COFFEE&interval=monthly&apikey=demo" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
||||||
|
Write-Progress -completed " "
|
||||||
|
|
||||||
""
|
""
|
||||||
"$($prices.name) (by alphavantage.co, in $($prices.unit))"
|
"$($prices.name) (by alphavantage.co, in $($prices.unit))"
|
||||||
"---------------------------------------------------------------"
|
"---------------------------------------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user