Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vergissberlin/amazon-dash-mqtt
Send MQTT messages with your Amazon dash button
https://github.com/vergissberlin/amazon-dash-mqtt
amazon-dash-button mqtt raspberry-pi
Last synced: 10 days ago
JSON representation
Send MQTT messages with your Amazon dash button
- Host: GitHub
- URL: https://github.com/vergissberlin/amazon-dash-mqtt
- Owner: vergissberlin
- Created: 2018-08-27T07:52:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T05:55:35.000Z (5 months ago)
- Last Synced: 2024-10-10T19:41:16.376Z (27 days ago)
- Topics: amazon-dash-button, mqtt, raspberry-pi
- Language: JavaScript
- Homepage:
- Size: 82 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Amazon Dash Button MQTT
[![Build Status](https://travis-ci.org/vergissberlin/amazon-dash-mqtt.svg?branch=master)](https://travis-ci.org/vergissberlin/amazon-dash-mqtt)
> Send a MQTT message when someone presses your configured dash buttons.
## Installation
### Dependencies
- libpcap
```bash
sudo apt install libpcap
```
- NodeJS (>= 8.0.0)### 1. Get the code
```bash
git clone https://github.com/vergissberlin/amazon-dash-mqtt.git
cd amazon-dash-mqtt
npm install
```### 2. Configure
- Copy the dist file ```cp config.dist.json config.json```
- Add your MQTT credentials in the *config.json*.
- Add the buttons, the message and the feed where to publish the MQTT message in the *config.json*.
- If you're using a broker without need for a token just leave it empty```json
{
"settings": {
"broker": "mqtt://",
"username": "",
"token": ""
},"devices": [
{
"mac": "",
"feed": "",
"message": ""
}
]
}
```NOTE: If you're using Adafruit IO, then use
"mqtt://io.adafruit.com" as "broker", and in "feed" use "/feeds/".### 3. Start the application
```bash
sudo nano app.js
```