Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxjoehnk/dashdown
A small tool to shutdown multiple things on the press of an amazon-dash-button
https://github.com/maxjoehnk/dashdown
amazon-dash-button cec nodejs philips-hue yamaha-avr
Last synced: 21 days ago
JSON representation
A small tool to shutdown multiple things on the press of an amazon-dash-button
- Host: GitHub
- URL: https://github.com/maxjoehnk/dashdown
- Owner: maxjoehnk
- Created: 2017-05-05T19:40:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T18:04:57.000Z (10 months ago)
- Last Synced: 2024-10-27T16:30:39.090Z (2 months ago)
- Topics: amazon-dash-button, cec, nodejs, philips-hue, yamaha-avr
- Language: JavaScript
- Homepage:
- Size: 433 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dashdown
[![Greenkeeper badge](https://badges.greenkeeper.io/maxjoehnk/dashdown.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/maxjoehnk/dashdown.svg?branch=master)](https://travis-ci.org/maxjoehnk/dashdown)```dashdown``` is a small tool to shutdown multiple things on the press of an amazon-dash-button.
Right now it supports:
- yamaha-avr's
- philips-hue
- HDMI CEC over libcec## Usage
__1. Clone the Repo__```bash
git clone https://github.com/maxjoehnk/dashdown.git
```__2. Install dependencies__
```bash
npm i
```__3. Search for your Dash Button__
To do this you can use the ```findbutton``` script provided by ```node-dash-button```:
```bash
sudo npx findbutton
```
Now press your dash-button and add the listed address to your config file.__4. Configure targets__
Add the addresses of the targets you wanna shutdown to the config file.
You don't need to add the username field for the philips-hue, this will be auto populated when you first start ```dashdown```__5. Connect Hue Bridge (optional)__
When you wanna connect to a hue bridge press the connect button on your bridge before starting ```dashdown```. When the message ```Setup Complete``` appears the hue.username field of your config should be populated.
__6. Start ```dashdown```__
```bash
npm start
```
This may fail with a message like ```Error: (cannot open BPF device) /dev/bpf0: Permission denied```.
To solve this run dashdown as an administrator
```bash
sudo npm start
```## Configuration
```json
{
"avr": "",
"dash": "",
"hue": {
"ip": "",
"username": ""
},
"cec": ""
}
```