2023-07-29 10:34:04 +02:00
*open-dashboards.ps1*
================
2023-05-26 12:20:18 +02:00
2023-09-01 17:53:03 +02:00
This PowerShell script launches the Web browser with 20 tabs of popular dashboard websites.
2023-05-26 12:20:18 +02:00
2023-07-29 10:04:38 +02:00
Parameters
----------
2023-05-26 12:20:18 +02:00
```powershell
2023-07-29 10:15:44 +02:00
PS> ./open-dashboards.ps1 [< CommonParameters > ]
2023-05-26 12:20:18 +02:00
[< CommonParameters > ]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
2023-07-29 10:04:38 +02:00
Example
-------
2023-05-26 12:20:18 +02:00
```powershell
2023-07-29 09:45:37 +02:00
PS> ./open-dashboards.ps1
2023-09-01 17:53:03 +02:00
✅ Launching Web browser with 20 tabs showing: Toggl Track, Google Calendar, Google Mail, Google Keep, Google Photos, Google News, Outlook Mail, CNN News, GitHub Explore, FlightRadar24, Earthquake Watch, Live Cyber Threat Map, Live Traffic, Netflix Top 10, YouTube Music Charts, Webcams, Peak Zugspitze, Airport Salzburg, Windy Weather Radar, Windy Weather Temperatures, (Hint: execute './switch-tabs.ps1' for automated tab switching)
2023-07-29 09:45:37 +02:00
...
2023-05-26 12:20:18 +02:00
```
2023-07-29 10:04:38 +02:00
Notes
-----
2023-05-26 12:20:18 +02:00
Author: Markus Fleschutz | License: CC0
2023-07-29 10:04:38 +02:00
Related Links
-------------
2023-05-26 12:20:18 +02:00
https://github.com/fleschutz/PowerShell
2023-07-29 10:04:38 +02:00
Script Content
--------------
2023-05-26 12:20:18 +02:00
```powershell
< #
.SYNOPSIS
2023-07-29 09:45:37 +02:00
Open web dashboards
2023-05-26 12:20:18 +02:00
.DESCRIPTION
2023-09-01 17:53:03 +02:00
This PowerShell script launches the Web browser with 20 tabs of popular dashboard websites.
2023-05-26 12:20:18 +02:00
.EXAMPLE
2023-07-29 09:45:37 +02:00
PS> ./open-dashboards.ps1
2023-09-01 17:53:03 +02:00
✅ Launching Web browser with 20 tabs showing: Toggl Track, Google Calendar, Google Mail, Google Keep, Google Photos, Google News, Outlook Mail, CNN News, GitHub Explore, FlightRadar24, Earthquake Watch, Live Cyber Threat Map, Live Traffic, Netflix Top 10, YouTube Music Charts, Webcams, Peak Zugspitze, Airport Salzburg, Windy Weather Radar, Windy Weather Temperatures, (Hint: execute './switch-tabs.ps1' for automated tab switching)
2023-07-29 09:45:37 +02:00
...
2023-05-26 12:20:18 +02:00
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
2023-09-01 17:53:03 +02:00
Write-Progress "⏳ Reading Data/popular-dashboards.csv..."
$table = Import-CSV "$PSScriptRoot/../Data/popular-dashboards.csv"
2023-07-29 09:45:37 +02:00
$numRows = $table.Length
2023-09-01 17:53:03 +02:00
Write-Progress -completed "."
Write-Host "✅ Launching Web browser with 20 tabs showing: " -noNewline
2023-07-29 09:45:37 +02:00
foreach($row in $table) {
2023-09-01 17:53:03 +02:00
Write-Host "$($row.NAME), " -noNewline
2023-07-29 09:45:37 +02:00
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
Start-Sleep -milliseconds 100
2023-05-26 12:20:18 +02:00
}
2023-09-01 17:53:03 +02:00
Write-Host "(Hint: execute './switch-tabs.ps1' for automated tab switching)"
2023-05-26 12:20:18 +02:00
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
```
2023-09-01 17:53:03 +02:00
*(generated by convert-ps2md.ps1 using the comment-based help of open-dashboards.ps1 as of 09/01/2023 17:51:53)*