These settings dictate where server notifications are routed. Changes saved here are immediately synchronized with connected desktop clients (Windows & Linux) and mobile apps.
Send notifications directly from cron jobs, shell scripts, standalone forms, or monitoring daemons.
Hosted Public Message Form (Web Page)
Disabled
Allow external users or visitors to submit notifications (default level: INFO) directly to your account via an obfuscated URL without logging in.
Standalone Notification Script (`/bin/sh`)
Standalone POSIX /bin/sh notification script for FreeBSD and Linux servers. Accepts positional parameters <title> and <message> (default level: INFO). Server, recipient username, and API token are preconfigured automatically. Shows helpful instructions if run without parameters.
Standalone Guest Notification Web Form (`.html`)
Single-file HTML notification form (imsg-notification-form.html) ready to host on any remote webserver. Select the fixed severity level to embed as a hidden field (e.g. choose INFO for website inquiries or ALERT for home & family alerts).
Standalone Windows PowerShell Script (`.ps1`)
Standalone Windows PowerShell script (imsg-notify.ps1) compatible with Windows PowerShell 5.1+ and PowerShell 7+. Accepts positional parameters "<title>" "<message>" (default level: INFO) or flags. Server, recipient username, and API token are preconfigured automatically.
1. Shell Script Helper (`scripts/imsg-send.sh` or `imsg-notify.sh`)
# Standalone quick dispatch (default level: INFO):
./imsg-notify.sh "System Notice" "All daily services running smoothly"
# Full script with options:
./scripts/imsg-send.sh \
--to admin \
--token imsg_tok_demo_admin_secret_token_2026 \
--level INFO \
--title "System Notification" \
--body "Daily maintenance task completed successfully" \
--url "https://monitor.internal/status"
2. Windows PowerShell Helper (`imsg-notify.ps1` or `scripts\imsg-send.ps1`)
# Standalone quick dispatch (default level: INFO):
.\imsg-notify.ps1 "Backup Complete" "Daily SQL backup succeeded at $(Get-Date)"
# Full script with options:
.\scripts\imsg-send.ps1 -To admin -Token "imsg_tok_demo_admin_secret_token_2026" -Level INFO -Title "Daily Report" -Body "Backup completed successfully"
3. Standard `curl` HTTP POST
curl -X POST https://arch.ece.uowm.gr/iMsg/api/send.php \
-H "Authorization: Bearer imsg_tok_demo_admin_secret_token_2026" \
-H "Content-Type: application/json" \
-d '{
"recipient": "admin",
"level": "INFO",
"title": "System Status",
"message": "All background processes running normally",
"sound": "default"
}'
4. Token Management CLI (`scripts/imsg_change_password_for_user.sh`)
# Change password & set/clear API token locally:
./scripts/imsg_change_password_for_user.sh admin newPassword123 "custom_api_token"
# Set empty token (make notifications token-free):
./scripts/imsg_change_password_for_user.sh john password123 ""