![]() |
Re: [Announce] gpscon gps position cli shell console
Quote:
CNT (Columbus Navigation Toolkit) provides such but 1) it has a GUI and does a whole lot more (resource hungry but very stylish) and 2) is unstable. I submit that the above is broadly consistent with gpscon current mission. Easy to write huh, as a non-coding, ageing smart-***, I know :-) |
Re: [Announce] gpscon gps position cli shell console
Quote:
|
Re: [Announce] gpscon gps position cli shell console
Quote:
The reason I ask... I have the following script running every 3 minutes from cron: Code:
#!/bin/sh I then experimented with gpscon a bit more and found that it always returns the same previous value if run only once. Only when run two or more times, it starts updating the value. Unfortunately, Code:
gpscon runs=x What am I doing wrong? |
Re: [Announce] gpscon gps position cli shell console
In addition to the above, I get strange results like:
Code:
[nemo@Dinghy ~]$ gpscon I would expect...
Moreover... I open two terminal windows, one with gpscon running permanently (I see the values changing in the last digit). In the other, I run gpscon runs=1 manually from time to time. I expect the manual run reflect the current values from the window with gpscon running permanently, but it is always the same. What is going on? (Experiments run on Sailfish if that makes a difference.) |
Re: [Announce] gpscon gps position cli shell console
Even better:
Code:
[nemo@Dinghy ~]$ gpscon However, Code:
[nemo@Dinghy ~]$ gpscon runs=3
The remaining £100 question is, why does gpscon runs=3 not terminate when run from a script triggered by cron when it quite happily terminates when the same script is run manually from the command line. |
Re: [Announce] gpscon gps position cli shell console
@ pichlo, sorry I do not have sailfish :(. But I will look into your posts and see if I can help you.
One thing is the position api can get different positions. So after some time you should get exact values when your gps signal is fixed. First I would set position method option to "posm=onlysat". Code:
Satellite-based positioning methods such as GPS. Set it to 80 and this would lead to one print out with a fixed gps position. |
Re: [Announce] gpscon gps position cli shell console
Hmm. Something is fishy here. I tried gpscon limit=80 and it never terminated (not in 5 minutes anyway). Neither did limit=10.
|
Re: [Announce] gpscon gps position cli shell console
Quote:
gpscon posm=onlysat --fout --sat Let it run and see how the values are changing. What is the minimum value for your accuarcy? |
Re: [Announce] gpscon gps position cli shell console
@pichlo By the way the altitude is nan this means the position doesn't come from the gps.
Quote:
Is it worth to try in another script after some timout. Code:
kill -SIGTERM $(pidof gpscon) It could be that the value will not change because it is a last known value (it shouldn't take it), or the value comes from a not very accurate positioning method. However the N900 and the N950 act different because of different qtmobility. Maybe Jolla also act different. P.S.: Maybe the first value is the lastknown value could be a bug in the last version, I will look into the source code. |
Re: [Announce] gpscon gps position cli shell console
Quote:
I ran it indoors but on the upper floor of a typical 2-story English house with thin wooden floors and ceilings. No concrete. It started off with 0 out of 19 satellites used, accuracy something like 67. Then I put it in the window while tucking the kids in the bed. I do not know long it took as I was busy but now, after 3894 runs, it says 5 out of 20 sats used, accuracy 4. Quote:
BTW the altitude was a number sometimes ;) |
All times are GMT. The time now is 09:10. |
vBulletin® Version 3.8.8