Notices


Reply
Thread Tools
Posts: 94 | Thanked: 40 times | Joined on Jun 2010 @ Germany
#11
Originally Posted by benh_n900 View Post
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 ).
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.

Last edited by weißelstone; 2010-07-01 at 15:52.
 

The Following User Says Thank You to weißelstone For This Useful Post:
Posts: 44 | Thanked: 28 times | Joined on Mar 2010
#12
is it possible i'm not seeing the sql create file somewhere?
or how is the mysql db constructed?
 
Posts: 94 | Thanked: 40 times | Joined on Jun 2010 @ Germany
#13
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.
 
Posts: 287 | Thanked: 165 times | Joined on Oct 2009 @ The Netherlands
#14
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/
__________________
My personal website and my new home on damplein
 
Posts: 94 | Thanked: 40 times | Joined on Jun 2010 @ Germany
#15
My searching skills have become very bad. I didn't find any of the projects named here before 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.

Last edited by weißelstone; 2010-07-02 at 09:43.
 
Posts: 26 | Thanked: 2 times | Joined on Nov 2009
#16
Originally Posted by weißelstone View Post
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.
 
Posts: 94 | Thanked: 40 times | Joined on Jun 2010 @ Germany
#17
Originally Posted by Gerald101 View Post
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.
 
Posts: 287 | Thanked: 165 times | Joined on Oct 2009 @ The Netherlands
#18
Originally Posted by weißelstone View Post
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
__________________
My personal website and my new home on damplein
 
Posts: 287 | Thanked: 165 times | Joined on Oct 2009 @ The Netherlands
#19
Originally Posted by Gerald101 View Post
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.
__________________
My personal website and my new home on damplein
 
Posts: 26 | Thanked: 2 times | Joined on Nov 2009
#20
Originally Posted by robbie View Post
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:59.