Skip to content

Notifies MQTT when an Amazon Dash button is pressed

Notifications You must be signed in to change notification settings

m3ki/mqtt-dasher

 
 

Repository files navigation

MQTT Dasher

This project was forked from: https://github.com/stjohnjohnson/mqtt-dasher

I am adapting it for my own user with docker and ansible.

Description

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

GitHub tag Build Status

#Docker Configuration TODO

#Ansible

- name: Install Mqtt Dasher
  docker_container:
    name: mqttd
    image: m3ki/mqtt-dasher:latest
    state: started
    restart_policy: always
    recreate: yes
    network_mode: host
    privileged: yes
    volumes:
      - "{{data_directory}}/mqttd/config/config.yml:/config/config.yml:rw"

Configuration

The dash bridge has one yaml file for configuration:


---
mqtt:
    # Specify your MQTT Broker's hostname or IP address here
    host: mqtt
    port: 1883
    #leave empty if none
    username:
    password:
    # 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})


The underlying code makes use of this this library.

About

Notifies MQTT when an Amazon Dash button is pressed

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.8%
  • Dockerfile 12.6%
  • Shell 4.6%