Skip to content

mlihan/akachan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

42 Commits

Repository files navigation

Akachan

Akachan is a LINE BOT API Trial account that is linked to a Raspberry Pi, speaker and USB web camera.

The web server is written in Node JS which handles communication between LINE and audio server. It should ideally run on a public IP, Heroku (https://dashboard.heroku.com/), or other cloud services to communicate with LINE securely. Audio server is running on Raspberry Pi and communicates with the web server through web socket. Sound detector uses Neil Yager application.

Prerequisite

  1. Create the LINE channel on LINE Bussiness Center

Hardware Prerequisite

  1. Raspberry Pi
  2. Edimax WiFi
  3. 8GB or higher SD Card with Raspbian OS
  4. Any supported Web camera
  5. Any supported Audio speaker

Configuration

  • Install nodeJS, npm
  • Install USB webcam
  • Install heroku (optional)
  • Install the media related applications and node modules
 $ sudo apt-get install omxplayer $ sudo apt-get install arecord $ sudo apt-get install aplay $ sudo apt-get install jackd $ npm install 
  • Rename config/config_sample.json as config/config.json, input the web address, mid, channel ID and channel secret.
  • Please note that you would most likely need to configure a lot more than what's written here. Please check Raspberry Pi forums for troubleshooting

Run

Web Server

 $ node server.js 

Audio Server

 $ python audio_server.py 
  • To check web client open http://:

Dependecies

node_modules

Reference

Note

  • This sample is built as a simple testbed. Please take care the settings and security staff if you want to use this sample as production enviroment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages