added motion detect threshold get and set commands

This commit is contained in:
Radar231 2023-10-24 10:46:42 -04:00
parent f71f93cfeb
commit e527ad6ba1
2 changed files with 13 additions and 0 deletions

7
get_threshold Executable file
View File

@ -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

6
set_threshold Executable file
View File

@ -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}