The AWS IoT button is a few years old now. This is one of many gadgets I bought before knowing its use. Today it's glued to my washer/dryer and notifies me when my laundry has finished. Just tap once for the washer or twice for the dryer.
The code is very simple. A Lambda function is invoked, which starts a StepFunctions workflow execution. The workflow waits a specified duration of time (37 minutes for my washer, 107 minutes for my dryer) before sending an SNS message. My cell phone is subscribed to the SNS topic.
Code is on GitHub here: https://github.com/dylanrush/iot-washer-notification/tree/master
The code is very simple. A Lambda function is invoked, which starts a StepFunctions workflow execution. The workflow waits a specified duration of time (37 minutes for my washer, 107 minutes for my dryer) before sending an SNS message. My cell phone is subscribed to the SNS topic.
Code is on GitHub here: https://github.com/dylanrush/iot-washer-notification/tree/master
No comments:
Post a Comment