GPS - how to get lat lon and time from a bash script file ?

Ed Kapitein ed at kapitein.org
Mon Feb 23 09:37:39 CET 2009


Hi Kimaidou,

I put some script on http://wiki.openmoko.org/wiki/User_talk:Kapiteined
and start and stop gps in those scripts.
And also clean the gps logs from data without a valid lat/long (thus
without having a fix).

Please feel free to browse trough the scripts and use whatever you like
about it.

Kind regards,
Ed

On Sun, 2009-02-22 at 14:00 +0100, kimaidou wrote:
> Hi,
> 
> I am developping voicenote (1), and I would like to implement a new
> function : localize each audio note with the gps latitude, longitude
> and time. Since I would like the soft to be plateform independant, I
> ask you to tell me how can I :
> * start gps if it is not
> * know when I got a fix
> * put the latitude, longitude and time into variables (and why not the
> precision too : hdop)
> * shutdown gps if it was not up when the script loads (if you think it
> should do so)
> 
> Thanks for any help.
> 
> NB: I am just begining scripting; I know nothing about dbus (only copy
> paste some working lines), etc. Please be patient :D
> 
> (1) http://wiki.openmoko.org/wiki/Voicenote
> 
> Kimaidou
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community





More information about the community mailing list