Skip to content

Instantly share code, notes, and snippets.

@laborspy
laborspy / arp_to_ifttt.py
Last active September 22, 2017 14:16 — forked from air/arp_to_ifttt.py
Python script that will monitor ARP commands from Amazon Dash buttons and send them to IFTTT. This was a fork from the coding from aaronbell.com. This fork will monitor for duplicate ARP commands within 15seconds and ignore them as the dash seems to randomly send 1-4 ARP commands.
import socket
import struct
import binascii
import time
import json
import urllib2
import time
oldtime = time.time()
print oldtime