This commit adds comprehensive enhancements to the Moltbot distributed cluster system, completing high and medium priority features. Features Added: - Web Management Panel (admin-panel.html) - Real-time database integration - Device management from database - Monitoring integration links (Grafana/Prometheus) - System health status indicator - Database Persistence System - PostgreSQL database with 4 tables (conversations, devices, system_logs, statistics) - HTTP API at port 18800 for database operations - systemd service for auto-start - Monitoring Stack (Grafana + Prometheus) - Docker Compose setup - Grafana: http://38.14.254.51:3000 (admin/moltbot2024) - Prometheus: http://38.14.254.51:9090 - Node Exporter for system metrics - Automation Scripts - notebook-auto-deploy.bat: Automated notebook deployment - register-device.bat: Device registration with database - setup-ssh-keys.bat: SSH key configuration for passwordless sync - sync-daemon.bat: Auto-sync every 10 minutes - sync-sessions.bat: Manual session sync - Email/Webhook Alert System - Alert configuration at /opt/moltbot-monitoring/alert-config.json - Support for email, DingTalk, Slack, WeChat - Session Synchronization - Server-side: /opt/moltbot-sync/sync-sessions.sh - Client-side: sync-sessions.bat - Cron job: */10 * * * * (every 10 minutes) - Backup rotation (keeps last 10) Updated: - ROADMAP.md: Marked completed features, updated progress 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
220 B
Batchfile
16 lines
220 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
title Moltbot Auto Sync
|
|
|
|
echo Starting Moltbot Auto Sync...
|
|
echo Sync interval: 10 minutes
|
|
echo.
|
|
|
|
:loop
|
|
call "%~dp0sync-sessions.bat"
|
|
|
|
rem 等待10分钟
|
|
timeout /t 600 /nobreak >nul
|
|
|
|
goto loop
|