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)

ndi 2011-05-14 14:05

Re: N900 + Google Latitude
 
Yup, it goes like nuts now.

Only one complaint. It froze once, had to kill it and it left the daemon running even after subsequent restarts of app. I had to kill -9.

An option to killall or similar on startup or in options would be nice. Restart daemon or similar that kills all daempns and starts a fresh one.


Other than that, cooool.

MasterZap 2011-05-14 14:06

Re: N900 + Google Latitude
 
ok, two things:

First, the app intentionally sleeps the GPS between sampling to conseve battery.

Secondly, by DEFAULT, the daemon turns off when you shut the program down, unless you explicitly turn that on in the configuration... I set this as the default because some people are paranoid about location being shared "when they don't know it", so YOU gave to turn it on.

/Z

MasterZap 2011-05-14 16:42

Re: N900 + Google Latitude
 
Uh, it does... (or is supposwd to) kill/restart (all) daemon(s) when youbstart the app....

/Z

MasterZap 2011-05-16 05:41

Re: N900 + Google Latitude
 
1 Attachment(s)
Ok, there has been some requests for "latitude only" stuff, and not my whole "app".... find that part attached.

Let me explain the story.

Obviously, me posting my whole app as a "small modification to the script" was, of course, a bit of a joke. I'm a comedian like that, and anyone who knows my dry humor would attest to this ;)


What REALLY happened: I had been playing with my app for QUITE some time, as a personal tool to check in to multiple locations. I hadn't combined it with Latitude, nor did I have have an automatic update daemon yet.


When I was playing with this update script, I realized that (some of) that code also applied to my app... and.... that with some sugar and spice, it could almost become a useable app, that I release!


So I decided to package up the app, and as a bit of a joke, post it here as if "oh by the way, I made a small modification to the script", and hilarity would ensue as I had undersold and overdelivered.

All that was thwarted by my screwed up packaging, and the joke went stale and unfunny. *badoom-not-psssh*... oh well :/ Sorry.


So - if you are interested in anything MORE than just Latitude, I still recommend you try out "ZapLoc" (you are welcome in the ZapLoc thread for that).


However, several people were only really interested in the "smarter updating of latitude" but ONLY, so that code is attached here:


This script is DIFFERENT than before. Gone are the "--once" option. Gone is the idea to start it from "Alarmed". Instead, this code will - after receiving a "good enough" GPS sample - sleep the GPS (turn it off, basically, not consuming any power) for a set number of minutes, and then turn it on again. Basically, the app is doing nothing consuming zero CPU for this time, and then turns back on and gets a GPS sample again after some minutes.

How many minutes of what, you can set yourself in the variables with upper-case names in the beginning of the file, here:

PHP Code:

EPS               0.001  # Points within this many degrees are considered "same" and not sent
UPDATE_AT_MOST    1      # NEVER update more than this (minutes) even when moving
UPDATE_AT_LEAST   60     # NEVER update LESS than this (minutes) even when still (to avoid "stale points" in Latitude)
GPS_INTERVAL      5      # How often to "awaken" the GPS (minutes) 

ALSO, the script still requires the google api, but I have made a package of that, in extras/devel you can be root and do

Code:

apt-get install google-api-python-client
...to get that to happen.

Enjoy.

Or not. :)

/Z

jpala16 2011-05-16 07:13

Re: N900 + Google Latitude
 
I like your work, Zap. The app is quite childish, but it really works, and well. An easy way to check in, to edit the configuration by a friendly UI, and a daemon in the background.

The only thing I miss is the possibility to check friends location in the map for Latitude, but as it wasn't the aim of your work and the app is not only Latitude. So I understand it not to be there.

Thanks for your work! :D

MasterZap 2011-05-16 12:51

Re: N900 + Google Latitude
 
Oh I wanted to add friends too.... but the Latitude API doesn't support that ... annoying, surprising... and strange!!! What is the point of a latitude API that can only post your own location?

You CAN get to your own location history, though.

Hmm.

/Z

kurtyy 2011-05-17 07:55

Re: N900 + Google Latitude
 
Hi,

as i allready wrote, my location wasn't detected. not even the gps started when running the app. after manually installing python-location

PHP Code:

apt-get install python-location 

everything works fine.

regards

LQW77 2011-05-25 22:56

Re: N900 + Google Latitude
 
Is not loading friends and not able to detect my location on the map.
Tried that kurtyy says but Python-location is already the newest version, my X-Term said.

What's wrong?

rlinfati 2011-07-27 19:08

Re: N900 + Google Latitude
 
Hi

I update my latitude client after a lot of time to be compatible with the new google api and oauth \o/

Nokia N900 - Fremantle - QWdidget-Based
http://maemo.org/packages/view/googlelatitude/ v0.7 and up

Nokia N950 - Harmattan - QML-Based
http://mapdata.linfati.cl/googlelatitude-harmattan.deb

colm.smyth 2011-07-28 10:39

Re: N900 + Google Latitude
 
can you post some pics ?

Quote:

Originally Posted by rlinfati (Post 1059469)
Hi

I update my latitude client after a lot of time to be compatible with the new google api and oauth \o/

Nokia N900 - Fremantle - QWdidget-Based
http://mapdata.linfati.cl/fremantle-..._1-0_armel.deb

Nokia N950 - Harmattan - QML-Based
http://mapdata.linfati.cl/harmattan-..._1-0_armel.deb

Know bugs: the QML-based gui do not work in vertical mode :(



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

vBulletin® Version 3.8.8