A script that makes a notification in a Telegram "Home" group to say that is meal time using an Amazon dash button.
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
- email: [email protected]
- twitter: @jcarolinares
- 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
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.
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.
-
Go to IFTTT and create a new Applet
-
Select the Maker channel and the option Receive a web request.
-
In Event name put the name dash_meal_time
-
Now you can choose the service that you want, in my case I choosed the Telegram Channel
-
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.
-
Now that you have your group, select in IFTTT the action Send message
-
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.
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.
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!
=============
AMAZON DASH BUTTON TIME TO MEAL IFTTT HACK por Julián Caro Linares licensed by Creative Commons Attribution-ShareAlike 4.0 International License.