Skip to content

Commit

Permalink
Added radio-check.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Fleschutz committed Aug 23, 2024
1 parent 5be5179 commit f45d11d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
35 changes: 24 additions & 11 deletions scripts/open-dashboards.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,34 @@
Open dashboards
.DESCRIPTION
This PowerShell script launches the Web browser with some dashboard websites.
.EXAMPLE
PS> ./open-dashboards
.LINK
https://github.com/fleschutz/talk2windows
.NOTES
Author: Markus Fleschutz | License: CC0
#>

$URLs = @("https://track.toggl.com/timer",
"https://calendar.google.com/calendar/u/0/r/agenda",
"https://mail.google.com/",
"https://keep.google.com/",
"https://photos.google.com/",
"https://news.google.com",
"https://outlook.office.com/mail/",
"https://edition.cnn.com",
"https://github.com/explore",
"https://www.flightradar24.com/27.63,-6.98/3",
"https://www.arcgis.com/apps/dashboards/c8af9c5411814584b460cc87cb7c3780",
"https://threatmap.checkpoint.com",
"https://www.msn.com/en-us/traffic?lvl=11&intent=roadClosures",
"https://www.netflix.com/tudum/top10/",
"https://charts.youtube.com/",
"https://www.foto-webcam.eu",
"https://zugspitze.panomax.com",
"https://livecam.salzburg-airport.com",
"https://www.flightradar24.com/data/airports/muc",
"https://www.windy.com/de/-Weather-radar-radar",
"https://www.windy.com/-Temperature-temp",
"https://warnung.bund.de/meldungen")

try {
& "$PSScriptRoot/_reply.ps1" "Hold on."
& "$PSScriptRoot/_reply.ps1" "Okay."

$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")
foreach($URL in $URLs) {
& "$PSScriptRoot/open-browser.ps1" "$URL"
Start-Sleep -milliseconds 100
Expand Down
11 changes: 11 additions & 0 deletions scripts/radio-check.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<#
.SYNOPSIS
Replies to "Radio check"
.DESCRIPTION
This PowerShell script replies to 'Radio check' by text-to-speech (TTS).
#>

$reply = "Read you loud and clear.", "Read you 5 by 5." | Get-Random

& "$PSScriptRoot/_reply.ps1" $reply
exit 0 # success

0 comments on commit f45d11d

Please sign in to comment.