Notices


Reply
Thread Tools
Posts: 51 | Thanked: 48 times | Joined on Jun 2010
#31
Hi MasterZap,

Could I request a feature to back off on the frequency of location updates as the battery life decreases and perhaps even turn it off completely if it drops below 15% charge (this is what google maps on Symbian does, I believe -- update only if cell tower changes, slowly falling back on update frequency as charge drops)

Having all those values use configurable would be even better

Thanks for your work so far. Much appreciated.
 

The Following User Says Thank You to thegman For This Useful Post:
CasTTeLLo's Avatar
Posts: 335 | Thanked: 51 times | Joined on May 2010
#32
this is so cool mate.......tq....
__________________
Best Regard,

CasTTeLLo

Last edited by CasTTeLLo; 2011-05-17 at 12:32. Reason: my mistake...
 
Posts: 650 | Thanked: 497 times | Joined on Oct 2008 @ Ghent, Belgium
#33
I now have ZapLoc running fine, and updating my latitude location using cell only. Works great

I had one weird update for a completely wrong location. It seems to be some kind of default location that is set before the cell tower location is found - I've seen this flash by shortly in map apps.

Could it be ZapLoc is not correctly waiting for the cell position?
__________________
Affordable mobile internet in Belgium: Try Mobile Vikings
2 GB, 1000 SMS and 15 euro of talk time for.... 15 euro
 
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#34
Originally Posted by petur View Post
I'm still failing horribly at installing your tool....

the google-api-python-client doesn't install correctly. I went commandline and found out it is complaining about a simplejson package not being there (but it doesn't exist as separate package)

Any missing dependency?

Edit: the missing package is python-simplejson
Correct, I'll add this as a dependency.

It's suprisingly hard (unless there is a bleeding obvious method I am unaware of) to figure out what *debian level* packages are dependencies on a python app... :/

/Z
 

The Following User Says Thank You to MasterZap For This Useful Post:
CasTTeLLo's Avatar
Posts: 335 | Thanked: 51 times | Joined on May 2010
#35
how to move and add new location on foursquare or fb?
__________________
Best Regard,

CasTTeLLo
 
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#36
You can't create spots for the other services, you can only create ZapLoc's from existing spots.

At least... not yet (and I'm not sure I plan to do that - don't hold your breath for that feature any time soon)

For now:

/Z
 

The Following User Says Thank You to MasterZap For This Useful Post:
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#37
Originally Posted by petur View Post
I now have ZapLoc running fine, and updating my latitude location using cell only. Works great
Glad you like it. I think there may be room for improvement on the cell-mode, though.

Now, it polls the cell just like it was previously polling the GPS. However, you don't NEED to poll the cell at intervals, because it doesnt' take any new power to keep that on. So the idea is to simply turn the "cell mode" location on, keep it on, and only change when it changes. I havn't figured out the details of that yet, but I think I will do that eventually.

Also for GPS mode, I want to have a mode where it instead of stopping completely, switches to cell tower, then waits for cell-tower switch, and THEN does a new try on the GPS (this is what I had planned for the UI option "only when cell tower changes" for interval, but this isn't implemented yet)

Originally Posted by petur View Post
I had one weird update for a completely wrong location. It seems to be some kind of default location that is set before the cell tower location is found - I've seen this flash by shortly in map apps.

Could it be ZapLoc is not correctly waiting for the cell position?
ZapLoc itself ineed DOESN'T wait, but defaults to "last position used", but it's not ZapLoc that posts to latitude, it's the ZapLoc-Daemon, and that *DOES* wait for a mode=2 (celltower) fix (run it with verbose to see it spew stupid amounts of details about what it is doing)

Code:
python /opt/zaploc/zaploc-daemon.py -v
That will shut down the old daemon and start a new one in XTerm, spewing crap.

When you are done reading it, you can CTRL-C it and restart the background daemon with:

Code:
python /opt/zaploc/zaploc-daemon.py -d
Could be fun if you are bored

/Z
 
Posts: 51 | Thanked: 48 times | Joined on Jun 2010
#38
So the idea is to simply turn the "cell mode" location on, keep it on, and only change when it changes. I havn't figured out the details of that yet, but I think I will do that eventually.
I used this bit of python code (uses dbus) for listening to CellID changes when I threw together "Rest in Peace": http://talk.maemo.org/showthread.php...628#post428628

It could be modified for your needs to only ask location updates when the CellID changes
 

The Following 2 Users Say Thank You to thegman For This Useful Post:
Posts: 650 | Thanked: 497 times | Joined on Oct 2008 @ Ghent, Belgium
#39
Originally Posted by MasterZap View Post
ZapLoc itself ineed DOESN'T wait, but defaults to "last position used", but it's not ZapLoc that posts to latitude, it's the ZapLoc-Daemon, and that *DOES* wait for a mode=2 (celltower) fix (run it with verbose to see it spew stupid amounts of details about what it is doing)
Code:
LOCATION_METHOD_ACWP - Assisted Complementary Wireless Positioning: A method where device is located based on cellular base station to which device is registered to. SIM card and a network connection is needed for ACWP method. If no network connection is available, this equals to CWP. Application might receive MCC fixes before base station information from external location server is fetched and as a fallback if e.g. network is temporary unavailable.
(from http://wiki.maemo.org/Documentation/...cation_methods)

so for a short time it may give the center of the country as position... *sigh*
__________________
Affordable mobile internet in Belgium: Try Mobile Vikings
2 GB, 1000 SMS and 15 euro of talk time for.... 15 euro
 
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#40
Originally Posted by petur View Post
Code:
LOCATION_METHOD_ACWP - Assisted Complementary Wireless Positioning: A method where device is located based on cellular base station to which device is registered to. SIM card and a network connection is needed for ACWP method. If no network connection is available, this equals to CWP. Application might receive MCC fixes before base station information from external location server is fetched and as a fallback if e.g. network is temporary unavailable.
(from http://wiki.maemo.org/Documentation/...cation_methods)

so for a short time it may give the center of the country as position... *sigh*

Right, but that comes in with "mode=0" which I ignore (each fix comes in with a "mode", where 0 is "crappy guess like center of coutry", 1 is... donno what... 2 is a celltower fix and 3 is a gps fix)

I only bother about mode 2 and 3 in GPS mode, and only mode 2 in cell mode.

/Z
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:46.