added motion detect threshold get and set commands
This commit is contained in:
parent
f71f93cfeb
commit
e527ad6ba1
|
@ -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
|
||||
|
||||
|
|
@ -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}
|
||||
|
Loading…
Reference in New Issue