maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 + Google Latitude (https://talk.maemo.org/showthread.php?t=38542)

gazza_d 2011-01-30 10:34

Re: N900 + Google Latitude
 
is it possible to change the positioning method and update frequency via command line or script? Or add specifc location based rules within the program?

basically what i want do do is to change them depending on where I am and what I am connecting to. eg if i am on wlan, then i am generally going to be static within a certain radius, so the update frequency can be reduced.

i would want to increase my updates and accuracy if i am in my car for example, which i can identify automatically via it's bluetooth connection.

good work so far, yout efforts are apprciated.

rlinfati 2011-01-30 11:59

Re: N900 + Google Latitude
 
Quote:

Originally Posted by gazza_d (Post 931785)
is it possible to change the positioning method and update frequency via command line or script? Or add specifc location based rules within the program?.

the config file is
~/.config/linfati/GoogleLatitude.conf

xur17 2011-01-30 17:04

Re: N900 + Google Latitude
 
Using a script like this you can get your current location when you are near wifi. Could this possibly be added to this script?

It could be used instead of gps or locating via cell phone base station information. This appears to give fairly accurate readings, and could fall back on gps or cell phone positioning if the accuracy wasn't high enough?

I might try to write a small script that will return location information using this automatically.

rlinfati 2011-01-30 17:59

Re: N900 + Google Latitude
 
@xur17

the cell tower mode do the same...
it's send the cell id send, wifi mac visible, and others.... but is based in nokia server and not google server

i have a bash script more complete for google service... i going to see if i can integrate it....

petur 2011-01-31 13:52

Re: N900 + Google Latitude
 
I use alarmed to switch my phone offline at night and back online again in the morning.
This was working fine, but it recently stopped working properly - when I look at the screen, there is a dialog on there that asks if I want to switch out of offline mode.

Did anything change to the latitude daemon that could cause it to do this (ie, tries to foce online rather than just check if the internet is available)?

I remember that this worked some time before, so this behavior came in a recent update of the Latitude daemon.

rlinfati 2011-01-31 14:26

Re: N900 + Google Latitude
 
@peter the version 0.6-x do not try auto connect...

@xur17 this is my script http://pastebin.com/gBpBukWm but need curl ( or wget ) to work... i going to translate to qt...

petur 2011-01-31 14:33

Re: N900 + Google Latitude
 
Quote:

Originally Posted by rlinfati (Post 932587)
@peter the version 0.6-x do not try auto connect...

I seem to have 0.6-2 installed, I'll try to experiment a bit more tonight to figure out the culprit.

xur17 2011-01-31 17:48

Re: N900 + Google Latitude
 
Quote:

Originally Posted by rlinfati (Post 931999)
@xur17

the cell tower mode do the same...
it's send the cell id send, wifi mac visible, and others.... but is based in nokia server and not google server

i have a bash script more complete for google service... i going to see if i can integrate it....

I tried using this script on cell tower mode while in my house (wifi visible) and the margin of error for the location was quite large.

That is interesting that nokia does get location based on wifi mac visible. I assumed they didn't.

rlinfati 2011-01-31 18:00

Re: N900 + Google Latitude
 
@xur17, in my script i can add the cell id to improve the accuracy, maybe your wifi router mac is not registred in google :)

MasterZap 2011-01-31 19:36

Re: N900 + Google Latitude
 
Hey, I have a suggestion: When connected to wifi - stop updating (reuse latest GPS fix) or at least reduce rate of updates a lot!

That would be perfect.

Other than that, it is working quite well now!!! Great Work!


/Z


All times are GMT. The time now is 04:38.

vBulletin® Version 3.8.8