American Steve Hickson has done an excellent home automation proof-of-concept. He’s placed a Raspberry Pi and camera module inside his fridge (and made sure that the light stayed on). The Pi takes a picture, analyses it and identifies whether there is any fruit there. If there isn’t, it uses the API of a service called Instacart to add a bunch of fruit to a shopping cart. You then access the service and arrange delivery manually. It’s a nice proof-of-concept, although obviously it still requires some manual intervention, but it’s good to see the Pi being used for a practical purpose. Read how he did it and look at his code here.