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 details)

Uploaded Source

File details

Details for the file RMControl-1.0.1.tar.gz.

File metadata

  • Download URL: RMControl-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for RMControl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3d21578117915f8ce0f8a5909ea5ba328d99c899e11d47c1a26f8b956438ebf6
MD5 ded45a11fded9ba050c346d4053d8d1c
BLAKE2b-256 091e7e66c9f12a5770efa592c76778daa8b13ffe2739ee597a02fa072d2f5abb

See more details on using hashes here.

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