You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by do...@apache.org on 2008/01/15 18:21:17 UTC

svn commit: r612162 - in /felix/sandbox/donsez/bunny: pom.xml src/site/TODOLIST.txt src/site/readme.html src/site/script.txt

Author: donsez
Date: Tue Jan 15 09:21:12 2008
New Revision: 612162

URL: http://svn.apache.org/viewvc?rev=612162&view=rev
Log:
change script.txt to use OBR start command
add export-service element in the pom.xml

Modified:
    felix/sandbox/donsez/bunny/pom.xml
    felix/sandbox/donsez/bunny/src/site/TODOLIST.txt
    felix/sandbox/donsez/bunny/src/site/readme.html
    felix/sandbox/donsez/bunny/src/site/script.txt

Modified: felix/sandbox/donsez/bunny/pom.xml
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/bunny/pom.xml?rev=612162&r1=612161&r2=612162&view=diff
==============================================================================
--- felix/sandbox/donsez/bunny/pom.xml (original)
+++ felix/sandbox/donsez/bunny/pom.xml Tue Jan 15 09:21:12 2008
@@ -71,28 +71,12 @@
 
             <Bundle-Activator>${pom.artifactId}.activator.Activator</Bundle-Activator>
 
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
-            <Bundle-Description>${description}</Bundle-Description>
-
+			<Export-Service>org.osgi.service.event.EventHandler</Export-Service>
+			
           </instructions>
         </configuration>
       </plugin>
     </plugins>
   </build>
-<!--
-  <repositories>
-    <repository>
-      <id>apache.m2.incubator</id>
-      <name>Apache M2 Incubator Repository</name>
-      <url>http://people.apache.org/repo/m2-incubating-repository/</url>
-    </repository>
-  </repositories>
-  <pluginRepositories>
-    <pluginRepository>
-      <id>apache.m2.incubator</id>
-      <name>Apache M2 Incubator Repository</name>
-      <url>http://people.apache.org/repo/m2-incubating-repository/</url>
-    </pluginRepository>
-  </pluginRepositories>
-  -->
+
 </project>

Modified: felix/sandbox/donsez/bunny/src/site/TODOLIST.txt
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/bunny/src/site/TODOLIST.txt?rev=612162&r1=612161&r2=612162&view=diff
==============================================================================
--- felix/sandbox/donsez/bunny/src/site/TODOLIST.txt (original)
+++ felix/sandbox/donsez/bunny/src/site/TODOLIST.txt Tue Jan 15 09:21:12 2008
@@ -2,4 +2,4 @@
 2) save and load the configuration (sn,token,voice,baseUrl,eventTopic ...)
 3) add choregraphy classes utilities
 4) test it with a opennab proxy
-5) send  event when ears positions is changed ! (pool the server with ears=ok)
+5) send EA event when ears positions is changed ! (pool the server with ears=ok)

Modified: felix/sandbox/donsez/bunny/src/site/readme.html
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/bunny/src/site/readme.html?rev=612162&r1=612161&r2=612162&view=diff
==============================================================================
--- felix/sandbox/donsez/bunny/src/site/readme.html (original)
+++ felix/sandbox/donsez/bunny/src/site/readme.html Tue Jan 15 09:21:12 2008
@@ -4,7 +4,9 @@
 </head>
 <body>
 <h1>org.apache.felix.sandbox.bunny</h1>
