cmd 594 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 (will dump raw jpeg to stdout)"
  6. echo -e "video on on1 or off off1"
  7. echo -e "audio on on1 or off off1"
  8. echo -e "move (movable camera only)"
  9. echo -e "waitMotion <timeout> (you must enable motion tagging in the app first)"
  10. echo -e "irled on or off"
  11. echo -e "aplay <file path> <volume 1-100>"
  12. echo -e "curlDebug on or off"
  13. echo -e "mp4write on or off (t31 only)"
  14. echo -e "imp_control <variable> <value> (see readme)"
  15. else
  16. echo "$*" | /opt/wz_mini/bin/busybox nc localhost 4000
  17. fi