meteor_detect/config-file-input.toml

111 lines
3.4 KiB
TOML

# Meteor Detection System Configuration with File Input Mode
# Unique identifier for this detector
device_id = "meteor-detector-01"
# Logging level (trace, debug, info, warn, error)
log_level = "info"
# Camera settings
[camera]
# Enable file input mode instead of using a camera
file_input_mode = true
# Path to video file
input_file_path = "/Users/grabbit/Downloads/20250103 象限儀座流星雨直播 [oELPd-LpAMw].webm"
# Loop the video when it reaches the end
loop_video = true
# Camera device (not used in file input mode, but kept for compatibility)
device = "/dev/video0"
# Resolution (options: HD1080p, HD720p, VGA)
resolution = "HD720p"
# Target frames per second (may be limited by the file's actual fps)
fps = 30
# Exposure mode (Auto or Manual exposure time in microseconds)
exposure = "Auto"
# Gain/ISO setting (0-255)
gain = 128
# Whether to lock focus at infinity
focus_locked = true
# GPS and time synchronization
[gps]
# Whether to enable GPS functionality
enable_gps = true
# Serial port for GPS module
port = "/dev/ttyAMA0"
# Baud rate
baud_rate = 9600
# Whether to use PPS signal for precise timing
use_pps = true
# GPIO pin for PPS signal (BCM numbering)
pps_pin = 18
# Allow system to run without GPS (using fallback position)
allow_degraded_mode = true
# Camera orientation
[gps.camera_orientation]
# Azimuth/heading in degrees (0 = North, 90 = East)
azimuth = 0
# Elevation/pitch in degrees (0 = horizontal, 90 = straight up)
elevation = 90
# Fallback GPS position (used when GPS is not available)
[gps.fallback_position]
# Latitude in degrees (positive is North, negative is South)
latitude = 34.2
# Longitude in degrees (positive is East, negative is West)
longitude = -118.2
# Altitude in meters above sea level
altitude = 85.0
# Star chart overlay settings
[star_chart]
# Whether the star chart overlay is enabled
enabled = true
# Path to the astrometry.net solve-field binary
solve_field_path = "/usr/local/bin/solve-field"
# Path to the astrometry.net index files
index_path = "/Users/grabbit/Project/astrometry/index-4100"
# Update frequency in seconds
update_frequency = 30
# Star marker color (B, G, R, A)
star_color = [0, 255, 0, 255] # Green
# Constellation line color (B, G, R, A)
constellation_color = [0, 180, 0, 180] # Semi-transparent green
# Star marker size
star_size = 3
# Constellation line thickness
line_thickness = 1
# Working directory for temporary files
working_dir = "/tmp/astrometry"
# Whether to show star names
show_star_names = true
# Size of index files to use (in arcminutes)
index_scale_range = [10, 60]
# Maximum time to wait for solve-field (seconds)
max_solve_time = 60
# Camera calibration for distortion correction (optional)
# If not provided, no distortion correction will be applied
# [star_chart.camera_calibration]
# # Camera intrinsic matrix (3x3) [fx, 0, cx; 0, fy, cy; 0, 0, 1]
# camera_matrix = [1000.0, 0.0, 640.0, 0.0, 1000.0, 360.0, 0.0, 0.0, 1.0]
# # Distortion coefficients [k1, k2, p1, p2, k3]
# distortion_coeffs = [-0.2, 0.1, 0.0, 0.0, 0.0]
# # Image dimensions for calibration
# image_width = 1280
# image_height = 720
# Storage settings
[storage]
# Directory for storing raw video data
raw_video_dir = "data/raw"
# Directory for storing event video clips
event_video_dir = "data/events"
# Maximum disk space to use for storage (in MB)
max_disk_usage_mb = 10000
# Number of days to keep event data
event_retention_days = 30
# Whether to compress video files
compress_video = true