Advertisement
DeaD_EyE

Alexa_Debug_PI

Jun 11th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. # don't use this code :-D
  2. # https://tutorials-raspberrypi.de/raspberry-pi-amazon-alexa-deutsch-installieren/
  3.  
  4.  
  5. BASE="/home/pi/alexa-avs-sample-app/samples"
  6. COMPANION="$BASE/companionService"
  7. JAVACLIENT="$BASE/javaclient"
  8. WAKEWORDAGENT="$BASE/wakeWordAgent/src"
  9.  
  10. # tmux is not the best solution
  11. # I prefer supervisord, which can start services like the init system
  12. # and is much declarative in configuration.
  13. # But not tested yet
  14.  
  15. tmux kill-session -t wakeWord
  16. tmux kill-session -t javaClient
  17. tmux new -d -s companionService "cd $COMPANION && npm start 2> /home/pi/companionService.log"
  18. tmux new -d -s javaClient "cd $JAVACLIENT && mvn exec:exec 2> /home/pi/javaclient.log"
  19. tmux new -d -s wakeWord "cd $WAKEWORDAGENT  && ./wakeWordAgent -e kitt_ai 2> /home/pi/wakeWordAgent.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement