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)

fabiomanzoni 2011-01-31 19:52

Re: N900 + Google Latitude
 
Quote:

Originally Posted by MasterZap (Post 929896)
Are you sure the "start daemon" works? Coz I only had it work after rebooting. I even grep:ed processes and saw nothing (also after closing the UI).

But after rebooting it was there. AND WORK IT DOES :D

I am very happy. I was using a home-hacked version of "gluppy" before to get the best Latitude functionality.... but this definitely works better now!

Many thanks to mr Linfati :D

/Z

Can the aplication shows what is turned on?
(something like a button showing that the GPS/CELL/etc is on use.)

rlinfati 2011-01-31 20:41

Re: N900 + Google Latitude
 
@fabiomanzoni see the config on the gui or cat ~/.config/linfati/googlelatitude.conf ( if is not show, then is cell )

@MasterZap what you think about...
[update always] [Update on network connection] [update only on gprs]

the first do not check if is online, if is active the "automatic connect" will connect to internet

the second (default) will update if a network conection is present

the third will update ONLY is the connection is a cell connection ( need some testing... but i think i can do it..)

MasterZap 2011-02-01 06:50

Re: N900 + Google Latitude
 
Actually I realzed there is a problem with stopping updates completely: Google latitude by default considers updates "old" after a few hours and stops listing you (at least on the webpage).

Maybe simply have two update interval settings:
GPRS update frequency:
WIFI Update frequency:

/Z

Dario1970 2011-02-03 18:05

Re: N900 + Google Latitude
 
I cannot shorten update interval at least 300 seconds ! Why?
I put 120 but when i reconnect it is again at 300!

rlinfati 2011-02-03 19:34

Re: N900 + Google Latitude
 
Quote:

Originally Posted by Dario1970 (Post 935145)
I cannot shorten update interval at least 300 seconds ! Why?
I put 120 but when i reconnect it is again at 300!

edit .config/linfati/GoogleLatitude.conf and NOT open config...

petur 2011-02-04 09:37

Re: N900 + Google Latitude
 
If I have it configured to use only celltower info, but the GPS is switched on (nav software), will it use the more accurate position available?

rlinfati 2011-02-04 10:44

Re: N900 + Google Latitude
 
@petur: yes

MasterZap 2011-02-04 11:38

Re: N900 + Google Latitude
 
Just a note that the current app works *perfectly* with GPS, exactly the way I want it. And it takes very little battery even though I used 15 minutes update interval all day every day.

*thank you*

/Z

Kareema 2011-02-06 16:54

Re: N900 + Google Latitude
 
I've been testing googlelatitude 0.6-2 for a while and it's working really good without much battery drain and is nearly feature complete. Thank you very much for your efforts!

Still there's one feature that could be useful and is missing at the moment: I'm using googlelatitude for tracking. When I'm driving around with my car I have to shorten the update interval manually to track the route I take with my car.

It would be nice to have something like a "dynamic update interval": Use the normal update interval (set via gui), if there's no movement. If GPS is active and there's a movement rate above a defined speed threshold, dynamically set the update interval to a shorter value (perhaps depending on the movement rate); the "dynamic update interval" could be enabled/disabled via GUI if somebody doesn't like it. What do you think about it?

wurtel 2011-02-17 12:56

Re: N900 + Google Latitude
 
I noticed that after 2 weeks uptime, it was using quite a large chunk of memory (all operations on the phone took a couple of seconds while it was swapping). Stopping and starting the daemon frred the memory up; it looks like there's a memory leak somewhere.

Also, a wishlist item: don't send an update if the circle of accuracy is larger than a certain value. Apparently my N900 connects to a cell about 10km away, and when I'm indoors and the GPS has no lock, that update is worse than useless...

Checking into locations, like the android app does nowadays, would also be cool.

Thanks for a great tool!

egoshin 2011-02-17 19:45

Re: N900 + Google Latitude
 
Quote:

Originally Posted by wurtel (Post 948896)
I noticed that after 2 weeks uptime, it was using quite a large chunk of memory (all operations on the phone took a couple of seconds while it was swapping). Stopping and starting the daemon frred the memory up; it looks like there's a memory leak somewhere.

I confirm that - daemon has a memory leak.

rlinfati 2011-02-17 20:02

Re: N900 + Google Latitude
 
uhm... i going to check the memory leak...

petur 2011-04-13 21:27

Re: N900 + Google Latitude
 
Latitude suddenly stopped working here 2 hours ago. Doesn't update the location anymore, and refuses to load friends list. It logs in so password is fine (didn't change it anyway).

Anyone else see this?

gazza_d 2011-04-13 23:06

Re: N900 + Google Latitude
 
just checked and it appears to have stopped working for me as well. my last reported position was 4 hours ago which was spprox 2000 gmt.

Whoopi 2011-04-14 06:44

Re: N900 + Google Latitude
 
same here, too! (12 hours ago)

ajack 2011-04-14 07:25

Re: N900 + Google Latitude
 
Same here... last 14 hours for me... :(

petur 2011-04-14 07:33

Re: N900 + Google Latitude
 
since my friends (all using Android devices) are getting updated fine, I guess they tweaked the API or kicked non-Android clients out?

rlinfati 2011-04-14 08:32

Re: N900 + Google Latitude
 
404 not found :S

petur 2011-04-14 08:39

Re: N900 + Google Latitude
 
I see... will you nag them in the latitude discussion group? Or did they change the URL and you just need to update?

EDIT: and where did you see the 404? In the app somewhere? Or does it log stuff?

rlinfati 2011-04-14 09:17

Re: N900 + Google Latitude
 
@peter
running the daemon from console...

google migrate to https the latitude updater... and "change" the url :(
and, the gui is not functional now... :(

i need investigate...

wurtel 2011-04-14 09:18

Re: N900 + Google Latitude
 
I also see that fetching the list of friends in the GUI tool doesn't work :(

[QUOTE=petur;987971
EDIT: and where did you see the 404? In the app somewhere? Or does it log stuff?[/QUOTE]
If you run
/opt/linfati.com/GoogleLatitudeDaemon in a terminal, you get some output:
Code:

~ $ /opt/linfati.com/GoogleLatitudeDaemon
Daemon: set_config
GoogleLatitude: set_login
GpsMaemo5: config
GpsMaemo5: refresh
GpsMaemo5 lat 52,389932 lon 4,836796 eph 537,630000
GpsMaemo5 lat 52,389932 lon 4,836796 eph 537,630000
GpsMaemo5: stop
Daemon: set
Daemon: set_config
GoogleLatitude: set_login
GpsMaemo5: config
GoogleLatitude: update
GoogleLatitude: login
GoogleLatitude: dologin
GoogleLatitude: update ok
"<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>
"
Daemon: ok
GpsMaemo5 lat 52,389932 lon 4,836796 eph 537,630000
^C


wurtel 2011-04-14 09:24

Re: N900 + Google Latitude
 
I tcpdumped the connection, and wireshark tells me:

POST /glm/mmap/mwmfr?hl=en HTTP/1.1
HTTP/1.1 404 Not Found

So, something there changed :(
Gluppy doesn't seem to work anymore either.

Eagerly awaiting an update for Linfati's daemon!

rlinfati 2011-04-14 09:42

Re: N900 + Google Latitude
 
- urlupdate = QUrl::fromEncoded("http://maps.google.com/glm/mmap/mwmfr?hl=en"
+ urlupdate = QUrl::fromEncoded("https://maps.google.com/glm/mmap/mwmfr?hl=en

but not sure if is working correctly...

EDIT: not working... i need migrate to the new latitude api :(

eladts 2011-04-14 17:43

Re: N900 + Google Latitude
 
For those of us who still want to update their location from the N900, google.com/latitude works fine. You just need to allow it access to the geolocation API. It seem to be doing "smart update" - the update rate changes according to your speed.

jpala16 2011-04-14 18:08

Re: N900 + Google Latitude
 
Quote:

Originally Posted by eladts (Post 988385)
For those of us who still want to update their location from the N900, google.com/latitude works fine. You just need to allow it access to the geolocation API. It seem to be doing "smart update" - the update rate changes according to your speed.

It runs fine... with what app?
In Opera seems impossible to me. It says my device is not compatible.
Firefox 4 has phony and it's easy to change to iPhone user agent, but it's sooooo slooooow and memory and cpu consuming.
On MicroB I use Hide User Agent (app on extras-devel) but I have an Android user agent (I like it the most) and it's quite unconfortable to change from a user agent to others and so on (it's perfect for setting a user agent or revefrting to original. Set/Remove/Change User Agent options only). With Android's user agent Google only offers the option to go to the Market or start the Android application of Latitude.
Macuco (on maemo repositories) would be the best option if it updated my geolocation. It seems like it doesn't.

¿So?

petur 2011-04-14 18:50

Re: N900 + Google Latitude
 
thinking this through a bit... Does this mean that up to now out google login was done in cleartext? I sure hope not :/

wurtel 2011-04-14 19:38

Re: N900 + Google Latitude
 
Quote:

Originally Posted by petur (Post 988440)
thinking this through a bit... Does this mean that up to now out google login was done in cleartext? I sure hope not :/

AFAIK it's like all the signing in at google: the login is secure, and the authentication token you get is used in plain text after that.

eladts 2011-04-14 19:40

Re: N900 + Google Latitude
 
Quote:

Originally Posted by jpala16 (Post 988405)
It runs fine... with what app?
In Opera seems impossible to me. It says my device is not compatible.
Firefox 4 has phony and it's easy to change to iPhone user agent, but it's sooooo slooooow and memory and cpu consuming.
On MicroB I use Hide User Agent (app on extras-devel) but I have an Android user agent (I like it the most) and it's quite unconfortable to change from a user agent to others and so on (it's perfect for setting a user agent or revefrting to original. Set/Remove/Change User Agent options only). With Android's user agent Google only offers the option to go to the Market or start the Android application of Latitude.
Macuco (on maemo repositories) would be the best option if it updated my geolocation. It seems like it doesn't.

¿So?

I just use MicroB without changing the user agent and the site works. It does use a lot of CPU, though.

rlinfati 2011-04-14 20:05

Re: N900 + Google Latitude
 
Quote:

Originally Posted by petur (Post 988440)
thinking this through a bit... Does this mean that up to now out google login was done in cleartext? I sure hope not :/

no, only your location.
the auth was made via https

jpala16 2011-04-14 21:39

Re: N900 + Google Latitude
 
Quote:

Originally Posted by eladts (Post 988470)
I just use MicroB without changing the user agent and the site works. It does use a lot of CPU, though.

Hell, I thought I had already tried that without success. Thanks, I'll try it again.

eladts 2011-04-15 02:16

Re: N900 + Google Latitude
 
Quote:

Originally Posted by rlinfati (Post 988005)
- urlupdate = QUrl::fromEncoded("http://maps.google.com/glm/mmap/mwmfr?hl=en"
+ urlupdate = QUrl::fromEncoded("https://maps.google.com/glm/mmap/mwmfr?hl=en

but not sure if is working correctly...

EDIT: not working... i need migrate to the new latitude api :(

Hi, can you estimate how long it will take to update the Google Latitude application?

Thanks!

wurtel 2011-04-15 13:57

Re: N900 + Google Latitude
 
Quote:

Originally Posted by eladts (Post 988385)
For those of us who still want to update their location from the N900, google.com/latitude works fine. You just need to allow it access to the geolocation API.

I once disallowed access to the geolocation API. How do I now enable access?

rlinfati 2011-04-15 14:27

Re: N900 + Google Latitude
 
Quote:

Originally Posted by eladts (Post 988716)
Hi, can you estimate how long it will take to update the Google Latitude application?

Thanks!

short answer: no plan...

eladts 2011-04-15 17:42

Re: N900 + Google Latitude
 
Quote:

Originally Posted by wurtel (Post 989084)
I once disallowed access to the geolocation API. How do I now enable access?

Just delete the file /home/user/.mozilla/microb/permissions.sqlite and restart. This will delete all the permissions granted/denied to web pages. Then when you will connect to Latitude a pop-up will appear, asking for your permission to use the Geolocation API.

wurtel 2011-04-15 19:56

Re: N900 + Google Latitude
 
Quote:

Originally Posted by eladts (Post 989244)
Just delete the file /home/user/.mozilla/microb/permissions.sqlite and restart. This will delete all the permissions granted/denied to web pages. Then when you will connect to Latitude a pop-up will appear, asking for your permission to use the Geolocation API.

Thanks... I do indeed see www.google.com registered in there.

After deleting that file, it still didn't do anything about my location... It took me a while to figure out that at some point I had deinstalled microb-geolocation as I thought I didn't need it anymore :o Now it's working again!

Aketzu 2011-04-16 13:20

Re: N900 + Google Latitude
 
I played around with the new api for a while and found a way to update my location. Someting like:

Code:

headers = [('X-ManualHeader', '{insert more cryptic string here}')]

qs = '[null,null,[null,[null,%f,%f],null,null,[],%f,"sensor_other","UserLocationFrontend",null,%d,null,null,null,null,null,null,null,[]],false]' % (lat*10000000,lng*10000000,acc,(int)(time.time()*1000))

open("https://www.google.com/latitude/b/0/apps/ssjson?t=UPDATE_USER_LOCATION_REQUEST", qs)

Although I didn't poke around from where to get proper value for that X-ManualHeader. (I got it by sniffing traffic what the web browser made...)

With proper manualheader value this script should work: http://aketzu.net/~akolehma/latitude-updater.py

eladts 2011-04-17 02:22

Re: N900 + Google Latitude
 
Quote:

Originally Posted by Aketzu (Post 989835)
I played around with the new api for a while and found a way to update my location. Someting like:

Code:

headers = [('X-ManualHeader', '{insert more cryptic string here}')]

qs = '[null,null,[null,[null,%f,%f],null,null,[],%f,"sensor_other","UserLocationFrontend",null,%d,null,null,null,null,null,null,null,[]],false]' % (lat*10000000,lng*10000000,acc,(int)(time.time()*1000))

open("https://www.google.com/latitude/b/0/apps/ssjson?t=UPDATE_USER_LOCATION_REQUEST", qs)

Although I didn't poke around from where to get proper value for that X-ManualHeader. (I got it by sniffing traffic what the web browser made...)

With proper manualheader value this script should work: http://aketzu.net/~akolehma/latitude-updater.py

Why bother everse engineering the protocol, when Google publishes an API at http://code.google.com/apis/latitude/ for that? Using a reversed engineered protocol will likely break in the future again.

Aketzu 2011-04-18 19:19

Re: N900 + Google Latitude
 
Quote:

Originally Posted by eladts (Post 990267)
Why bother everse engineering the protocol, when Google publishes an API at http://code.google.com/apis/latitude/ for that? Using a reversed engineered protocol will likely break in the future again.

Last time I checked there was no API available (~a year ago) :)

Well, updated my script (http://aketzu.net/~akolehma/latitude-updater.py) to use Google API Client for Python. Works for me at least.

niqbal 2011-04-18 19:55

Re: N900 + Google Latitude
 
Quote:

Originally Posted by rlinfati (Post 989101)
short answer: no plan...

so you are not going to maintain it? i thought you would be updating your application

wurtel 2011-04-19 12:04

Re: N900 + Google Latitude
 
Quote:

Originally Posted by Aketzu (Post 991317)
Well, updated my script (http://aketzu.net/~akolehma/latitude-updater.py) to use Google API Client for Python. Works for me at least.

Could you give a hint how to install the google stuff? I unpacked the tarball and did "python setup.py install" as root, but it still complains:

Code:

~ $ ./latitude-updater.py
Traceback (most recent call last):
  File "./latitude-updater.py", line 38, in <module>
    import location
ImportError: No module named location



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

vBulletin® Version 3.8.8