mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 09:58:19 +02:00
Updated open-dashboards.ps1
This commit is contained in:
parent
821372c229
commit
091c7a1a3c
@ -1,12 +1,17 @@
|
|||||||
NAME,URL
|
NAME,URL
|
||||||
Toggl Track,"https://track.toggl.com/timer"
|
Toggl Track,"https://track.toggl.com/timer"
|
||||||
Google Calendar,"https://calendar.google.com/calendar/u/0/r/agenda"
|
Google Calendar,"https://calendar.google.com/calendar/u/0/r/agenda"
|
||||||
CNN World News,"https://edition.cnn.com/world"
|
Google Mail,"https://mail.google.com/"
|
||||||
|
Outlook Mail,"https://outlook.office.com/mail/"
|
||||||
|
Google Photos,"https://photos.google.com/"
|
||||||
|
CNN News,"https://edition.cnn.com"
|
||||||
Google News,"https://news.google.com"
|
Google News,"https://news.google.com"
|
||||||
GitHub Explore,"https://github.com/explore"
|
GitHub Explore,"https://github.com/explore"
|
||||||
FlightRadar24,"https://www.flightradar24.com/27.63,-6.98/3"
|
FlightRadar24,"https://www.flightradar24.com/27.63,-6.98/3"
|
||||||
Earthquake Watch,"https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780"
|
Earthquake Watch,"https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780"
|
||||||
Live Cyber Threat Map,"https://threatmap.checkpoint.com"
|
Live Cyber Threat Map,"https://threatmap.checkpoint.com"
|
||||||
|
Netflix Top 10,"https://www.netflix.com/tudum/top10/"
|
||||||
|
YouTube Music Charts,"https://charts.youtube.com/"
|
||||||
Webcams,"https://www.foto-webcam.eu"
|
Webcams,"https://www.foto-webcam.eu"
|
||||||
Peak webcam Zugspitze,"https://zugspitze.panomax.com"
|
Peak webcam Zugspitze,"https://zugspitze.panomax.com"
|
||||||
Airport webcam Salzburg,"https://livecam.salzburg-airport.com"
|
Airport webcam Salzburg,"https://livecam.salzburg-airport.com"
|
|
@ -1,12 +1,12 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Open dashboards
|
Open Web dashboards
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script launches the Web browser with tabs of popular dashboard websites.
|
This PowerShell script launches the Web browser with tabs of popular dashboard websites.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./open-dashboards
|
PS> ./open-dashboards.ps1
|
||||||
⏳ (1/2) Loading Data/popular-dashboards.csv...
|
⏳ (1/2) Loading Data/web-dashboards.csv...
|
||||||
⏳ (2/2) Launching Web browser with tabs: Toggl Track · Google Calendar · CNN World News...
|
⏳ (2/2) Launching Web browser with tabs... Toggl Track · Google Calendar · CNN News...
|
||||||
...
|
...
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
@ -16,18 +16,18 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
Write-Host "⏳ (1/2) Loading Data/popular-dashboards.csv..."
|
Write-Host "⏳ (1/2) Loading Data/web-dashboards.csv..."
|
||||||
$table = Import-CSV "$PSScriptRoot/../Data/popular-dashboards.csv"
|
$table = Import-CSV "$PSScriptRoot/../Data/web-dashboards.csv"
|
||||||
$numRows = $table.Length
|
$numRows = $table.Length
|
||||||
Write-Host "⏳ (2/2) Launching Web browser with tabs: " -noNewline
|
Write-Host "⏳ (2/2) Launching Web browser with tabs... " -noNewline
|
||||||
foreach($row in $table) {
|
foreach($row in $table) {
|
||||||
Write-Host "$($row.NAME) · " -noNewline
|
Write-Host "$($row.NAME) · " -noNewline
|
||||||
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
|
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
|
||||||
Start-Sleep -milliseconds 50
|
Start-Sleep -milliseconds 100
|
||||||
}
|
}
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
"✅ Opened $NumRows dashboards in $elapsed sec (Hint: use switch-tabs.ps1 to switch between browser tabs automatically)"
|
"✅ opened $NumRows Web dashboards in $elapsed sec (Hint: use switch-tabs.ps1 to switch between browser tabs automatically)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user