Files
wyze-firmware/SD_ROOT/wz_mini/bin/cmd
T
2022-07-13 02:49:26 -07:00

19 lines
596 B
Bash
Executable File

#!/bin/sh
if [ "$1" == "" ]; then
echo -e "welcome to: cmd <arg>\n"
echo -e "arg can be:"
echo -e "jpeg <channel> <-n>\n Note: -n denotes no header"
echo -e "video <channel> <on/off>"
echo -e "audio <channel> <on/off>"
echo -e "move <x> <y>"
echo -e "waitMotion <timeout> (you must enable motion tagging in the app first)"
echo -e "irled <on/off>"
echo -e "aplay <file path> <volume 1-100>"
echo -e "curlDebug on, off, disable_video"
echo -e "mp4write <on/off> (t31 only)"
echo -e "timelapse <file> <interval> <count>"
else
echo "$*" | /opt/wz_mini/bin/busybox nc localhost 4000
fi