chore: Update MikroTik login IP in documentation and disable Telegram notifications in the script.
This commit is contained in:
@@ -60,7 +60,7 @@ Agar OpenWrt bisa kirim perintah ke MikroTik tanpa password, Anda harus membuat
|
||||
*(Copy tulisan yang muncul, biasanya diawali `ssh-rsa ...`)*
|
||||
|
||||
3. **Import ke MikroTik**:
|
||||
- Login ke Winbox MikroTik (192.168.7.25 & 192.168.7.30).
|
||||
- Login ke Winbox MikroTik (192.168.7.1 & 192.168.7.30).
|
||||
- Masuk ke menu **System -> Users -> SSH Keys**.
|
||||
- Import key tersebut untuk user `upsuser`.
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ DATE=$(date "+%Y-%m-%d %H:%M:%S")
|
||||
MESSAGE="UPS Notification: $1 at $DATE"
|
||||
|
||||
# 1. Send to Telegram using CURL (Secure)
|
||||
curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" -d chat_id="$TELEGRAM_CHAT_ID" -d text="$MESSAGE" > /dev/null 2>&1 &
|
||||
# # curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" -d chat_id="$TELEGRAM_CHAT_ID" -d text="$MESSAGE" > /dev/null 2>&1 &
|
||||
|
||||
# 2. Send to MikroTik Routers
|
||||
for IP in $MIKROTIK_TARGETS; do
|
||||
|
||||
Reference in New Issue
Block a user