updated some config names for clarity

pull/2/head
riley 1 year ago
parent c0c81ad1cd
commit 7c6bbd34a3

@ -46,7 +46,7 @@ o = s:option(Value, "host", "MQTT Host")
o.default = "mqtt.server.com"
-- Detectors Configuration
s = m:section(NamedSection, "detectors", "frigate_config", "TPU Configuration")
s = m:section(NamedSection, "tpu", "frigate_config", "TPU Configuration")
s.addremove = false
s.anonymous = true

@ -42,15 +42,15 @@ do_install_detail() {
[ -z "$host" ] && { echo "Error: MQTT host not found in configuration."; exit 1; }
echo "Fetching Coral status from configuration..."
coral=$(uci get frigate.detectors.coral 2>/dev/null)
coral=$(uci get frigate.tpu.enabled 2>/dev/null)
[ -z "$coral" ] && { echo "Error: Coral status not found in configuration."; exit 1; }
echo "Fetching Coral type from configuration..."
type=$(uci get frigate.detectors.type 2>/dev/null)
type=$(uci get frigate.tpu.type 2>/dev/null)
[ -z "$type" ] && { echo "Error: Coral type not found in configuration."; exit 1; }
echo "Fetching Coral device from configuration..."
device=$(uci get frigate.detectors.device 2>/dev/null)
device=$(uci get frigate.tpu.device 2>/dev/null)
[ -z "$device" ] && { echo "Error: Coral device not found in configuration."; exit 1; }
LAN_IP=$(uci get network.lan.ipaddr)

Loading…
Cancel
Save