Add show-bitcoin-rate.ps1 and show-ether-rate.ps1

This commit is contained in:
Markus Fleschutz 2021-12-07 07:15:39 +01:00
parent 3e9db326bc
commit 8cb9e9a888
7 changed files with 37 additions and 7 deletions

View File

@ -26,7 +26,7 @@ More supported voice commands are:
`Computer, check` [name]
------------------------
Lets the computer check something, replace [name] by: `Bitcoin`, `Christmas`, `CPU`, `date`, `dawn`, `DNS`, `Dogecoin`, `drives`, `dusk`, `Earth` (fun), `Ethereum`, `headlines`, `ISS`, `moon phase`, `New Year`, `operating system`, `ping`, `Santa`, `sunrise`, `sunset`, `swap space`, `time`, `time zone`, `up-time`, `VPN`, `weather`, or `zenith`.
Lets the computer check something, replace [name] by: `Bitcoin rate`, `Christmas`, `CPU`, `date`, `dawn`, `DNS`, `Dogecoin rate`, `drives`, `dusk`, `Earth` (fun), `Ether rate`, `headlines`, `ISS`, `moon phase`, `New Year`, `operating system`, `ping`, `Santa`, `sunrise`, `sunset`, `swap space`, `time`, `time zone`, `up-time`, `VPN`, `weather`, or `zenith`.
`Computer, open` [name] `browser`
@ -49,7 +49,7 @@ Lets the computer check something, replace [name] by: `Bitcoin`, `Christmas`, `C
`Computer, open` [name] `website`
---------------------------------
* launches the default Web browser with the given website - replace [name] by: `Amazon`, `Apple`, `Baidu`, `BBC`, `Bing`, `BitBucket`, `CDC`, `CIA`, `CNN`, `DistroWatch`, `Dropbox`, `eBay`, `Facebook`, `FBI`, `Flipboard`, `FourSquare`, `FRITZ!Box`, `FRITZ!Repeater`, `GitHub`, `GliderTracker`, `HolidayCheck`, `HRworks`, `Instagram`, `IPFS`, `Microsoft`, `NASA`, `NBC`, `Netflix`, `Notepad`, `Outdoor Active`, `PayPal`, `Pinterest`, `Pixabay`, `Plex`, `Serenade`, `Slashdot`, `Snap Store`, `Starbucks`, `Tesla`, `TikTok`, `Topo Map`, `Twitter`, `UFA`, `Unsplash`, `Walmart`, `WhatsApp`, `White House`, `Windy`, `Wikipedia`, `Wired`, `Wolfram Alpha`, `World News`, `Yahoo`, or `YouTube`.
* launches the default Web browser with the given website - replace [name] by: `Amazon`, `Apple`, `Baidu`, `BBC`, `Bing`, `BitBucket`, `CDC`, `CIA`, `CNN`, `DistroWatch`, `Dropbox`, `eBay`, `Facebook`, `FBI`, `Flipboard`, `FourSquare`, `FRITZ!Box`, `FRITZ!Repeater`, `GitHub`, `GliderTracker`, `HolidayCheck`, `HRworks`, `Instagram`, `IPFS`, `Microsoft`, `NASA`, `NBC`, `Netflix`, `Notepad`, `Outdoor Active`, `PayPal`, `Pinterest`, `Pixabay`, `Plex`, `Serenade`, `Slashdot`, `Snap Store`, `Starbucks`, `Tesla`, `TikTok`, `Toggl`, `Topo Map`, `Twitter`, `UFA`, `Unsplash`, `Walmart`, `WhatsApp`, `White House`, `Windy`, `Wikipedia`, `Wired`, `Wolfram Alpha`, `World News`, `Yahoo`, or `YouTube`.
* when finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This script queries the current Bitcoin exchange rates and answers by text-to-speech (TTS).
.EXAMPLE
PS> ./check-bitcoin
PS> ./check-bitcoin-rate
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This script queries the current Dogecoin exchange rates and answers by text-to-speech (TTS).
.EXAMPLE
PS> ./check-doge-coin
PS> ./check-doge-coin-rate
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -1,10 +1,10 @@
<#
.SYNOPSIS
Checks the Ethereum rate
Checks the Ether rate
.DESCRIPTION
This script queries the current Ethereum exchange rates and answers by text-to-speech (TTS).
.EXAMPLE
PS> ./check-ethereum
PS> ./check-ether-rate
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This script launches the Web browser with the Toggl Track website.
.EXAMPLE
PS> ./open-toggl-track
PS> ./open-toggl-website
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Shows the Bitcoin rate
.DESCRIPTION
This script launches the Web browser and shows the Bitcoin rate.
.EXAMPLE
PS> ./show-bitcoin-rate
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/btc/usd/"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Shows the Ether rate
.DESCRIPTION
This script launches the Web browser and shows the Ether rate.
.EXAMPLE
PS> ./show-ether-rate
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/eth/usd/"
exit 0 # success