campaign_connector/android/start-monitoring.sh
2025-08-25 09:41:16 -06:00

17 lines
625 B
Bash
Executable File

# Monitoring Interface startup script
cd ~/projects/sms-campaign-manager
echo "🚀 Starting Monitoring Interface..."
echo "📱 Device IP: $(ifconfig 2>/dev/null | grep -A1 wlan0 | grep inet | awk '{print $2}' | cut -d: -f2)"
echo "🌐 Monitoring URL: http://$(ifconfig 2>/dev/null | grep -A1 wlan0 | grep inet | awk '{print $2}' | cut -d: -f2):5000"
# Kill any existing monitoring process
pkill -f "python app.py" 2>/dev/null
# Start the monitoring interface in background
nohup python app.py > ~/logs/monitoring.log 2>&1 &
echo "✅ Monitoring interface started (PID: $!)"
echo "📊 Access: http://10.0.0.193:5000"