Active Topics

 



Notices


Reply
Thread Tools
Posts: 88 | Thanked: 411 times | Joined on Mar 2010 @ southern Italy
#1
While commuting, I happen to stare at my phone looking at a bunch of wildly changing numbers. And I love to bookmark the exact location of some interesting spot while on the move. Finally, at home, sometimes I like to fiddle with my list of positions/speeds/altitudes.

Enter GPStuff, a GPS position logger for Sailfish OS.

Latest version and screenshots: openrepos - gpstuff

Installation prerequisite: until Jolla provides Qt5Positioning/Qt5Location libraries "provided" by default, you will need to install them manually using:
Code:
devel-su pkcon install qt5-qtpositioning qt5-qtlocation
Installation: the RPM file can be installed without setting external repositories:
Code:
devel-su rpm -Uvh harbour-gpstuff-*.rpm
Sources: available on github

Note: works also on SailfishX.

Last edited by alfmar; 2017-10-13 at 20:54. Reason: also tested on XperiaX with SailfishOS 2.1.3
 

The Following 7 Users Say Thank You to alfmar For This Useful Post:
Posts: 88 | Thanked: 411 times | Joined on Mar 2010 @ southern Italy
#2
Text (TAB-separated) and CSV (comma-separated) files are saved in $HOME/Documents/

Provided an entry "jolla" in the /etc/hosts file, I extract them using:
Code:
rsync -ave ssh --remove-source-files nemo@jolla:Documents/gps* ./mylogs/
File format is:
- Unix timestamp in milliseconds
- latitude (positive values means northern emisphere)
- longitude
- speed (converted to km/hour)
- altitude (meters, integer)
- satellites in view (integer)
- horizontal accuracy (meters)
- vertical accuracy (meters)
- heading (currently Jolla does not support it)
- flags (0: "normal"; 1: "bookmarked")
 

The Following User Says Thank You to alfmar For This Useful Post:
Posts: 752 | Thanked: 2,808 times | Joined on Jan 2011 @ Czech Republic
#3
Originally Posted by alfmar View Post
Installation prerequisite: until Jolla provides Qt5Positioning library by default, you will need to install it manually using:
Code:
devel-su pkcon install qt5-qtpositioning
Why can't you just make it a dependency of the rpm package?
 

The Following 2 Users Say Thank You to nodevel For This Useful Post:
Posts: 88 | Thanked: 411 times | Joined on Mar 2010 @ southern Italy
#4
Example: how to extract bookmarked positions from saved files:

Code:
cat gps-20150106-002425.txt |
   grep 1$ |
   ruby -n -e 'r=$_.split; puts "#{Time.at(r.first.to_i/1000)}:  http://maps.google.com/maps?q=#{r[1]},#{r[2]}  (#{r[3]} km/hr)"'
2015-01-06 00:25:36 +0100: http://maps.google.com/maps?q=40.780963,14.573216 (22.3 km/hr)


Example: let world+dog know your position:
  • - activate GPStuff
  • - click on "Bookmark/copy position"
  • - switch to Sailfish main screen
  • - swipe from down (activates messaging and Twitter)
  • - begin writing a tweet: "I'm currently here: "
  • - press the Paste icon
  • - send
 

The Following User Says Thank You to alfmar For This Useful Post:
Posts: 88 | Thanked: 411 times | Joined on Mar 2010 @ southern Italy
#5
Originally Posted by nodevel View Post
Why can't you just make it a dependency of the rpm package?
It seems that Jolla does not like (read rpm validator readme and harbour faq).

I delayed the release until SDK 1412 was available... and found that Sailfish 1.1 still refuses to "validate" a qt5-qtpositioning native app.
 

The Following 3 Users Say Thank You to alfmar For This Useful Post:
Posts: 752 | Thanked: 2,808 times | Joined on Jan 2011 @ Czech Republic
#6
Originally Posted by alfmar View Post
It seems that Jolla does not like (read rpm validator readme and harbour faq).

I delayed the release until SDK 1412 was available... and found that Sailfish 1.1 still refuses to "validate" a qt5-qtpositioning native app.
I know that but I was under the impression you don't intend to release it until Jolla supports qt5-qtpositioning.
Installation through OpenRepos should handle dependencies just fine, so I would go that way if I were you.
 

The Following 4 Users Say Thank You to nodevel For This Useful Post:
Reply

Tags
qtpositioning, sailfish os


 
Forum Jump


All times are GMT. The time now is 19:23.