Projects
PingDashboard
Python script that monitors the status of a specific IP address and sends real-time notifications via Telegram.
View on GitHub#python#monitoring#telegram#flask#networking
IP Monitoring Script with Telegram Notifications
This script monitors the status of a specified IP address and sends real-time notifications to a Telegram chat whenever the IP goes online or offline. It also sends periodic hourly updates.
🚀 Features
- Ping Monitoring: Pings the given IP address at regular intervals (default: every 60 seconds)
- Telegram Integration: Sends notifications to a Telegram chat when the IP is online or offline
- Hourly Updates: Provides a status update at the start of each new hour
- Command Handling: Query current status via
/statocommand via Telegram
🛠️ Requirements
bash
pip install flask ping3 requests⚙️ Configuration
Modify the following variables in the code:
IP_ADDRESS: The IP address to monitorCHECK_INTERVAL: Seconds between each ping (default: 60)TELEGRAM_TOKEN: Your Telegram bot tokenCHAT_ID: Telegram chat ID for notificationsBOT_PORT: Port for receiving commands (default: 5000)
🛠️ Running
bash
git clone https://github.com/manuelsaraceni/PingDashboard.git
cd ip-monitor-telegram
python ip_monitor.py