Git Product home page Git Product logo

amazon_dash_button_time_to_meal_ifttt_hack's Introduction

AMAZON DASH BUTTON TIME TO MEAL IFTTT HACK

A script that makes a notification in a Telegram "Home" group to say that is meal time using an Amazon dash button.

Time to meal video

Code based on the great work of Aaron bell

More info and setup at:

http://www.aaronbell.com/how-to-hack-amazons-wifi-button/

Made by Julián Caro Linares

Materials

  • Amazon dash button (It doesn't matter the product brand)
  • A computer with Python (better a Raspberry Pi connected to your Wifi network)
  • Telegram account
  • IFTTT account

SETUP

Amazon Dash button setup

I followed the steps that Ted Benson says in his hack:

"The first thing you need to do is configure your buttons to send messages when you push them but not actually order anything. When you get a Dash button, Amazon gives you a list of setup instructions to get going. Just follow this list of instructions, but don’t complete the final step — don’t select the particular product you want ordered.

The last step for the Huggies button, for example, is to select which of several Huggies products you want. Just don’t answer this question and you won’t have to worry about actually buying anything."

In the last step, when you have to choose your product, just close the app.

Knowing your dash button MAC adress

You can use the Python scripts that Ted Benson uses in his hack.

If these programs doesn't work for you, install in your smartphone an App like Fing.

IFTTT Recipe Setup

  1. Go to IFTTT and create a new Applet

  2. Select the Maker channel and the option Receive a web request.

  3. In Event name put the name dash_meal_time

  4. Now you can choose the service that you want, in my case I choosed the Telegram Channel

  5. Before you go fordward, you need to create a group in telegram with the people that you want to share the notifications. Remember to also invite the @IFTTT bot and use the /connect_group option.

  6. Now that you have your group, select in IFTTT the action Send message

  7. Select your group in the Target chat option, in the message text, put a message like:

"Time: {{OccurredAt}}

¡¡¡MEAL TIME!!!"

The web page preview it's not important.

To finish remember to save your recipe.

Python script setup

Now that you know your dash button MAC adress and your IFTT recipe done. It's time to setup your Python script.

Open meal_time_ifft_script.py and change:

  • ifttt_key = '9cn3847ntc8394tn8-ab' You'll find your IFTT key in your Maker channel Setup

  • '74234223434a' : 'dash_glad' Put your amazon dash button MAC at the left, be careful with uppercases and lowercases.

Use it

Now execute your python script using

sudo python meal_time_ifft_script.py

Now put your button near your kitchen and push it. Everything should work. Enjoy it!

=============

Licencia Creative Commons
AMAZON DASH BUTTON TIME TO MEAL IFTTT HACK por Julián Caro Linares licensed by Creative Commons Attribution-ShareAlike 4.0 International License.

amazon_dash_button_time_to_meal_ifttt_hack's People

Contributors

jcarolinares avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

amazon_dash_button_time_to_meal_ifttt_hack's Issues

new to python error on line 50

Traceback (most recent call last):
File "dashbutton.py", line 33, in
rawSocket = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0x0003))
File "/usr/lib/python2.7/socket.py", line 191, in init
_sock = _realsocket(family, type, proto)
socket.error: [Errno 1] Operation not permitted

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.