Sign inSign up

nolte/mqtt-dasher

By nolte

•Updated almost 9 years ago

MQTT Dasher

Image
0

1.1K

nolte/mqtt-dasher repository overview

⁠MQTT Dasher

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

GitHub tag Build Status

⁠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:
        name: nerf_supplies
        interface: eth0     # optional
        timeout: 5000   # optional (time in ms)
        protocol: arp   # optional (one of {udp, arp, all})

⁠Usage

_note: follow this setup⁠ first

  1. Install the Node module globally

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

    $ vi /opt/mqtt-dasher/config.yml
    
  3. Run the server

    $ CONFIG_DIR=/opt/mqtt-dasher mqtt-dasher
    
  4. Configured dash events now feed into MQTT

⁠use as Docker

build amd64
Docker Pulls Docker Build Statu

docker-compose -f docker-compose.yml up

build armhf

Docker Pulls

docker-compose -f docker-compose-rpi.yml up

Tag summary

Content type

Image

Digest

Size

198 MB

Last updated

almost 9 years ago

docker pull nolte/mqtt-dasher