A PowerShell module designed to remind you via Windows notification to drink some water every so often in order to stay hydrated!
A fairly simple module to remind you (by default every hour) to drink some water in order to stay hydrated. Inspired by a Twitch Hydration bot
- Powershell 5.1 or higher
PS C:\> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.19041.1237
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1237
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
- BurntToast PowerShell module from the PowerShell gallery (must be installed from an elevated prompt)
PS C:\Windows\System32> Install-Module BurntToast
- Windows 10/Windows Server 2019 or higher
- This module can be obtained from the PSGallery. Simply run the following command in an elevated command prompt:
PS C:\Windows\System32> Install-Module HydrationReminder
The commands from this module can be found by running Get-Command -Module HydrationReminder
Running Get-Help
on any of the commands will provide additional examples and details on how to use the command
Parameter list and description for Start-HydrationReminder
:
Parameters | Type | Functionality |
---|---|---|
ReminderInterval | Integer | Interval in minutes at which you will receive a notification to drink. Default is 60 minutes (1 hour) |
DailyWaterInstake | Integer | Amount of daily water intake needed (in mL). Default is 2000mL (2L) |
Duration | Integer | Amount in hours you want to be reminded for. Default is 16 hours (average amount of time a human is awake for before going to sleep) |
Stop-HydrationReminder
can be run if you'd like to stop any active hydration reminder jobs
It is encouraged to create a task with Task Scheduler to run the command Start-HydrationReminder
on logon.
This can be done with the Register-HydrationReminderTask
.
Start-HydrationReminder
can be used to start the script
Stop-HydrationReminder
can be used to stop it
Unregister-HydrationReminderTask
removes the task created by Register-HydrationReminderTask
- @mmcmd - Idea & Initial work
See also the list of contributors who participated in this project.
- BurntToast for simplifying sending Windows notifications
- Inspired by Twitch's Hydration bot