This project was genearted using serverless framework. Visit https://serverless.com for details about how to install and use serverless framework.
The lambda function is responsible for full filling Lex Bot ( Tintin ) . Watch the demo video below.
Once you have serverless installed and AWS cli is configured on your computure , clone this repo and cd into the folder raspi-dexter-lambda. Then simply execute deploy command.
serverless deploy
Note the lambda function name created by serverless. You need to tell your Lex Bot to use this lambda as done in below screen shot.
Please note that my Lex Bot has 4 intents and all are full filled by same lambda function.
Inside handler.js file, you will find
process.env.URL_CAPTURE
You need to add this as environment varialble in your lambda console and value should be end point of your Image server (https://github.com/just4give/raspi-image-server) running on your pi. For example if your pi's external IP is x.x.x.x and Image server is running on port 80, then URL_CAPTURE should be http://x.x.x.x:80/api/capture as below
Dependent Repos