Topic: Sample Code to set LED Colors

Greetings-
     I have been the owner of an original Nabaztag for about 24 hours now, and I am looking for some help with sending events to my rabbit via the API. I am having a hard time figuring out how to set the LEDs to one color and then leave them as such until they are changed by a subsequent message. Could someone please help me out with some sample code for the URL that begins with "http://api.nabaztag.com/vl/FR/api.jsp?" Many thanks!
-F59PHI450

Re: Sample Code to set LED Colors

With todays patch the "chor" command is active again and we can use it to control the leds.

this command will send a message to the bunny's nose  led making it glow white for about 10 seconds
(well it would if the token and serial number where correct anyway smile

"http://api.nabaztag.com/vl/FR/api.jsp?s … ed,4,0,0,0"

change the serial number and token number to yours to send the message to your rabbit.
It can take a few minutes before your bunny gets the message so be patient and not repeat the command to fast.
I dont think there is a way to keep the leds burning till a next message is recieved

Last edited by bk227865 (2007-07-17 21:34:30)

Re: Sample Code to set LED Colors

Ok, that's awesome. It worked. Rather than have them burn continuously maybe I can have them blink the pattern I want after the message. I guess that will have to do.
-F59PHI450