mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 21:38:37 +08:00
Push Examples (#3735)
This commit is contained in:
8
extra/push-examples/powershell/index.ps1
Normal file
8
extra/push-examples/powershell/index.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
$pushURL = "https://example.com/api/push/key?status=up&msg=OK&ping="
|
||||
$interval = 60
|
||||
|
||||
while ($true) {
|
||||
$res = Invoke-WebRequest -Uri $pushURL
|
||||
Write-Host "Pushed!"
|
||||
Start-Sleep -Seconds $interval
|
||||
}
|
Reference in New Issue
Block a user