Sponsored Content
Full Discussion: GPS-Tracker script [Android]
Top Forums Shell Programming and Scripting GPS-Tracker script [Android] Post 302539087 by al0x on Friday 15th of July 2011 07:46:08 AM
Old 07-15-2011
GPS-Tracker script [Android]

Hi UNIX-Forum!

I don't know if this is the right Forum for my question, but since Android technically is a UNIX-based system...

I have a rooted Android and a Terminal emulator and bash installed.
I wanted to write a little script for my android that activates GPS, gets the location and sends it via SMS to another phone.
My first problem is that I can't find anywhere how to activate GPS from the shell. Is it even possible? There should be something, no?

Many thanks if someone could help me on this kind of special Topic!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

event scheduler/tracker script

Dear All, I am writing an event tracker shell script as part of a personal project. I am trying 2 write a sort of date math function using the GNU date command. This function would allow 2 search 4 future events, like looking 4 events 1 or 2 days ahead 4 instance. I've used the date command b4... (1 Reply)
Discussion started by: theangrybeaver
1 Replies

2. Shell Programming and Scripting

Getting MAC from GPS unit

Never mind i got the answer thanks., (0 Replies)
Discussion started by: deaconf19
0 Replies

3. UNIX for Dummies Questions & Answers

install linux on GPS device?

hi all, this might be a silly question, but... a few years ago, i bought a Nortech Navigation E-GPS010. this is a car/hand-held GPS unit that, for a while, worked pretty well. in fact, it still works well. the map version on my GPS is dated 2006, so i thought i'd upgrade; however, the crappy... (10 Replies)
Discussion started by: jmd9qs
10 Replies

4. Shell Programming and Scripting

shell script to insert data from gps.txt to mysql database

Hi, I have gps receiver, by using gpsd data i can read gps log data to my database(my sql). Steps: 1. telenet localhost 2947 > gps.txt (press enter) 2. r (press enter) //then i will get the data like below in gps.txt file Trying 127.0.0.1... Connected to localhost.... (1 Reply)
Discussion started by: gudivada213
1 Replies

5. Shell Programming and Scripting

shell script to read a line in gps receiver log file and append that line to new file

Hi, I have gps receiver log..its giving readings .like below Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GPSD,R=1 $GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
3 Replies

6. Android

Android Scripting Environment: Shell Scripting and Android

I just upgraded to Android 2.2 from 2.1. The GPS issue that was troublesome in 2.1 seems to have been fixed. Some of web browsing seems faster, but it could just be my connection is better today ;) Flash works in some browsers but not very good and it is too slow for Flash apps designed for... (0 Replies)
Discussion started by: Neo
0 Replies

7. Android

Problem with torrents and bash script on Android

Please disregard this post (0 Replies)
Discussion started by: johnnybopper
0 Replies

8. AIX

GPS Clock Not Synchronised

Hi guys, I got some error on my application server mentioning that gps clock not sync to my db server. what is the command to check is my server is sync with the gps clock? appreciate if you guys can let me know how to troubleshoot this problem. Thanks (1 Reply)
Discussion started by: leecopper
1 Replies

9. Shell Programming and Scripting

UTC to GPS

Gents, Kindly can u help with this. I would like to get GPS time from UTC Input 17/11/27 03:13:50:480000 17/11/27 03:12:54:380000 17/11/27 03:14:39:980000 output desired. 17/11/27 03:13:50:480000 1195787648480000 17/11/27 03:12:54:380000 1195787592380000 17/11/27... (6 Replies)
Discussion started by: jiam912
6 Replies

10. UNIX for Beginners Questions & Answers

Android Device ID Changer shell script

this is worked "ANDROID NOUGAT" how can i use it for "ANDROID OREO" -plz help me... ------------------------------------------- echo " Ã-~-DEVICE ID CHANGINGÃ-~-" sleep 2 echo " " COUNT=1 while do ; echo "settings put secure android_id " | tr -d '\n' > X1... (4 Replies)
Discussion started by: f4is4l
4 Replies
GPSCORRELATE(1) 						  [FIXME: manual]						   GPSCORRELATE(1)

NAME
gpscorrelate - correlates digital images with GPS data filling EXIF fields SYNOPSIS
gpscorrelate [-z | --timeadd +/-HH[:MM]] [-O | --photooffset seconds] [-i | --no-interpolation] [-v | --verbose] [-d | --datum datum] [-n | --no-write] [-m | --max-dist time] [-t | --ignore-tracksegs] [-M | --no-mtime] [-f | --fix-timestamps] [-p | --degmins] -g file.gpx image.jpg... gpscorrelate -s | --show | -o | --machine image.jpg... gpscorrelate [-M | --no-mtime] {-r | --remove} image.jpg... gpscorrelate -V | --version | -h | --help gpscorrelate-gui DESCRIPTION
This manual page documents briefly the gpscorrelate and gpscorrelate-gui commands. There is an extended documenation available in HTML format; see below. gpscorrelate is a program that acts on digital images in JPEG format filling EXIF (Exchangeable Image File Format) fields related to GPS (Global Positioning System) information. Source for the GPS data is a record of GPS information encoded in GPX (GPS Exchange Format) Format. The act of filling those fields is referred to as correlation. If GPS data are available at the precise moment the image was taken (with a 1-second granularity) the GPS data are stored unmodified in EXIF fields. If they are not linear interpolation of GPS data available at moments before and after the image was taken can be used. gpscorrelate is a command line tool implementing correlation whereas gpscorrelate-gui is the corresponding GTK+ graphical user interface. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the HTML documentation. -g, --gps file.gpx correlate using the specified GPX file with GPS data -s, --show only show the GPS data of the given images -o, --machine only show the GPS data of the given images in a machine readable output, if there is any -r, --remove only remove GPS EXIF data from the given images -z, --timeadd +/-XX[:XX] time to add to GPS data to make it match the timestamps of the images. GPS data is in UTC; images are not likely to be in UTC. Enter the timezone used when taking the images: eg, +8 for Perth -O, --photooffset seconds time in seconds to add to the photo timestamp to make it match the GPS timestamp. To determine the amount of seconds needed, just create a picture of your GPS device showing the current time and compare it with the timestamp of your photo file. -i, --no-interpolation disable interpolation between points. Interpolation is linear, points are rounded if disabled -v, --verbose show which GPS data has been selected for each image -d, --datum datum specify measurement datum. If not set, WGS-84 used -n, --no-write do not write the exif data. Useful with --verbose -m, --max-dist time max time outside points that image will be matched. Time is in seconds -t, --ignore-tracksegs Interpolate between track segments, too -M, --no-mtime Do not change mtime of modified files -f, --fix-timestamps Fix broken GPS datestamps written with versions < 1.5.2 -p, --degmins Write location as DD MM.MM as was default before < 1.5.3 -h, --help Only show summary of options -V, --version Only print the version SEE ALSO
gpsd (1), gpsbabel (1), gpxlogger (1), cgpxlogger (1). The documentation of gpscorrelate and gpscorrelate-gui in HTML format are available on the filesystem at /usr/share/doc/gpscorrelate. AUTHOR
This manual page was initially written by Stefano Zacchiroli zack@debian.org for the Debian(TM) system. It was extended by Till Maas opensource@till.name. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. AUTHOR
Stefano Zacchiroli Author. COPYRIGHT
Copyright (C) 2006, 2008 Stefano Zacchiroli zack@debian.org, Till Maas [FIXME: source] 30 Oct 2008 GPSCORRELATE(1)
All times are GMT -4. The time now is 11:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy