Skip to main content

A python app to control an RM2 from BroadLink.

Project description

## RM Control RM Control is an app to control an RM2 by BroadLink. It allows users to learn IR and RF codes, store them, and fire them.

### Installation 1. python setup.py install 2. export FLASK_APP=rmcontrol; python -m flask initdb 3. python run.py

### Components 1. vue.js front-end 2. python back-end 3. process watcher by supervisord

### Requirements 1. build-essential 2. libavahi-compat-libdnssd-dev 3. nodejs v6+ 4. node-gyp

### VM Initialization 1. curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh 2. sudo bash nodesource_setup.sh 3. sudo apt-get update 4. sudo apt-get install build-essential git libavahi-compat-libdnssd-dev nodejs node-gyp 5. sudo reboot now 6. sudo npm install -g –unsafe-perm request homebridge homebridge-httpmulti

### Supervisor Setup Coming soon.

### API Documentation GET / Shows all commands.

POST / {name: <name>} Listens for a command from the RM2, and if a command is received, it will be saved with the given name.

POST /<name> Fire the given command.

PATCH /<name> {name: <name?>, code: <code?>} Edit the requested command by passing in a new name and/or code.

DELETE /<name> Delete the given command.

### To Do - Gracefully handle errors if RM2 cannot be found.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RMControl-1.0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page