Skip to content
Notifies MQTT when an Amazon Dash button is pressed
Branch: master
Clone or download
superm1 and stjohnjohnson Add a systemd unit (#7)
* Add a systemd unit

* Add the preface for the example topic
Latest commit 411feb2 Dec 28, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Creating an initial first stab at monitoring dash buttons Jul 15, 2016
.gitignore Creating an initial first stab at monitoring dash buttons Jul 15, 2016
README.md
_config.yml
mqtt-dasher.service Add a systemd unit (#7) Dec 28, 2017
package.json Update package.json Jul 15, 2016
server.js Add the option to define a port, username and password in the config.… Sep 15, 2017

README.md

MQTT Dasher

Emits events to MQTT when an Amazon Dash button is pressed.

GitHub tag

Configuration

The dash bridge has one yaml file for configuration:

---
mqtt:
    # Specify your MQTT Broker's hostname or IP address here
    host: mqtt
    # Preface for the topics $PREFACE/$TOPIC
    preface: dash

buttons:
    44:65:0d:dc:51:50: nerf_supplies

Usage

_note: follow this setup first

  1. Install the Node module globally

    $ npm install -g mqtt-dasher
    
  2. Configure your buttons

    $ mkdir -p /opt/mqtt-dasher
    $ cp _config.yml /opt/mqtt-dasher/config.yml
    $ vi /opt/mqtt-dasher/config.yml
    
  3. Add systemd unit for the service

    $ cp mqtt-dasher.service /etc/systemd/system
    
  4. Run the server

    $ systemctl start mqtt-dasher.service
    
  5. Configured dash events now feed into MQTT

You can’t perform that action at this time.