We now have the base ready and can continue with implementing the project-specific parts. The Raspberry Pi that is connected with the circuit and the lamp will act as a server. It will run a tiny web server that can be reached through a client of your choice using a web browser.
For the server side, we will adapt and evolve the server example used in Chapter 9, Making a Media Hub on the Raspberry Pi, and combine it with an updated version of the
gpio-packt recipe from Chapter 5, Creating, Developing, and Deploying on the Raspberry Pi, . To start with, we need to add the
meta-packt_rpi layer used in earlier chapters of the book. We have already ensured that our newly created layer has a higher priority then