How to Control iBroadlink RM Mini 3 from RASPBERRY PI or Ubuntu 16.04 LTS

A few days ago I bought an iBroadlink RM mini 3, it is a cheap IR Control that you can use to send IR Signal from a WIFI network. You can control a lot of IR equipment as TVs, STBs, ar-conditioning, heaters and others.


This product has software for iOS and Android, it is amazing for dummy users. But it enables a connection from your local network to a chinese site. I don’t like this kind of solution that is invasive, but is easy for the customers.

I’ve an old RPI mobel B+, 512mb RAM working with Raspbian Jessy and I started learning how to control my RM mini 3 by a command line. I found some good projects in Github which I’ve used as base for my project.

I took the project Python Broadlink as base and as the result I wrote the following script named If you prefer you can execute line by line, the results are the same.

sudo su
cd /home/pi
mkdir rm3
cd rm3
apt-get update
apt-get -y install python-dev
apt -y install python-pip
apt-get -y install git
git clone
cd python-broadlink/
python -m pip install pycrypto
python -m pip install netaddr
python install

After a successful installation I got my RM mini 3 working, just using the command in the rm3/python-broadlink/cli folder :


This command returned the following information:


The following command line was used to send commands to the RM mini 3:

./broadlink_cli --type 0x2712 --host --mac aabbccddeeff

First test, get response from RM mini 3, in this case get the temperature:

broadlink_cli --type 0x2712 --host --mac aabbccddeeff --temp

And the result was:


It is working! Let’s go to the next step:  Create a file with codes from a TV remote control. Let’s use the RM mini 3 to get the codes and save it in a file.

a) Execute the following command:

./broadlink_cli --type 0x2712 --host --mac aabbccddeeff --learnfile OFFICE-TV.power

At this moment the led is in white color.

b) Point you TV Remote Control to RM mini 3 anc press power.


Led is off now and file created. Success!

Now I can use it to turn on and turn off my TV, see the command below:

./broadlink_cli --type 0x2712 --host --mac aabbccddeeff --send @OFFICE-TV.power

I did the same procedure for other TV Remote Control buttons as volume up, volume down, source and others. Everything works.

Enjoy it.




How to install SAP OpenUI5 on RASPBERRY PI

A few days ago I was checking my old hardware and I found a RASPBERRY PI (RPI) version 1 model B. It’s a very small computer module and this amazing hardware has two USB ports, 512MB of SDRAM, one Fast Ethernet (100 mpb/s), one HDMI, one RCA and a audio jack. In addition RPI requires an SD card to work as hard disk. It also has a small form factor measuring 65mm in length, it’s small as credit card and it works with a 5V/1.5A power supply. The processor is an ARM1176JZF-S with 700 MHz clock.


There are some operational systems available for this version of RPI, but I choose a version based in Debian called Raspbian, it is optimized for the Raspberry Pi hardware and  it is supported by Raspberry PI Foundation.

I was learning about SAP Fiori frontend, as well as, I was developing an internal site at home in order to support some activities that I judge important for me. For example, sometimes I need to wake up some machine, monitor the surveillance cams and get alerts from nobreaks. Therefore I chose SAPUI5, because I could learn and enjoy my RPI at same time.

Recently I’ve started thinking about Internet of Things (IoT) and how to implement it at home. I’ve realized that Raspberry is a good choice for that kind of development, especially after the last announced version of RPI, the RASPBERRY PI ZERO, it’s smallest than RASPBERRY PI versions 1 and 2, and it’s cheapest than both.

Raspberry PI ZERO made in Wales and priced at just $5

Raspberry PI ZERO Feautures:

  • 1Ghz, Single-core CPU
  • 512MB RAM
  • Mini HDMI and USB On-The-Go ports
  • Micro USB power
  • HAT-compatible 40-pin header
  • Composite video and reset headers

    RPI Zero size

Lets take a look how to configure RPI to run OpenUI5 with Debian Jessie. If you are planning to use the Debian Wheezy keep in your mind that the configuration is a little bit different and probably you’ll experience some troubles.

  1. Preparation
    Take a look here in order to install the RPI with Raspbian, it’s very simple and you can do it on Windows, Mac or Linux. Of course you need a SD Card.
    The steps for configuration described below are for Debian Jessie and you can experience some troubles if you are trying to configure with Debian Wheezy installed on RPI.
  2. Install and Apache Web Server
    After you have installed your RPI, install the Apache Web Server. Do not forget, your RPI must be connect to the Internet by Cable or WI-FI.On the terminal type the following command:

    sudo apt-get install apache2 -y
    service apache2 restart

    Test your apache typing the url on the browser http://<RPI IP>. Example, if the RPI is running on IP, type

    You should see something like this:


  3. Deploy OpenUI5 on RPI
    The root document configured for APACHE 2.4 is /var/www/html/Go to the web root and create the folder /ui5.Terminal commands:

    cd /var/www/html
    mkdir /var/www/html/ui5
    cd ui5

    Download the OpenUI5 sdk package

    sudo wget

    Unzip the package:

     sudo unzip
  4. Teste you environment

Go to browser and type the following URL http://<RPI IP>/ui5 in order to test your Openui5 SDK. Do not forget to REPLACE the <RPI IP>.


You must see a screen like this:



It is simple, isn’t it?

If you don’t have a RPI yet, you can test my configuration at

The same configuration can be applied for Ubuntu 14.04 with Apache 2.4.