Nabaztag

From VoidWarranties - Hackerspace Antwerp, Belgium
(Difference between revisions)
Jump to: navigation, search
(cleanup, added how to make the nabaztag speak section.)
(updated content to be more usefull...)
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{Project
 
{{Project
 
|Current=Yes
 
|Current=Yes
|Category=Electronics
+
|Category=Infrastructure
 
|Logo=Nabaztag-plus-cretin.png
 
|Logo=Nabaztag-plus-cretin.png
 
|Participants=Kefcom,  
 
|Participants=Kefcom,  
Line 7: Line 7:
 
|Short description=Getting the bunny in the space alive again and make it usefull.
 
|Short description=Getting the bunny in the space alive again and make it usefull.
 
}}
 
}}
 +
== What is (a) Nabaztag? ==
 +
Nabaztag is a plastic bunny that was developed as the ultimate desktop companion.<br>
 +
It is designed to be programmable from a website, so people could create their own applications (to tell the time, weather, stock market info, ...). All this either via the website, or triggered by an RFID reader build in it's tummy (The initial release was build to support certain RFID tags that would start the bunny reading books).
 +
=== What can it do?===
 +
* Speak (text to speech)
 +
* Rotate it's ears
 +
* Blink lights
 +
* Make sounds
 +
* Play music streams
 +
* Read RFID Tags
  
