Change video storage directory from /storage to /mnt/nfs_share

- Update StorageConfig default base_path in core/config.py
- Update base_path and camera storage_paths in config.json and config.compose.json
- Update Docker Compose volume mounts to use /mnt/nfs_share
- Update start_system.sh to create /mnt/nfs_share directory
- Update convert_avi_to_mp4.sh to use new NFS path
- Update all documentation files to reflect new storage paths
- Videos now stored on NFS server at 192.168.1.249:/mnt/nfs_share/
This commit is contained in:
salirezav
2025-10-14 16:28:00 -04:00
parent e675423258
commit 98c93f9e0e
17 changed files with 48 additions and 50 deletions

View File

@@ -57,8 +57,8 @@ This system integrates MQTT machine monitoring with automated video recording fr
3. **Setup Storage Directory**:
```bash
sudo mkdir -p /storage
sudo chown $USER:$USER /storage
sudo mkdir -p /mnt/nfs_share
sudo chown $USER:$USER /mnt/nfs_share
```
## Configuration
@@ -79,7 +79,7 @@ Edit `config.json` to configure your system:
{
"name": "camera1",
"machine_topic": "vibratory_conveyor",
"storage_path": "/storage/camera1",
"storage_path": "/mnt/nfs_share/camera1",
"exposure_ms": 1.0,
"gain": 3.5,
"target_fps": 3.0,
@@ -117,7 +117,7 @@ The system provides a REST API on port 8000:
- `GET /machines` - All machine states
- `POST /cameras/{name}/start-recording` - Manual recording start
- `POST /cameras/{name}/stop-recording` - Manual recording stop
- `GET /storage/stats` - Storage statistics
- `GET /mnt/nfs_share/stats` - Storage statistics
- `WebSocket /ws` - Real-time updates
### Dashboard Integration
@@ -131,7 +131,7 @@ The system is designed to integrate with your existing React + Vite + Tailwind +
## File Organization
```
/storage/
/mnt/nfs_share/
├── camera1/
│ ├── camera1_recording_20250726_143022.avi
│ └── camera1_recording_20250726_143155.avi