Send a request on Slack to the Temi robot to naviagate to a whiteboard location, click a picture, and send it back to Slack. This repository has an Android app which runs on the robot, and an AWS Lambda Function which receives the Slack request and forwards it to the robot.
-
Uses slash commands provided by Slack to send the request:

-
Android app on Temi sends back the captured image on a pre-defined slack channel:

-
Uses the temi sdk to perform actions on the robot like navigation etc.
-
Uses the Camera2 API of Android to capture images.
- Create a Slack App.
- Add permissions for Incoming Webhooks and Slash Commands.
- Generate a Bot token. This will be used to use the files.upload HTTP API.
- Setup Temi robot and add locations of the whiteboards.
- Setup a public MQTT broker on HiveMQ.
- Keep note of the username and password which will be used in the Android app for subscription and in the Lambda function for publishing.
- Add apikey.json for the AWS Lambda in
aws-lambda/mqtt-publisher/. Here's a sample:
{
"hivemq_user": "...",
"hivemq_password": "..."
}- Add apikey.properties for Android in
android/WhiteboardSnap. Here's a sample:
HIVEMQ_BROKER="xxx.hivemq.cloud"
HIVEMQ_USER="..."
HIVEMQ_PASSWORD="..."
SLACK_USER_TOKEN="..."
