Skip to content

Examples to spark creativity for new ntfy.sh users! 💡

Notifications You must be signed in to change notification settings

mavproductions/ntfy-scripts

Repository files navigation

ntfy-templates

✔Requirements✔

💡Use-cases💡

  • Notifications to your Phone, Watch, Home Hub Tablet, Web-browser, PC/laptop, etc.
  • Change detection of websites, logs/files, processes/services and other important infrastructure.
  • and many more!

❗Important❗

If you don't self-host, you must pay a premium for reserved topic names and access-protection. If you do not pay for ntfy.sh topic hosting, your notifications are public-doman. Be careful what you share as this data can be easily mined.

📝Notes📝

Scripts like the RDP Connection Detected can be used for many use-cases. I personally use this style of script for the following:

  • Server startups/shut-downs
  • MySQL database backup Success/Failed report scripts
  • Video/Map(Level) editing post-render alerts

Official Ntfy Docs Examples.

🧾Scripts List🧾

Script Description
Nvidia Update Checker (Concept not finished yet!) Daily notifications for recent Nvidia GPU Drivers
RDP Connection Detected If an RDP connection is made, receieve a notification. (Using Event Viewer IDs)
User Logged On (Tested with Windows 10) If a Local user has signed on, receieve a notification. (Using Event Viewer IDs)
Windows Update Checker Daily notifications for available windows updates. (Downloads or Install)

nvidiaupdatechecker.ps1 - Task Scheduler ---> https://github.com/lord-carlos/nvidia-update

### General
Run whether user is logged on or not [Enabled] (Hides the PS window)
Run with highest privileges [Enabled]
Configure for: Windows 10

### Triggers
Whatever you like!

### Actions
Action: Start a program
Settings:
Program/Script: "C:\Program Files\PowerShell\7\pwsh.exe"
Add arguments(optional): -File "C:\path\to\nvidiaupdatechecker.ps1"

### Conditions
(All disabled)

### Settings
Allow task to be run on demand [Enabled]
Stop the task if it runs longer than: [1hr]

rdpconnectiondetected.bat - Task Scheduler

### General
Run only when user is logged on [Enabled]
Configure for: Windows Server 2022

### Triggers
#Found in EventViewer#
Log: Microsoft-Windows-TerminalServices-LocalSessionManager/Operation
Source: TerminalServices-LocalSessionManager
Event ID: 25

### Actions
Action: Start a program
Settings:
Program/Script: C:\Windows\System32\cmd.exe
Add arguments(optional): /C "C:\path\to\rdpconnectiondetected.bat"

### Conditions
(All disabled)

### Settings
Allow task to be run on demand [Enabled]

userLoggedOn.ps1 - Task Scheduler

### General
Run only when user is logged on [Enabled]
Configure for: Windows 10

### Triggers
## Trigger 1
(On Event)
Log: Security
Source: Microsoft-Windows-Security-Auditing
Event ID: 4801
*Click the Custom Radio button* DO I NEED TO DO ABOVE(?)

## Trigger 2
(On Event)
Log: Security
Source: Microsoft-Windows-Security-Auditing
Event ID: 4801

### Actions
Action: Start a Program
Settings:
Program/script: "C:\path\to\PowerShell\7\pwsh.exe"
Add arguments: -File "C:\path\to\winclient-login.ps1"

### Conditions
(All disabled)

windowsupdatechecker.ps1 - Task Scheduler

### General
Run whether user is logged on or not [Enabled] (Hides the PS window)
Run with highest privileges [Enabled]
Configure for: Windows 10

### Triggers
Whatever you like!

### Actions
Action: Start a program
Settings:
Program/Script: "C:\Program Files\PowerShell\7\pwsh.exe"
Add arguments(optional): -File "C:\path\to\windowsupdatechecker.ps1"

### Conditions
(All disabled)

### Settings
Allow task to be run on demand [Enabled]
Stop the task if it runs longer than: [1hr]

About

Examples to spark creativity for new ntfy.sh users! 💡

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published