maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] pygeotrack: a simple N900-tracking client/server (https://talk.maemo.org/showthread.php?t=57425)

weißelstone 2010-07-01 15:46

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
Quote:

Originally Posted by benh_n900 (Post 735069)
see http://talk.maemo.org/showthread.php?p=627494 and feel free to use http://www.whereismydevice.com if you want to connect your scripts to it to add any of this functionality!

Cheers,

Ben

I'll have a look at it. The client side is not that mature yet as I'm more used to php than python.

@all: The server got many improvements. The settings and addresses are now in an extra file so that working with the svn gets easier (as I don't want my SQL settings on the SVN :p).
Some easy Javascript Google Map is also now supported and also a page which creates the networked kml file for Google Earth which fetches the recent data from the server.
Source is at: https://garage.maemo.org/projects/pygeotrack/

By the way: At the moment this is more for the fun of "nearly" real-time tracking of the device (e.g. let the family know when I'm at home).
The lost-phone features will come later.

ny-hardcore 2010-07-01 21:51

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
is it possible i'm not seeing the sql create file somewhere?
or how is the mysql db constructed?

weißelstone 2010-07-01 22:44

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
I forgot about the file as I always create tables by hand.
I'll add one tomorrow. In short its an int called id, floats for lat, lon, bear and speed, datetime for date and varchar for the key. You can get the names from the .php files if you need it faster.

robbie 2010-07-02 06:33

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
I'm working on a simular (but different purpose) solution with Phil. Phil created a client and i created a server (php and db). It allows you to track a route while on the go. The logged route can be plotted on Google maps (or any other service that supports KML).

We don't have any release yet but you can get all the current files from SVN:

https://garage.maemo.org/projects/livegpslog/

weißelstone 2010-07-02 09:31

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
My searching skills have become very bad. I didn't find any of the projects named here before :p Your's, robbie, seems to be very similar. I also implemented tracks (either all points in the db or the last n ones) and it works good but if you enable the TimeStamps in the .kml real-time tracking doesn't work anymore (as Google Earth sets the timeline to the current view and won't display the new points by itself). If you are using TimeStamps (didn't check the source yet) did you find a solution to this?

EDIT: I just did a co on your svn. Seems you didn't make much with the kml yet, too. Just a line. So if you open the kml file it will display the whole track, right? This was one of my problems, I wanted the whole track but focus and zoom on the current position (just think you drive 130km on a motorway, then enter a city and someone wants to see where in the city you are, he sees the whole track and if he zooms in it will zoom back every 10 seconds to the whole track). The whole camera system in the .kml format is still a bit strange to me.

Gerald101 2010-07-02 10:52

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
Quote:

Originally Posted by weißelstone (Post 734615)
This was my first attempt. It works great but was not often enough for me (as my phone does only connect every hour or so for emails when on 3G and I want it to work as real time tracking too if desired). This will be a config option when I get to the GUI (tomorrow I hope).

May I suggest a way to do both? If there is no network connection store the points locally with a time stamp. Upload them when there is a network connection. I know this adds quite a lot of work.

weißelstone 2010-07-02 11:08

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
Quote:

Originally Posted by Gerald101 (Post 738415)
If there is no network connection store the points locally with a time stamp. Upload them when there is a network connection.

I'll have a look at it at some point.

By the way: I fixed the problem with the viewpoint when using track by using a LookAt for the whole file with the coordinates of the last position. This way Google Earth follows the device in real time but you can also see the track if you want.

robbie 2010-07-04 19:23

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
Quote:

Originally Posted by weißelstone (Post 738326)
Just a line. So if you open the kml file it will display the whole track, right?

You're right but that's on purpose. I'm mainly using it to display the progress while walking long distance marches (40 km and more a day) and people are not only curious where you are but also what progress i've made. They can zoom in any time.

I've also added a marker thats clickable and then shows you the kilometers i've walked. Google automatically zooms in on the marker once you've clicked.

If you want real-time (or near real time) tracking, you'll have to use ajax to add points and move the marker.

Edit: now i see that you solved it already :)

robbie 2010-07-04 19:26

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
Quote:

Originally Posted by Gerald101 (Post 738415)
May I suggest a way to do both? If there is no network connection store the points locally with a time stamp. Upload them when there is a network connection. I know this adds quite a lot of work.

There are some apps that log the track locally and allows you to upload it later (i believe manually only).

Phil (the author of the client we're working on) added some caching of points. We store 10 points and then upload. Theoretically it allows you to store more points when not connected but i'm not sure if it's foolproof.

Gerald101 2010-07-05 02:02

Re: [ANNOUNCE] pygeotrack: a simple N900-tracking client/server
 
Quote:

Originally Posted by robbie (Post 740577)
There are some apps that log the track locally and allows you to upload it later (i believe manually only).

. . . .

If you find one that does it automatically let us know. I tried manual upload today and it is too cumbersome.


All times are GMT. The time now is 11:51.

vBulletin® Version 3.8.8