Posted By


2mf on 11/07/12

Tagged


Statistics


Viewed 139 times
Favorited by 0 user(s)

Nabaztag go to sleep


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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

URL: http://nabaztag.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.