강의장 PC에서 녹화된 파일을 서버로 자동 업로드하고 LMS에 등록하는 클라이언트입니다.
- 녹화 파일 업로드: rclone으로 SFTP 서버에 자동 업로드
- LMS 연동: 업로드 완료 시 서버 API 호출하여 DB 등록
- 진행률 표시: 업로드 중 실시간 진행률 표시
git clone https://github.com/icom009/client_lms.git
cd client_lms
install.bat- Download ZIP 클릭
- 압축 해제
install.bat실행 (관리자 권한)
자세한 설치 과정은 설치가이드.txt 참고
cd client_lms
git pull또는 update.bat 실행
register_task.bat실행하여 작업 스케줄러에 등록- 10분마다 + 로그온 시 자동 실행
run_upload.bat실행
run_init.bat실행
client_lms/
├── install.bat # 전체 설치 마법사
├── setup.bat # 환경 설치 (Miniconda, rclone)
├── setup_rclone.bat # rclone SFTP 설정
├── register_task.bat # 작업 스케줄러 등록
├── run_upload.bat # 수동 업로드
├── run_upload_auto.bat # 자동 업로드 (스케줄러용)
├── run_init.bat # 설정 변경
├── update.bat # 업데이트 (git pull)
├── config.yaml # 설정 파일 (설치 후 생성)
├── logs/ # 로그 폴더
│
├── 설치가이드.txt # Windows 설치 안내
├── OBS_설정가이드.txt # OBS 상세 설정 안내
│
└── task_scheduler/ # 작업 스케줄러 XML
└── 녹화파일_자동업로드.xml
api_key: "sk_xxx..." # 서버에서 자동 발급
classroom_name: "멀티미디어실" # 강의장 이름
config_id: 3 # 과정 ID
course_name: "KDT 언어지능 7기"
recording_folder: "C:\\record"
uploaded_folder: "C:\\record_save"
server_url: "https://mp.smhrd.or.kr"
rclone:
remote_name: "lms-sftp"
remote_path: "/mnt/data/KDT/녹화영상"
bandwidth_limit: "0"rclone\rclone.exe config또는 setup_rclone.bat 실행
logs/upload_YYYYMMDD.log 파일 확인
taskschd.msc"LMS_녹화파일_자동업로드" 작업 상태 확인