![]() |
Re: N900 + Google Latitude
Quote:
a rest libreary in meego and maemo a oauth libreary in meego and maemo a json libreary in meego and maemo ... and i need time...... |
Re: N900 + Google Latitude
Quote:
Code:
~$ apt-get install python-locationCode:
# python latitude-updater.py -v |
Re: N900 + Google Latitude
Quote:
|
Re: N900 + Google Latitude
Quote:
Please download and try again (or just uncomment "print service.currentLocation... line). |
Re: N900 + Google Latitude
Quote:
maybe an improvement: according to the gps-icon in the status area, your script continuously access the gps-receiver. could you please modify it, so that it turns gps off, while waiting for the next update? |
Re: N900 + Google Latitude
Any updates on this? :-s
|
Re: N900 + Google Latitude
1 Attachment(s)
Quote:
That way, I can call alarmed to call the script every 10 minutes addomg the "--once" option, et voila.... also, it requires the config file latitude.dat to be in /home/user/latitude/ (probably not a very unix-y place to put it) ;) which you must create first by manually running it once and going through the authorization. After that, you can put it into Alarmed w. eg. a cron string "*/10 * * * *" or somesuch. /Z |
Re: N900 + Google Latitude
Quote:
Do you have step-by-step noob level instructions? Or can somebody please do a lovely front-end GUI for this? Thanks in advance... :) |
Re: N900 + Google Latitude
Quote:
After all, this script is really just (not meaning "just" in a way to diminish the workload of actually writing it) a combination of the google API sample code for latitude, and the python geolocation sample code, with some glue. Unfortunately I don't know Qt or any other python GUI binding than pygame (and I don't think you'd want an UI in pygame, LOL) so I'm not the guy to do it for SURE. Step by step? Well, what you need is #1 install the google latitude python API. This is basically done by: #1.1 Downloading it from the link http://code.google.com/p/google-api-...downloads/list #1.2 Unzipping it to somewhere (doesn't matter, next step copies it to where it "should go") #1.3 doing "python setup.py install" in that directory #1.4 I think you can now delete the directory/file you downloaded, since step 1.3 copied files to some magical place in python package heaven ;) #2 make sure python-location is installed (If not, do "apt-get install python-location" but mine was already installed) #3 Create /home/user/latitude and put my version of the script in it #4 Run it once first to do the authorization magic. It will ask you to go to a link which you (unfortunately) have to cut-n-paste into your webbrowser #5 Once done, the script should run. You can either sun it as is with "python zaps-latitude-updater.py", or put it into alarmed to be run e.g. every 15 minutes with the "--once" option, so it updates once and just exit, i.e. you can put in "python /home/user/latitude/zaps-latitude-updater.py --once" into AlarmeD Your mileage may vary, this was originally just a test and it worked and solved my personal problem. The modifications I did was supertrivial (a few lines of code), and I thank the guy who wrote the original version (Aketzu) onto which I simply piggyback my meager crappy mods. /Z |
Re: N900 + Google Latitude
anyone has the web interface (ex: list of friend ) working using any browser ?
i can fix the daemon... but not the gui :( |
| All times are GMT. The time now is 03:31. |
vBulletin® Version 3.8.8