#!/bin/bash # PATCH server settings (algorithm, thresholds, etc.). # Usage: ./config/settings.sh or BASE_URL=http://host:port ./config/settings.sh SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" . "${SCRIPT_DIR}/../_common.sh" curl -s -X PATCH "${BASE_URL}/reslevis/settings" \ -H "Content-Type: application/json" \ -d '{ "current_algorithm": "filter", "last_seen_threshold": 310, "beacon_metric_size": 100, "HA_send_interval": 60, "HA_send_changes_only": true, "RSSI_enforce_threshold": false, "RSSI_min_threshold": -80 }' echo ""