Kismet Wireless

Kismet Forums

 

Posted by:sameb
Subject:mapping with kismet and gpsprune
Date:23:33:05 16/10/2012

Since it appears that mapping with kismet is no longer a trivial task I thought this would help. I used gpsprune to convert the .gpsxml to .kml for viewing in Google Earth. Out of the box this did not work. It appears that the current version of gpsprune outputs to an outdated version of the .kml format. Here's an example of the output (I don't know how to fix the formatting in this forum):

<Point>
<altitudeMode>clampToGround</altitudeMode>
<coordinates>lon="-123.062515",lat="43.797737",0</coor$
</Point>

Here's an example of what it needs to look like:

<Point>
<altitudeMode>clampToGround</altitudeMode>
<coordinates>-123.062515,43.797737,0</coordinates>
</Point>

So I wrote a script in octave to do that parsing:

data = fopen("cg wifi names.kml","r","ieee-le");
datafix = fopen("cg wifi names fix.kml","w","ieee-le");

line = fgets(data);
while line != -1
if length(line) < 49
fputs(datafix,line);
else
if line(4) == "<" && line(5) == "c"
line(49) = "";
line(35:39) = "";
line(33) = "";
line(17:21) = "";
fputs(datafix,line);
else
fputs(datafix,line);
end
end
line = fgets(data);
line(35:39) = "";
line(33) = "";
line(17:21) = "";
fputs(datafix,line);
else
fputs(datafix,line);
end
end
line = fgets(data);
end

fclose(data);
fclose(datafix);

Hopefully this helps somebody. Unfortunately, my setup with Google Earth is quite slow, so I have to get rid of some of my data. This solution also doesn't say anything about signal strength, which is what I still need. I'm trying to show people in my neighborhood that we can have a local wifi network with our existing hardware.


Reply to this message