I'm currently working on a project for a RPi in the car, I have GPS up and running, along with producing a file for import to Google Earth. I would like to have a script executed when I am in a certain position (give or take).
For example, I have a home WiFi, I would like the script to bring up the Wifi interface, and then rsync the latest files from the RPi to a server on my home network automatically. I already have GPX files generated on the RPi running in the car with a CW2 module allowing for graceful shutdown etc.
This is the last bit of the puzzle, I could use a external switch to manually invoke the script as I do now but would prefer to have it run automatically. and am not sure how to go about initiating the script.
For further info, the WiFi is active in the car as an access point for streaming content when not at home, so I can't simply just keep pinging something to work out when I'm in range.
Any ideas (constructive prefered)?