Update open-dashboards.ps1

This commit is contained in:
Markus Fleschutz 2023-05-22 08:29:33 +02:00
parent e1042e6725
commit 9d4808737a
2 changed files with 7 additions and 6 deletions

View File

@ -5,8 +5,8 @@ Google News,"https://news.google.com"
GitHub Explore,"https://github.com/explore"
Windy Weather,"https://www.windy.com/de/-Wetterradar-radar"
FlightRadar24,"https://www.flightradar24.com/27.63,-6.98/3"
Latest Earthquakes,"https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780"
Earthquake Watch,"https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780"
Live Cyber Threat Map,"https://threatmap.checkpoint.com"
Webcams,"https://www.foto-webcam.eu"
Webcam peak Zugspitze,"https://zugspitze.panomax.com"
Webcam airport Salzburg,"https://livecam.salzburg-airport.com"
Peak webcam Zugspitze,"https://zugspitze.panomax.com"
Airport webcam Salzburg,"https://livecam.salzburg-airport.com"

1 NAME URL
5 GitHub Explore https://github.com/explore
6 Windy Weather https://www.windy.com/de/-Wetterradar-radar
7 FlightRadar24 https://www.flightradar24.com/27.63,-6.98/3
8 Latest Earthquakes Earthquake Watch https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780
9 Live Cyber Threat Map https://threatmap.checkpoint.com
10 Webcams https://www.foto-webcam.eu
11 Webcam peak Zugspitze Peak webcam Zugspitze https://zugspitze.panomax.com
12 Webcam airport Salzburg Airport webcam Salzburg https://livecam.salzburg-airport.com

View File

@ -16,17 +16,18 @@ try {
Write-Host "⏳ (1/2) Loading Data/popular-dashboards.csv..."
$Table = Import-CSV "$PSScriptRoot/../Data/popular-dashboards.csv"
$NumRows = $Table.Length
Write-Host "⏳ (2/2) Opening dashboards in Web browser: " -noNewLine
Write-Host "⏳ (2/2) Launching Web browser with dashboards: " -noNewLine
foreach($Row in $Table) {
$Name = $Row.NAME
$URL = $Row.URL
Write-Host "$Name, " -noNewline
Write-Host "$Name · " -noNewline
& "$PSScriptRoot/open-default-browser.ps1" "$URL"
Start-Sleep -milliseconds 100
}
Write-Host ""
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Opened $NumRows dashboards in $elapsed sec (use switch-tabs.ps1 to switch the tabs automatically)"
"Hint: use switch-tabs.ps1 to switch the browser tabs automatically"
"✅ Opened $NumRows dashboards in $elapsed sec"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"