platta / baby-connect-alexa-skill

An Alexa skill for putting messages into an SQS queue to log data into Baby Connect.
MIT License
4 stars 1 forks source link

Baby Connect Project

This repository contains one part of a multi-part project to enable the automation of adding data to the Baby Connect service.

The flow is:

Since Baby Connect doesn't expose an API, the (baby-connect) library uses browser automation. This requires launching chromium as a child process which is not supported in Lambda and is the reason we use a message queue with a standalone listener application.

baby-connect-alexa-skill

This repository contains the resources necessary to create an Alexa Skills Kit skill to allow you to use your Echo to log data into Baby Connect.

Setup

You'll need to create an account on Amazon Developer to begin creating your skill.

You can read through the Custom Skill Tutorial to get an understanding of the components involved. Some resources are required besides the code for the Lambda function that will drive the skill. These resources can be found in the speechAssets folder.

To prepare the Lambda function, install the dependencies in the src folder using npm.

cd src
npm install

Create a config.json file in the src folder using config.default.json as a model.

Zip the files in the src folder (not the folder itself) and upload that as the source of your Lambda function.