Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
phatcatmatt authored Sep 1, 2017
1 parent b4b58df commit 5164213
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
A python3 script to detect an amazon dash button press and send a text message containing an arrival time. Uses google maps distance matrix to calculate travel time between two locations and twilio to send the text. Works with the newer Dash Button model JK29LP.
A python 3 script to detect an Amazon Dash Button press and send a text message containing an arrival time. Uses Google Maps distance matrix to calculate travel time between two locations and Twilio to send the text. Works with the newer Dash Button model JK29LP.

1. `pip3 install scapy-python3 googlemaps twilio`
2. might need to `apt-get install tcpdump`
3. `touch keys.py`
4. Add your API keys to keys.py like so:
2. `touch keys.py`
3. Add your API keys to keys.py like so:
```python
maps_key = 'XXXXX'
twilio_keys = {
Expand All @@ -15,3 +14,6 @@ twilio_keys = {
```
4. `python3 detect-button.py` (You'll likely need to run this as root)
5. Press the button!

##### Notes
You'll likely need to run the script as root. You also might need to `apt-get install tcpdump`. On a Raspberry Pi I had to update some existing packages to fix some conflicts.

0 comments on commit 5164213

Please sign in to comment.