Add 'api/' from commit '14ac229098e65aa643f84e8e17e0c5f1aaf8d639'
git-subtree-dir: api git-subtree-mainline:4743f19aefgit-subtree-split:14ac229098
This commit is contained in:
36
api/run_auto_recorder.py
Normal file
36
api/run_auto_recorder.py
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Service script to run the standalone auto-recorder
|
||||
|
||||
Usage:
|
||||
sudo python run_auto_recorder.py
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Add the project root to the path
|
||||
project_root = Path(__file__).parent
|
||||
sys.path.insert(0, str(project_root))
|
||||
|
||||
from usda_vision_system.recording.standalone_auto_recorder import StandaloneAutoRecorder
|
||||
|
||||
|
||||
def main():
|
||||
"""Main entry point"""
|
||||
print("🚀 Starting USDA Vision Auto-Recorder Service")
|
||||
|
||||
# Check if running as root
|
||||
if os.geteuid() != 0:
|
||||
print("❌ This script must be run as root (use sudo)")
|
||||
print(" sudo python run_auto_recorder.py")
|
||||
sys.exit(1)
|
||||
|
||||
# Create and run auto-recorder
|
||||
recorder = StandaloneAutoRecorder()
|
||||
recorder.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user