Notes

Mi Light

Mi Light – Commands and Tricks

lights

Finding the protocol to control a Mi Light, and using the information to control remotely a wi-fi lamp.
A quick and easy exercise in reverse engineering, and some Linux shell commands.


Sensors and Raspberry Pi to control a Mi Light Bulb

Pi Light Sensor

Using sensors and a Raspberry to send commands to a wi-fi lamp.
Here are saved some Python scripts used to achieve the desired result.

Coding

Custom widgets for localized text on WordPress

Creating custom text widgets and place them in dedicated areas to add static localized text in a wordpress blog.
The PHP requires very few edits to the code of the theme used on the site.