''' General info :'''<br><br>
+
All This by connecting to a WIFI network of your choise (as long as it's unencrypted or WEP encrypted).
 +
== Configuration ==
 
Nabaztag is registered on the official servers at the moment (http://www.nabaztag.com)<br>
 
Nabaztag is registered on the official servers at the moment (http://www.nabaztag.com)<br>
 
<br>
 
<br>
 
Mac adress (for registration on servers): 00:19:db:00:0d:11<br>
 
Mac adress (for registration on servers): 00:19:db:00:0d:11<br>
 
Our bunny's API key on nabaztag.com is: 7debd13e-8c04-4c4c-8c61-1ccf426f6cfc<br>
 
Our bunny's API key on nabaztag.com is: 7debd13e-8c04-4c4c-8c61-1ccf426f6cfc<br>
<br><br><br><br>
+
List of API Commands: http://nabaztag.forumactif.fr/t14297-vlt-wizzcc-api-unifiee-pour-les-nabaztag-karotz<br>
 
+
=== How to: Make it speak ===
''' how to make the nabaztag speak:'''<br><br>
+
The API of whizz.cc offers a variety of TTS engines, you can use them by simply calling the url, and replace the text (more info about the API here:http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz):<br>
The API of whizz.cc offers a variety of TTS engines, you can use them by simply calling the url, and replace the text (more info about the API here:http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz):<br><br>
+
/!\ texts are limited to 1024 characters, and are sometimes interpreted by the TTS engine (e.g: 12:45 becomes in text: twelve hours forty-five minutes) /!\<br><br>
/!\ texts are limited to 1024 characters, and are sometimes interpreted by the TTS engine (e.g: 12:45 becomes in text: twelve hours forty-five minutes) /!\<br>
+
  
 
step 1: choose a voice:<br>
 
step 1: choose a voice:<br>
list of voices can be found here: http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz <- look under ws_acapela<br>
+
list of voices can be found here: http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz <- look under ws_acapela<br><br>
<br>
+
 
 
step 2: call the url using parameters:<br>
 
step 2: call the url using parameters:<br>
 
http://api.wizz.cc/?sn='''<1>'''&token='''<2>'''&server='''<3>'''&tts='''<4>'''&ws_acapela='''<5>'''<br>
 
http://api.wizz.cc/?sn='''<1>'''&token='''<2>'''&server='''<3>'''&tts='''<4>'''&ws_acapela='''<5>'''<br>
*<1>: mac adress of the bunny (see general info)
+
*<1>: mac adress of the bunny (see configuration)
*<2>: API key (see general info)
+
*<2>: API key (see configuration)
 
*<3>: server: this should be 'violet', since the bunny is registered on the original servers again.
 
*<3>: server: this should be 'violet', since the bunny is registered on the original servers again.
 
*<4>: your text, do not forget the '.' at the end.
 
*<4>: your text, do not forget the '.' at the end.
 
*<5>: name of the voice, if you want to pre-listen, go to: http://www.acapela-group.com/text-to-speech-interactive-demo.html
 
*<5>: name of the voice, if you want to pre-listen, go to: http://www.acapela-group.com/text-to-speech-interactive-demo.html
<br>
+
 
 
example url: http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=dit+is+een+test+zin.&ws_acapela=jeroen
 
example url: http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=dit+is+een+test+zin.&ws_acapela=jeroen
<br><br>
 
 
step 3: listen to the nabaztag speak :).
 
step 3: listen to the nabaztag speak :).
<br><br><br><br>
+
==== Bash script ====
 +
<syntaxhighlight lang="bash">
 +
#!/bin/bash
 +
[[ $1 = "" ]] && echo "no argument" && exit 1
 +
text="$(echo $1 | sed 's/ /+/g')"
 +
voice=$2
 +
[[ $voice = '' ]] && voice=jeroen
  
'''troubleshooting the led-codes:'''<br><br>
+
curl "http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=${text}.&ws_acapela=${voice}" &>/dev/null
 +
</syntaxhighlight>
 +
 
 +
 
 +
=== How to: rotate the ears ===
 +
Call the URL:<br>
 +
http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&posleft='''<0-16>''' For left ear<br>
 +
http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&posright='''<0-16>''' For right ear<br>
 +
 
 +
=== How to: make lights blink ===
 +
For this you must send a choreography, for example: http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&chor=10,0,motor,1,20,0,0,0,motor,0,20,0,0,1,led,0,0,238,0
 +
 
 +
==troubleshooting the led-codes:==
 
bottom leds:<br>
 
bottom leds:<br>
 
left: Wifi connection (red/green)<br>
 
left: Wifi connection (red/green)<br>
Line 42: Line 69:
  
 
top led: connection to the nab server.<br>
 
top led: connection to the nab server.<br>
<br><br><br><br>
 
 
  
'''history of the nabaztag:'''<br><br>
+
==history of the nabaztag==
 
- nabaztag company went bankrupt, but has been taken over by ALDEBARAN ROBOTICS and the nabaztag is now known as Karotz (nabaztag generation 3 and up)
 
- nabaztag company went bankrupt, but has been taken over by ALDEBARAN ROBOTICS and the nabaztag is now known as Karotz (nabaztag generation 3 and up)
 
- when violet went bankrupt they took their servers down with them, leaving the nabaztag to malfunction and basicly become useless.
 
- when violet went bankrupt they took their servers down with them, leaving the nabaztag to malfunction and basicly become useless.
 
- ALDEBARAN ROBOTICS revived the karrotz project and sells them, and put an official nabaztag server up again. There are also some sources available for running a server (for example: [http://www.cs.uta.fi/hci/spi/jnabserver/]) or you can use a the original code used on the violet servers: [http://code.google.com/p/nabaztag-source-code/source/browse/#svn%2Ftrunk%2FSources].
 
- ALDEBARAN ROBOTICS revived the karrotz project and sells them, and put an official nabaztag server up again. There are also some sources available for running a server (for example: [http://www.cs.uta.fi/hci/spi/jnabserver/]) or you can use a the original code used on the violet servers: [http://code.google.com/p/nabaztag-source-code/source/browse/#svn%2Ftrunk%2FSources].

Latest revision as of 12:56, 23 August 2013


Nabaztag
What:
Getting the bunny in the space alive again and make it usefull.
Nabaztag-plus-cretin.png
Participants:
Kefcom
Category:
Infrastructure
Locations:
Den Bunker

Contents

What is (a) Nabaztag?

Nabaztag is a plastic bunny that was developed as the ultimate desktop companion.
It is designed to be programmable from a website, so people could create their own applications (to tell the time, weather, stock market info, ...). All this either via the website, or triggered by an RFID reader build in it's tummy (The initial release was build to support certain RFID tags that would start the bunny reading books).

What can it do?

All This by connecting to a WIFI network of your choise (as long as it's unencrypted or WEP encrypted).

Configuration

Nabaztag is registered on the official servers at the moment (http://www.nabaztag.com)

Mac adress (for registration on servers): 00:19:db:00:0d:11
Our bunny's API key on nabaztag.com is: 7debd13e-8c04-4c4c-8c61-1ccf426f6cfc
List of API Commands: http://nabaztag.forumactif.fr/t14297-vlt-wizzcc-api-unifiee-pour-les-nabaztag-karotz

How to: Make it speak

The API of whizz.cc offers a variety of TTS engines, you can use them by simply calling the url, and replace the text (more info about the API here:http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz):
/!\ texts are limited to 1024 characters, and are sometimes interpreted by the TTS engine (e.g: 12:45 becomes in text: twelve hours forty-five minutes) /!\

step 1: choose a voice:
list of voices can be found here: http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz <- look under ws_acapela

step 2: call the url using parameters:
http://api.wizz.cc/?sn=<1>&token=<2>&server=<3>&tts=<4>&ws_acapela=<5>

example url: http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=dit+is+een+test+zin.&ws_acapela=jeroen step 3: listen to the nabaztag speak :).

Bash script

#!/bin/bash
[[ $1 = "" ]] && echo "no argument" && exit 1
text="$(echo $1 | sed 's/ /+/g')"
voice=$2
[[ $voice = '' ]] && voice=jeroen
 
curl "http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=${text}.&ws_acapela=${voice}" &>/dev/null


How to: rotate the ears

Call the URL:
http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&posleft=<0-16> For left ear
http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&posright=<0-16> For right ear

How to: make lights blink

For this you must send a choreography, for example: http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&chor=10,0,motor,1,20,0,0,0,motor,0,20,0,0,1,led,0,0,238,0

troubleshooting the led-codes:

bottom leds:
left: Wifi connection (red/green)
middle: Dhcp
right: dns lookup of the server

top led: connection to the nab server.

history of the nabaztag

- nabaztag company went bankrupt, but has been taken over by ALDEBARAN ROBOTICS and the nabaztag is now known as Karotz (nabaztag generation 3 and up) - when violet went bankrupt they took their servers down with them, leaving the nabaztag to malfunction and basicly become useless. - ALDEBARAN ROBOTICS revived the karrotz project and sells them, and put an official nabaztag server up again. There are also some sources available for running a server (for example: [1]) or you can use a the original code used on the violet servers: [2].

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Content Creation
Belgian Spaces