k8s_motioneye/set_threshold

7 lines
218 B
Plaintext
Raw Normal View History

#!/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}