53 lines
2.0 KiB
TOML
53 lines
2.0 KiB
TOML
# Meteor Edge Client - Unified Configuration File
|
|
# This file contains both device registration and application settings
|
|
|
|
# Device Registration Section
|
|
[device]
|
|
registered = false
|
|
hardware_id = "UNKNOWN"
|
|
device_id = "unknown"
|
|
user_profile_id = ""
|
|
registered_at = ""
|
|
jwt_token = ""
|
|
|
|
# API Configuration
|
|
[api]
|
|
base_url = "http://localhost:3000"
|
|
upload_endpoint = "/api/v1/events"
|
|
timeout_seconds = 30
|
|
|
|
# Camera Configuration
|
|
[camera]
|
|
source = "device" # "device" for camera or file path for video file
|
|
device_index = 0 # Camera device index (0 for default)
|
|
fps = 30.0 # Frames per second
|
|
width = 640 # Frame width in pixels
|
|
height = 480 # Frame height in pixels
|
|
|
|
# Detection Configuration
|
|
[detection]
|
|
algorithm = "brightness_diff" # Detection algorithm: "brightness_diff", etc.
|
|
threshold = 0.3 # Detection sensitivity (0.0-1.0, lower = more sensitive)
|
|
buffer_frames = 150 # Number of frames to buffer (5 seconds at 30fps)
|
|
|
|
# Storage Configuration
|
|
[storage]
|
|
base_path = "/var/meteor/events" # Base directory for event storage
|
|
max_storage_gb = 10.0 # Maximum storage usage in GB
|
|
retention_days = 30 # Days to retain events before cleanup
|
|
pre_event_seconds = 2 # Seconds of video before detection
|
|
post_event_seconds = 3 # Seconds of video after detection
|
|
|
|
# Communication Configuration
|
|
[communication]
|
|
heartbeat_interval_seconds = 60 # Interval for device heartbeat
|
|
upload_batch_size = 5 # Number of events to upload in batch
|
|
retry_attempts = 3 # Number of retry attempts for failed uploads
|
|
|
|
# Logging Configuration
|
|
[logging]
|
|
level = "info" # Log level: "debug", "info", "warn", "error"
|
|
directory = "/var/log/meteor" # Log file directory
|
|
max_file_size_mb = 100 # Maximum log file size in MB
|
|
max_files = 10 # Number of log files to retain
|
|
upload_enabled = true # Enable log upload to backend |