Gpscon for Sailfish is a command line tool to acquire the gps position with the qtlocation api. It can be used as a tracker with gpx export.
without parameter gpscon will be in endless loop and print to stdout: Latitude; Longitude; Altitude
only way to exit ctrl+c.
With parameters you can exit the application with x+[enter]
x+[enter]: will exit the application and if selected the gpx file will be exported
t+[enter]: will mark a new track in the logfile.
s+[enter]: will mark a new track segment in the logfile.
[--fout]
will enhance the output with additional values: Direction; Ground Speed; Vertical Speed;
Horizontal Acc;Vertical Acc
[--sat]
with this option also the satellite status will be requested and printed out
"Using x of x satellites"
[posm=string]
this will select the positioning method. Default is all.
string=all |AllPositioningMethods
string=onlysat |SatellitePositioningMethods
string=nonesat |NonSatellitePositioningMethods
[interval=integer]
This property holds the requested interval in milliseconds between each update.
If the update interval is not set (or is set to 0) the source will provide updates as often as necessary.
If the update interval is set, the source will provide updates at an interval as close to the requested interval as possible. If the requested interval is less than the minimumUpdateInterval(), the minimum interval is used instead.
[runs=integer]
sets the amount on how many (shown) requests are made before exit
[dumps=integer]
sets the amount on how many first requests get dumped
[limit=integer]
sets the limit of the needed horizontal/vertical accuracy value before print out.
There will be only one print out and after this the app is closing
[log=string]
writing to a log file
string=txt |write/append gpscon.log to user dir
string=gpx |write/append gpscon.log to user dir after last run or exit, the log file will be converted and written to gpscon.gpx in user dir
string=log2gpx |convert log to gpx and exit.
[tout=integer]
sets the timeout for aquire a gps position in seconds.
[dshift=integer]
day shift from date
[--del]
If log file exists it will be removed
[--date]
adds date to output
[--time]
adds time to output
[--newtrack]
will mark in the log file a new track. When converting to gpx old log file data and new data will be visible as separate track.
[--lknv]
This should output the last known value once at first (debug). If runs=1 it will only print the last known value out and quit.
[--script]
Will deactivate the user input which causes trouble with cron or python scripts. This option is recommended when using gpscon with scripts.
[--help]
prints help
Source code: https://github.com/halftux/gpscon
Attachment | Size | Date |
---|---|---|
gpscon-0.0.4-1.armv7hl.rpm | 11.68 KB | 15/11/2015 - 22:50 |
gpscon-0.0.6-1.armv7hl.rpm | 18.11 KB | 22/11/2015 - 23:59 |
gpscon-0.0.7-1.armv7hl.rpm | 18.92 KB | 27/12/2015 - 13:45 |
gpscon-0.0.8-2.armv7hl.rpm | 19.94 KB | 27/02/2016 - 20:05 |
gpscon-0.0.9-1.armv7hl.rpm | 20.82 KB | 27/11/2016 - 20:33 |
gpscon-0.0.10-1.armv7hl.rpm | 21.29 KB | 06/12/2016 - 22:52 |
gpscon-0.0.10-1.i486.rpm | 24.73 KB | 06/12/2016 - 22:52 |
gpscon-0.0.11-1.armv7hl.rpm | 21.26 KB | 14/10/2017 - 02:38 |
gpscon-0.0.11-2.armv7hl.rpm | 23.64 KB | 13/11/2018 - 02:10 |
gpscon-0.0.11-2.i486.rpm | 26.5 KB | 13/11/2018 - 02:10 |
gpscon-0.0.13-1.armv7hl.rpm | 23.21 KB | 24/06/2020 - 13:25 |
gpscon-0.0.13-1.i486.rpm | 27.92 KB | 24/06/2020 - 13:25 |
gpscon-0.0.13-1.aarch64.rpm | 25.13 KB | 16/09/2021 - 21:34 |
* Wed Nov 13 2019 Halftux 0.0.13-1
- date shift option
* Sun Nov 18 2018 Halftux 0.0.12-1
- stop updates before closing and writing gpx
* Mon Nov 12 2018 Halftux 0.0.11-2
- sailfish fix MetaType QGeoPositionInfo
* Sat Oct 13 2017 Halftux 0.0.11-1
- added dump of the first events
* Tue Nov 29 2016 Halftux 0.0.10-1
- added track segment to gpx export
* Sun Nov 27 2016 Halftux 0.0.9-1
- dismiss first result from onlysat
- added timeout function
* Sat Feb 27 2016 Halftux 0.0.8-2
- added script option (deactivate user input)
* Sun Nov 22 2015 Halftux 0.0.7-1
- added convert status
- added mark tracks in log file
* Sun Nov 22 2015 Halftux 0.0.6-1
- added icon to debian package
- changed package description
- changed category to navigation
* Sun Nov 15 2015 Halftux 0.0.5-1
- added interval
- added date, time
- added log file
- added exit x+[enter]
* Sun Apr 13 2014 Halftux 0.0.4-1
- Initial release
Comments
naytsyrhc
Tue, 2018/11/13 - 10:12
Permalink
Thanks for this tool. This is lovely "unixish" and good to setup cron based tracking.