A light controlled by Slack to communicate your availability. Powered by AWS IoT
More details available here: Blog
- aws-lambda - AWS Lambda functions powered by Chalice
- firmware - Source code our ESP8266 Firmware powered by Mongoose OS
- A AWS account
- A NodeMCU ESP8266 Microcontroller Amazon*
- A BlinkM LED Amazon*
- Prototyping Breadboard Amazon*
- Jumper Wires Amazon*
- Mason Jar Amazon*
*Affiliate Links
- Follow the Firmware setup in firmware/README.md
- Navigate to AWS IoT dashboard and head over to settings
- Write down the Custom Endpoint
- Modify aws-lambda/.chalice/config.json and change "CUSTOM_AWS_IOT_ENDPOINT" to the url you wrote down on the step before
- Follow the Lambda setup in aws-lambda/README.md
- Execute
$ chalice url
and write down the URL displayed - Follow Slack setup instructions below
- Navigate to Slack API Apps
- Click on "Create New App"
- Select your App Name & Workspace
- Navigate to Features > Slash Commands
- Create New Command
- Set command to "/set_status"
- Update request URL to CHALICE_URL.amazonaws.com/api/slack_command where CHALICE_URL is the URL you stored on step 6 above
- Set Usage hint to: "available | away | busy"
- Save and test!
topic: "/commands/write/blinker" Sample request:
{"time": "2020-05-24T06:59:02+00:00", "red": 255, "green": 0, "blue": 0}
Parameters:
- time: Timestamp of the request in ISO8601 format with timezones.
- red: 0-255 value
- green: 0-255 value
- blue: 0-255 value