cmd 596 B

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