ERROR ) # suppress IPV6 warning on startup from scapy. You’re more than welcome to strip either of those bits of code from the example if you aren’t going to be using those features.įrom phue import Bridge # for hue import logging # for the following line logging. It also turns all ten of my Hue bulbs off. This example triggers the “dashButton1” event on my IFTTT Maker Channel. We’ll also need to get and install the winpcap installer from:.phue (if we want to use the button to control Philips Hue lights.).requests (if we want to use the Maker Channel on IFTTT, which is an easy way to get things acting on the button presses.).scapy-python3 (allows us to sniff for the ARP packets the buttons send.).Make sure when you type “python” at a command prompt, it shows 3.5.1. We’re going to need to install a few libraries, all with “pip install ” You will probably also want to disable notifications in the Amazon Shopping app settings, as it will prompt you on your phone to finish button setup every time you click it if you don’t.ĭetecting Button Presses and Acting on Them:įor this tutorial, I used Python 3.5.1. After that, just close out of the Amazon app before you select anything for the button to purchase, and you’re ready to go. From there, your phone can find it, and you can input your network credentials on your phone which will be sent to the button. You download the Amazon Shopping app on iOS or Android, go to Menu > Your Account and hold the button down on the Dash Button for 6 seconds to put it into a blue blinking “pairing” mode. An ADMP441 microphone is connected to the CPU and used by the Dash iOS application to configure the device using the speaker on a phone/tablet.There’s a 16 megabit SPI flash ROM which is typically used in conjunction with the WICED SDK for storing application data.The WiFi module is a BCM943362 module which in combination with the CPU make it a platform for Broadcom’s WICED SDK.The CPU is a STM32F205RG6 processor which is an ARM Cortex-M3 that can run up to 120mhz and has 128 kilobytes of RAM and 1 megabyte of flash memory for program storage.Amazon seems to only let you buy two buttons per brand right now, so if you want more black buttons, try Gatorade or look through the selection. I got the Olay buttons since it’s easy to Sharpie out the logo. They’re a $5 button that when pressed, wakes up, connects to your Wi-Fi, and then turns off. I got two of Amazon’s newly-available dash buttons with the intention of playing with them to see what they were capable of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |