PiHeadquarters or How to Take Control of your House with Raspberry Pi and Docker
Seminar for the students of the 5th Year of the Integrated Master Degree on Informatics and Computing Engineering
@ Faculty of Engineering, University of Porto.
How to Kill Your Privacy and IoT your home along the way
We're living on the verge of ubiquitous computing, where computing is made to appear everywhere and anywhere. As such, we're dealing with this now, by the means of the Internet of Things. Empowered by the ever-cheaper devices with internet connectivity such as the ESP8266 (that costs under 4$) we're able to build our very own smart homes. However, some questions arise on how to deal with all the sensing and actuating capabilities of such devices as well as all the privacy and security issues that are on the table.
A very common approach that has been applied is the use of gateways for control the data flow between things and the Internet as is. As worth mentioning and novel example of such is the Things Gateway by Mozilla. In this talk, I will share how I build my smart home headquarters (gateway and server) on top of a Raspberry Pi 2, using Docker and all the buzzwords such as MQTT, Mosquitto, InfluxDB, Grafana and Node-RED. With this approach anyone is capable of continuosly monitor the current state of the home by its metrics, configure alarms (such as a moving sensor for intruder alert), turn on the AC system before leaving work or even make dinner by turning on the microwave, all empowered by easily-configured flow-control diagrams.
Required/Advised Tools & Hardware
- ESP8266/32 based dev board (Node-MCU ESP-12E is used in this WS)
- 1x LED
- 1x DHT11 or DHT22 (temp/humidity sensor)
- Jump Cables
- 1x Breadboard
- 330 Ω resistor
- 4700 Ω resistor
- Raspberry Pi (any version, v3 is used in this WS)
- Router with Internet connectivity required for setup (in this talk a modified ZSUN with OpenWRT is used)