Updated open-dashboards.ps1

This commit is contained in:
Markus Fleschutz 2023-04-07 19:13:13 +02:00
parent cc5ef1ee1f
commit 4408b5157a
2 changed files with 16 additions and 9 deletions

View File

@ -0,0 +1,10 @@
NAME,URL
Toggl Track,"https://track.toggl.com/timer"
Google Calendar,"https://calendar.google.com/calendar/u/0/r/agenda"
Google News,"https://news.google.com"
Windy Weather,"https://www.windy.com/de/-Wetterradar-radar"
FlightRadar24,"https://www.flightradar24.com/27.63,-6.98/3"
Earthquakes,"https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780"
Webcams,"https://www.foto-webcam.eu"
Webcam peak Zugspitze,"https://zugspitze.panomax.com"
Webcam airport Salzburg,"https://livecam.salzburg-airport.com"
1 NAME URL
2 Toggl Track https://track.toggl.com/timer
3 Google Calendar https://calendar.google.com/calendar/u/0/r/agenda
4 Google News https://news.google.com
5 Windy Weather https://www.windy.com/de/-Wetterradar-radar
6 FlightRadar24 https://www.flightradar24.com/27.63,-6.98/3
7 Earthquakes https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780
8 Webcams https://www.foto-webcam.eu
9 Webcam peak Zugspitze https://zugspitze.panomax.com
10 Webcam airport Salzburg https://livecam.salzburg-airport.com

View File

@ -12,19 +12,16 @@
#>
try {
$URLs = @("https://track.toggl.com/timer", "https://news.google.com", "https://www.windy.com/de/-Wetterradar-radar",
"https://www.flightradar24.com/27.63,-6.98/3","https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780",
"https://www.foto-webcam.eu", "https://zugspitze.panomax.com", "https://livecam.salzburg-airport.com",
"https://sunnyportal.com/FixedPages/Dashboard.aspx", "https://covid19.who.int", "https://top10.netflix.com")
$stopWatch = [system.diagnostics.stopwatch]::startNew()
"⏳ Opening Web dashboards in your browser..."
foreach($URL in $URLs) {
& "$PSScriptRoot/open-default-browser.ps1" "$URL"
Write-Progress "⏳ Opening Web dashboards in your browser..."
$Table = Import-CSV "$PSScriptRoot/../Data/popular-dashboards.csv"
$NumRows = $Table.Length
foreach($Row in $Table) {
& "$PSScriptRoot/open-default-browser.ps1" "$Row.URL"
Start-Sleep -milliseconds 100
}
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Opened 12 Web dashboards in $elapsed sec (use switch-tabs.ps1 to switch the tabs automatically)"
"✅ Opened $NumRows Web dashboards in $elapsed sec (use switch-tabs.ps1 to switch the tabs automatically)"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"