Files
wyze-firmware/SD_ROOT/wz_mini/bin/cmd
T
2022-05-08 00:56:55 -07:00

16 rindas
377 B
Bash
Izpildāmais fails

#!/bin/sh
if [ "$1" == "" ]; then
echo -e "welcome to: cmd <arg>\n"
echo -e "arg can be:"
echo -e "jpeg (will dump raw jpeg to stdout)"
echo -e "video on or off"
echo -e "audio on or off"
echo -e "move"
echo -e "waitMotion <timeout>"
echo -e "irled on or off"
echo -e "aplay <file path> <volume 1-100>"
else
echo "$*" | /opt/wz_mini/bin/busybox nc localhost 4000
fi