Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 install 2. export FLASK_APP=rmcontrol; python -m flask initdb 3. python

### 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 -o 2. sudo bash 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.

Files for RMControl, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size RMControl-1.0.1.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page