GitXplorerGitXplorer
j

sorrybutton

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
610d5befc40325dd8b0e202c929ac50e8a63150e

Clarification

jjohanoskarsson committed 8 years ago
Unverified
07967430b079e1aad77056ba56b442fd61607f24

Hook up the flower ordering to AWS Lambda code

jjohanoskarsson committed 8 years ago
Unverified
ccd75cfbd61392583ff58441cbae1eeb80f80ee6

Initial commit

jjohanoskarsson committed 8 years ago

README

The README file for this repository.

AWS IoT Button for when you fuck up

When you inevitably fuck up at work this little hack will be handy.

It hooks up an AWS IoT Button to check who is currently on call and sends a postmate to fetch them flowers (or anything else you specify).

Setup

Generate a PagerDuty API key https://support.pagerduty.com/hc/en-us/articles/202829310-Generating-an-API-Key

Pick an escalation policy that the button will pick the on call user from. Click on it, save the id from the url.

https://sorrybutton.pagerduty.com/escalation_policies

Generate a Postmates API key https://postmates.com/developer

Buy and set up a button https://aws.amazon.com/iot/button/

Copy the config template

cp src/config/sorrybutton.yaml.template src/config/sorrybutton.yaml

Fill it out with the keys from above, the address of the pickup location and dropoff location.

Build the package

mvn package

Upload the result to Amazon Lambda https://aws.amazon.com/lambda/ Set up the button to execute the Lambda as per the Amazon instructions. The handler is nu.oskarsson.sorrybutton.ButtonRequestHandler