News for hackers. Stuff that matters.
Re:Ask HN: What non-work task have you automated? by vollmond on Friday October 13, 2017 @08:45AM (#15465087)
I got an email about how to do the dash button thing, so I figured I'd post my response here as well. I use this project: https://github.com/hortinstein/node-dash-button

Here's how it works:

1. Figure out the dash button's mac address by network sniffing

2. Set up the dash partially, so it tries to make an order (but don't specify in your account exactly what to order, so it never completes)

3. Sniff the network for that mac address, and run an arbitrary script when you see it (this is the actual action, like my data logging)

4. For good measure, block outgoing requests from that address in your firewall

It's not 100% reliable, but it's still pretty useful.

There are no comments on this comment yet.