magic_lightning_remote

Web controller for the magic lightning irda lamplight (acheap rgb irda controlled lightbulb)


Keywords
magic_lightning_remote
License
BSD-3-Clause
Install
pip install magic_lightning_remote==0.1.0

Documentation

Multi-remote web interface

This is MRemote, an almost-zero-configuration multiple-purpose web interface for domestic control.

/docs/remote.png?raw=true

Current features:
  • Nice web interface
  • Responsive
  • Controlling multiple remotes and lircd servers
  • Almost zero configuration.

Mremote is able to parse lircd config files nicely and automatically create the web interface / rest API to control your things.

Simple Mremote setup

First of all, you need to have lirc configured properly, have a look at any lirc tutorials out there.

If you want to use only ONE emitter, with a couple of remotes... You're set! That it! You don't need to do anything else, just run mremote, and access:

<ip>:5000

Multiple lircd remotes

Make sure that you setup lirc to listen in tcp on your home network interface if you're going to use it as a remote lircd. This is usually done editing /etc/lircd/hardware.conf and adding listen to LIRCD_ARGS

LIRCD_ARGS="--listen"

I'm currently using this for my home, I've got three raspberry pi, each one with a lircd, and one of them acts as the "master", with mremote. To add a remote device, simply execute a curl with the /etc/lirc/lircd.conf file that you've had to configure previously:

curl -X PUT -d@config=/etc/lirc/lircd.conf http://<mremote_host>:5000/foo

Being "foo" the name you want to give to the remote in the web interface