Anyone know how to import this automatically to google maps or google earth ???
gps.txt file contains the following and is emailed to me every 24hours…I need to be able to
send/save these as KMZ files automatically…
Hi Guys,
I’m looking for someone to write a script for what I am trying to achieve, and I’m willing to send them a 433AH board if they like or pay cash?
I would like a script that would Monitor the GPS Lat/Long, if the unit moves more than 15 meters it would send out a email notification with a link to Google Earth or KMZ file etc…until the unit stops moving…
This script would be running in the background every 5mins or so…
Anyone interested ??? Please leave your contact details here and I will email you…
Cheers
Thanks normis, that is kind of what I was looking for but in Google Earth if possible..
Most of our radios are on mining sites where i have to overlay flyover images(maps) into Google Earth as the terrain changes so quickly
So when a repeater trailer is moved Google Earth is much easier to see where it has been moved to…
If the script is only run if the trailers moves more than 25 mtrs this will ease the burden of getting emails for trailers (radios) that haven’t been moved…
…thanks…
What format do you need in your file for Google Earth? I have your file split into lat/long variables in the router, but in the format:
N xx xx’ xx’’
E xxx xx’ xx’’
Whew! I’m all the way up to 9 lines of code, and that includes parsing ‘valid’ out also. You will want to check that before using the coordinates, correct?
ADD: I see the KML format. Give me a bit to convert formats. Check back!
Hi Tim,
The format would have to be in a xml format with the extension of *.kml ,more info here www.earthslot.org/ipy/geassets/nsidc_how2kml4ipy.doc
I’ve attached a kml file of mine if you wish to take a further look into it…its in xml formate but would have to be saved as *.kml from the RB if possible…
Many thanks Drill 288.xml (1.03 KB)
The only challenge I have is the format conversion to a decimal degree. I have tried the other formats on Google Earth and want to insure the coordinate format works before going any farther. Would you check if standard lat/long coordinates work in the kml file. They are supposed to work.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Simple placemark</name>
<description>Attached to the ground. Intelligently places itself
at the height of the underlying terrain.</description>
<Point>
<coordinates>E 123 45' 12.3",S 12 34' 56.2"</coordinates>
</Point>
</Placemark>
</kml>
Also, verify the gps file ends each part of the coordinates (denotes seconds) with two single quotes (') rather than a double quote (").
I just went ahead and did the decimal conversion. I tested the coordinate output using coordinates of Destin Airport with Google Maps. It was a good exercise in parsing.
Not sure on how you mean create a gps.kml file and upload to router…
Do you mean with the bottom source code you have in yr post and add it as a file or add the code as part of a script ???
My bad! There is no “file create” function in this OS. Create a text file with an editor, and save it as gps.kml. Doesn’t matter what is in it. Then upload it to the router. That is the file the code will put the kml code in. I could create the file by “cheating”, but this is easier for me.
I put your coordinates in gps.txt, and this line ended up in gps.kml
-148.1636,-23.5552
ADD: Google Maps puts you in a city called Emerald in Australia.
ADD2: Do you have a plan for getting the file to a web server? TFTP would be my choice. To use it, you must add the file to the tftp server in the router, or it won’t find the file.
Thanks Tim,
I would really love it to be able to send by email if possible.
Only if it moves away from its current position.
My situation is that i have a lot of repeater trailers and need to only now if they have been moved.
A email alert would be much easier then I wouldn’t need another server running..
Bear in mind, with no decimal fraction value for the seconds, the accuracy is only to about 30 meters (100’). Just the way the math and the planet work.
Hey mate, it works a treat…and the 30meters is good, it wont email me thinking its moving until it is being towed away etc…
Still playing around with it, but it’s a beautiful thing…