Hemera:UserGuide:Hemera

From HemeraBook
Revision as of 22:10, 14 December 2011 by Projettwk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Hemera comes with a main script allowing to start/stop/status any internal component automagically.
It MUST be started before use of core modules like speech synthesis and speech recognition.

Start

To start Hemera:

hemera.sh -S

Output sample:

14/05/11 16:51.26  [hemera]  new LogFile: /home/projettwk/hemera/log/runningHemera.log
14/05/11 16:51.26  [inputMonitor]  Launched input monitor.
14/05/11 16:51.26  [IOProcessor]  Launched input/output processor.
14/05/11 16:51.26  [soundRecorder]  Launched sound recorder.
14/05/11 16:51.26  [hemera]  Found: Apache Tomcat Version 7.0.12
14/05/11 16:51.26  [hemera]  Apache Tomcat start ... ok

Status

At any time, you can get Hemera status.
It will give general information like version, uptime, some modes; and status of any component.

hemera.sh -T

Output sample:

14/05/11 16:55.48  [hemera]  continue LogFile: /home/projettwk/hemera/log/runningHemera.log
14/05/11 16:55.48  [hemera]  Hemera version: 0.1.1
14/05/11 16:55.48  [hemera]  Hemera uptime: 00d 00h:04m.22s
14/05/11 16:55.48  [hemera]  Hemera mode: local
14/05/11 16:55.48  [hemera]  Recognized commands mode: normal
14/05/11 16:55.48  [inputMonitor]  input monitor is running.
14/05/11 16:55.48  [IOProcessor]  input/output processor is running.
14/05/11 16:55.48  [soundRecorder]  sound recorder is running.

Hemera status can be requested even if it is not started, output sample:

14/05/11 16:57.05  [hemera]  continue LogFile: /home/projettwk/hemera/log/runningHemera.log
14/05/11 16:57.05  [hemera]  Hemera version: 0.1.1
14/05/11 16:57.05  [hemera]  Hemera uptime: not started
14/05/11 16:57.05  [hemera]  Hemera mode: local
14/05/11 16:57.05  [inputMonitor]  input monitor is stopped.
14/05/11 16:57.05  [IOProcessor]  input/output processor is stopped.
14/05/11 16:57.06  [soundRecorder]  sound recorder is stopped.

Stop

At any time, you can stop all Hemera activities:

hemera.sh -K

Output sample:

14/05/11 16:56.56  [hemera]  continue LogFile: /home/projettwk/hemera/log/runningHemera.log
14/05/11 16:56.56  [inputMonitor]  Stopped input monitor.
14/05/11 16:56.57  [IOProcessor]  Stopped input/output processor.
14/05/11 16:56.58  [soundRecorder]  Stopped sound recorder.
14/05/11 16:56.58  [hemera]  Found: Apache Tomcat Version 7.0.12
14/05/11 16:56.58  [hemera]  Apache Tomcat stop ... ok


Back to User Guide