diff --git a/get_threshold b/get_threshold new file mode 100755 index 0000000..60745b4 --- /dev/null +++ b/get_threshold @@ -0,0 +1,7 @@ +#!/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 + + diff --git a/set_threshold b/set_threshold new file mode 100755 index 0000000..3c63d5f --- /dev/null +++ b/set_threshold @@ -0,0 +1,6 @@ +#!/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} +