https://github.com/stjohnjohnson/mqtt-dasher
Notifies MQTT when an Amazon Dash button is pressed
https://github.com/stjohnjohnson/mqtt-dasher
Last synced: about 1 year ago
JSON representation
Notifies MQTT when an Amazon Dash button is pressed
- Host: GitHub
- URL: https://github.com/stjohnjohnson/mqtt-dasher
- Owner: stjohnjohnson
- Created: 2016-07-15T04:25:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-28T07:06:26.000Z (over 8 years ago)
- Last Synced: 2025-05-03T14:05:59.212Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/mqtt-dasher
- Size: 4.88 KB
- Stars: 40
- Watchers: 4
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTT Dasher
***Emits events to MQTT when an Amazon Dash button is pressed.***
[](https://github.com/stjohnjohnson/mqtt-dasher/releases)
# 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](https://github.com/hortinstein/node-dash-button#installation-instructions) 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