n3tm4n
Posts: 29
Joined: Tue Jun 10, 2014 11:34 am
Location: East Midlands, UK
Contact: Website

Advice on script execution triggered GPS Coordinates.

Thu Jun 19, 2014 1:53 pm

Hi,

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)? :)
http://0x25.blogspot.co.uk/

atomic3
Posts: 99
Joined: Thu Jan 17, 2013 4:31 pm

Re: Advice on script execution triggered GPS Coordinates.

Sat Jun 21, 2014 12:33 am

Do you know this certain position?

If so, you can just use the 'haversine' formula to calculate the distance between you and a known latitude and longitude point.

Return to “Other projects”