Posted By

2mf on 11/07/12


Tagged

nabaztag


Versions (?)

Nabaztag go to sleep


 / Published in: Bash
 

URL: http://nabaztag.com

Super-simple script (button) to send Nabaztag (rabbit) to sleep (or wake up)

  1. #!/bin/sh
  2. # XXXXX - serial number (mac)
  3. # YYYYY - token
  4.  
  5. if [ -e "sleeping" ]; then
  6. wget -q -O /dev/null "http://api.nabaztag.com/vl/FR/api.jsp?sn=XXXXX&token=YYYYY&action=14"
  7. rm -f sleeping
  8. else
  9. wget -q -O /dev/null "http://api.nabaztag.com/vl/FR/api.jsp?sn=XXXXX&token=YYYYY&action=13"
  10. touch sleeping
  11. fi

Report this snippet  

You need to login to post a comment.