cmd 469 B

12345678910111213141516
  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>"
  10. echo -e "irled on or off"
  11. echo -e "aplay <file path> <volume 1-100> (t31 only)"
  12. echo -e "mp4write on or off (t31 only)"
  13. else
  14. echo "$*" | /opt/wz_mini/bin/busybox nc localhost 4000
  15. fi