Notices


Reply
Thread Tools
epninety's Avatar
Posts: 269 | Thanked: 1,096 times | Joined on Sep 2009 @ Hampshire, UK
#41
My quick hack for the Jolla C was to use cron to run gpscon a few minutes before I need the fix. (I used tout=60 and runs=5).

Then a few minutes later my python script runs, and works through the gpscon log, from the bottom up, looking for a fix with suitable horizontal accuracy.

It's been running for months with no problem, I only looked back into it because my python script wouldn't run on the X at first - something to do with dbus-python and something else in my regex, nothing at all to do with gpscon
 

The Following 3 Users Say Thank You to epninety For This Useful Post:
Posts: 1 | Thanked: 3 times | Joined on Nov 2018
#42
I just found this nice CLI tool. Thanks Halftux for making this!

I was wondering where I can find the latest source, as I might want to tweak it for my purpose.
 

The Following 3 Users Say Thank You to slowcyclist For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#43
Originally Posted by slowcyclist View Post
I was wondering where I can find the latest source, as I might want to tweak it for my purpose.
You will find the latest sources for the maemo version in the repository. But I have some fixes in the line, need to clean sources and unify them. When this is done I will upload the sources to github.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#44
Maybe this is interesting for sfos users. I uploaded a tool so called gpstoggle which toggles the gps chip power and the location permission.
So now you could change the status via remote access, script, cron and so on. Only thing is that you need root rights.
gpstoggle

edit: tested with sailfish 3.0.0.8 and it changes on a really safe way a systemfile /etc/location/location.conf. But when this file get changed in future releases this app could fail.

Last edited by Halftux; 2018-11-30 at 01:57.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#45
Originally Posted by Halftux View Post
When this is done I will upload the sources to github.
Finally it is done.

https://github.com/halftux/gpscon
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#46
Our beloved N900 faces this gps date problem explained here:

https://www.zdnet.com/article/some-g...after-april-6/



Will see where and how to fix this. As a quick fix I could add an option to use the device date.

Or do you have any other ideas?
 

The Following 4 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#47
For the upcoming 0.0.13 release there is a new option where you can add a shift to the date in number of days. The N900 has a shift by 7168 days. I did not check if the N9 has the same problem.

Option to correct the date:
Code:
dshift=7168
 

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

Tags
console, location, position, shell

Thread Tools

 
Forum Jump


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