From 5b2a69b336d436adc46b4b461277fd39e52fb74e Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 19 Sep 2023 15:52:46 +0200 Subject: [PATCH] Update list-coffee-prices.ps1 --- Scripts/list-coffee-prices.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/list-coffee-prices.ps1 b/Scripts/list-coffee-prices.ps1 index 9e1d6a32..07117fe0 100755 --- a/Scripts/list-coffee-prices.ps1 +++ b/Scripts/list-coffee-prices.ps1 @@ -33,7 +33,10 @@ function WriteHorizontalBar { param([float]$Value, [float]$Max) } 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 + Write-Progress -completed " " + "" "$($prices.name) (by alphavantage.co, in $($prices.unit))" "---------------------------------------------------------------"