Calm Dog is a Rails app that can find an iPhone’s location via FindMyPhone and control a Raspberry Pi. You can have your Raspberry Pi play a sound file when you are within a range of your home. You can adjust the volume and frequency of phone location polling.