The bundle registers a org.osgi.service.event.EventHandler service to subscribe to events
The default topic listen by the bundle is org/apache/felix/sandbox/bunny
The event properties are all optional
- posleft (java.lang.Long): to set the new position of the left ear (0 to 15)
- posright (java.lang.Long): to set the new position of the left ear (0 to 15)
- tts (java.lang.String): to tell the text
- voice (java.lang.String): to set the voice used to tell the text (the available voices are given by the command
bunny voices
)
- chor (java.lang.String): to play the choregraphy (the syntax of choregraphy string is given on the API site)
Configuration Admin section
Configuration properties are all independant
- serialNumber (java.lang.String): the serial number of the managed bunny
token (java.lang.String): the token of the managed bunny
- baseUrl (java.lang.String): the base url (of the server or of a proxy) to send requests
- voice (java.lang.String): the default voice used to tell texts
- eventTopic (java.lang.String): the event topic listen by the bundle
Felix Shell Command section
bunny help
bunny config <serial number> <token> : configure the bunny' identifiers
bunny play <left ear pos> <right ear pos> <text to speech> [<choregraphy>]: speech a text and play a chroregraphy
bunny voices : list the available voices
bunny voice : get the default voice
bunny voice <voice>: set the default voice
bunny baseurl <baseurl>: set the default base url of the Nabaztag server or proxy
bunny ears : get ears positions
bunny raw <url encoded params>: send the URL with raw encoded parameters
bunny sleep : sleep the bunny
bunny wakeup : wakeup the bunny
bunny issleeping : get the status of the bunny
bunny whoiam : get the name of the bunny
bunny trace <on|off> : set on|off the trace
Read more about Nabaztag API