k8s_motioneye/set_threshold

7 lines
218 B
Bash
Executable File

#!/bin/bash
mepod=$(/snap/bin/kubectl get pod -n home-automation | grep "^motioneye" | cut -d' ' -f1)
/snap/bin/kubectl exec -t $mepod -n home-automation -- curl -s http://localhost:7999/1/config/set?threshold=${1}