$ npm install
$ npm test
$ npm start
$ git clone https://github.com/odentools/interactive-comm-book.git
$ cd interactive-comm-book
$ npm install
# To start the server as development mode
$ npm start
# To start the daemon for RC Car device as development mode
$ npm start-rccar
under construction...
$ sudo apt-get install -y git g++ build-essentials libssl-dev \
open-jtalk open-jtalk-mecab-naist-jdic htsengine libhtsengine-dev \
hts-voice-nitech-jp-atr503-m001
$ wget http://node-arm.herokuapp.com/node_latest_armhf.deb
$ sudo dpkg -i node_latest_armhf.deb
$ git clone https://github.com/odentools/interactive-comm-book.git
$ cd interactive-comm-book
$ npm install --production
$ sudo vi /etc/rc.local
/etc/rc.local :
...
export CONTROL_SERVER_HOST="wss://foo.herokuapp.com"
export ARDUINO_SERIAL_PORT="/dev/ttyUSB0"
sudo -E -u pi sh -c "cd /home/pi/interactive-comm-book; npm run update-rccar; npm run start-rccar &"
exit 0
NOTE: You need to set the following variables in Environment Variables.
- CONTROL_SERVER_HOST
- ARDUINO_SERIAL_PORT
$ sudo visudo
/etc/sudoers :
pi localhost= NOPASSWD: /usr/bin/halt
The MIT License (MIT).
Copyright (c) 2016 OdenTools Project.