Files
rf-mapper/config.yaml
User fa5178a5be feat: add peer sync for multi-scanner deployments
Enable scanner instances to discover each other and synchronize
device metadata (floors, positions, labels, favorites) automatically.

New features:
- Peer registration API with mutual auto-registration
- Background sync thread with configurable interval
- Timestamp-based conflict resolution (newest wins)
- Config options: peers, sync_interval_seconds, accept_registrations

API endpoints:
- GET/POST /api/peers - list peers, register new peer
- DELETE /api/peers/<id> - remove peer
- GET/POST /api/sync/devices - device sync for peers
- POST /api/sync/trigger - manual sync trigger

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 03:19:04 +01:00

56 lines
1.2 KiB
YAML

gps:
latitude: 50.85852913116932
longitude: 4.3976058563598315
web:
host: 0.0.0.0
port: 5000
debug: false
scanner:
id: ''
name: ''
latitude: null
longitude: null
floor: null
wifi_interface: wlan0
bt_scan_timeout: 10
path_loss_exponent: 2.5
wifi_tx_power: -59
bt_tx_power: -72
# Peer sync settings
peers: [] # List of peer scanner URLs (auto-populated via registration)
sync_interval_seconds: 30 # How often to sync with peers (0 = disabled)
accept_registrations: true # Allow other scanners to register with this one
data:
directory: data
max_scans: 100
database:
enabled: true
filename: devices.db
retention_days: 30
auto_cleanup: true
home_assistant:
enabled: true
url: http://192.168.129.10:8123
token: ''
webhook_scan: rf_mapper_scan
webhook_new_device: rf_mapper_new_device
webhook_device_gone: rf_mapper_device_gone
device_timeout_minutes: 5
profiling:
enabled: false
cpu: true
memory: false
output_dir: data/profiles
sort_by: cumtime
auto_scan:
enabled: false
interval_minutes: 5
location_label: auto_scan
building:
enabled: true
name: Home
floors: 12
floor_height_m: 3.0
ground_floor_number: 0
current_floor: 11