Skip to content
AWS Lambda function for Dash button drink dropping
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
drink.py
requirements.txt

README.md

dash-drink

Ever wanted to drop a drink using a Dash IoT button? Now you can!

Requirements

  • Must have DynamoDB tables named DrinkButtons (for button -> user/drink mappings) and DrinkUsers (for user -> Webdrink API key mappings) created.
  • Must have the AWS CLI installed and configured, and a Lambda function called Drink created in order to use the provided Makefile to upload code.

Setup

# Create virtualenv and install dependencies
virtualenv --python=python2 .venv
source .venv/bin/activate
pip install -r requirements.txt

# Build and push code
make

# Or, to just build the code
make zip
You can’t perform that action at this time.