-This bundle wraps the API to manage Nabaztag bunny (http://www.nabaztag.com/).
+This bundle wraps the API to drive a Nabaztag bunny (http://www.nabaztag.com/).
+<br>This bundle is tested with Nabaztag (V1) and Nabaztag/tag (V2).
+
 
 <h2>License</h2>
 License is ASL2 (<a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>).
@@ -20,15 +22,15 @@
 <li>posleft (java.lang.Long): to set the new position of the left ear (0 to 15)
 <li>posright (java.lang.Long):  to set the new position of the left ear  (0 to 15) 
 <li>tts (java.lang.String): to tell the text
-<li>voice (java.lang.String): to set the voice used to tell the text (eg julie22k,claire22s,caroline22k,bruno22k,graham22s,lucy22s,heather22k,ryan22k,aaron22s,laura22s)
-<li>chor (java.lang.String): to play the choregraphy
+<li>voice (java.lang.String): to set the voice used to tell the text (the available voices are given by the command <code>bunny voices</code>)
+<li>chor (java.lang.String): to play the choregraphy (the syntax of choregraphy string is given on the API site)  
 </ul>
 
 <h2>Configuration Admin section</h2>
 Configuration properties are all independant
 <ul>
 <li>serialNumber (java.lang.String):  the serial number of the managed bunny
-<li>token (java.lang.String): the token of the managed bunny
+<sli>token (java.lang.String): the token of the managed bunny
 <li>baseUrl (java.lang.String): the base url (of the server or of a proxy) to send requests 
 <li>voice (java.lang.String): the default voice used to tell texts
 <li>eventTopic (java.lang.String): the event topic listen by the bundle 
@@ -39,7 +41,9 @@
 bunny help
 bunny config &lt;serial number&gt; &lt;token&gt; : configure the bunny' identifiers
 bunny play &lt;left ear pos&gt; &lt;right ear pos&gt; &lt;text to speech&gt; [&lt;choregraphy&gt;]: speech a text and play a chroregraphy
-bunny voice &lt;voice&gt;: set the default voice (eg julie22k,claire22s,caroline22k,bruno22k,graham22s,lucy22s,heather22k,ryan22k,aaron22s,laura22s)
+bunny voices : list the available voices
+bunny voice : get the default voice
+bunny voice &lt;voice&gt;: set the default voice
 bunny baseurl &lt;baseurl&gt;: set the default base url of the Nabaztag server or proxy
 bunny ears : get ears positions
 bunny raw &lt;url encoded params&gt;: send the URL with raw encoded parameters
@@ -51,13 +55,16 @@
 </pre>
 
 
+
+
 <h2>Read more about Nabaztag API</h2>
 <ul>
-<li> http://api.nabaztag.com/docs/home.html
-<li> http://nabaztag.forumactif.fr/ for French speaking community.
-<li> http://www.nabaztalk.com/forum/ for English speaking community.
-<li> Pieces of documentation in French are also available at http://wikinab.org/
-<li> OpenNab (http://sourceforge.net/projects/opennab/) An open PHP-based proxy framework for the NabaztagĀ™ (http://www.nabaztag.com/) electronic pet. 
+<li> <a href="http://api.nabaztag.com/docs/home.html">Official API</a>
+<li> <a href="http://en.wikipedia.org/wiki/Nabaztag">Wikipedia entry</a>
+<li> <a href="http://nabaztag.forumactif.fr/">Forum for French speaking community.</a>
+<li> <a href="http://www.nabaztalk.com/forum/">Forum for English speaking community.</a>
+<li> <a href="http://wikinab.org/">Pieces of documentation in French are also available here</a> 
+<li> <a href="http://sourceforge.net/projects/opennab/">OpenNab</a>, an open PHP-based proxy framework for the NabaztagĀ™ (http://www.nabaztag.com/) electronic pet. 
 </ul>
 
 </body>

Modified: felix/sandbox/donsez/bunny/src/site/script.txt
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/bunny/src/site/script.txt?rev=612162&r1=612161&r2=612162&view=diff
==============================================================================
--- felix/sandbox/donsez/bunny/src/site/script.txt (original)
+++ felix/sandbox/donsez/bunny/src/site/script.txt Tue Jan 15 09:21:12 2008
@@ -1,5 +1,5 @@
 
-start mvn:org.apache.felix.sandbox/org.apache.felix.sandbox.bunny
+obr start "Bunny Service"
 
 bunny
 
@@ -10,7 +10,9 @@
 
 bunny issleeping
 bunny wakeup 
-bunny issleeping 
+bunny issleeping
+
+bunny voices
 
 bunny voice bruno22k
 bunny play 1 16 salut+didier
@@ -34,7 +36,9 @@
 
 # with EventAdmin (event.topics is org/apache/felix/sandbox/bunny)
 obr start "Apache Felix Event Admin"
-start eventadmincmd/eventadmincmd.jar
+obr start "Apache Felix Event Admin Command"
+
+
 eventadmin subscribe org/apache/felix/sandbox/bunny
 eventadmin send org/apache/felix/sandbox/bunny voice=aaron22s&tts=hello+world+the+sun+shines+today+but+the+weather+may+be+cloudy+this+afternoon