k8s_motioneye/get_threshold

8 lines
222 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/list | grep threshold