yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] odie3:
I think this is something that I suggested before (but was shot down) when I noticed Pictures on some tags in Google Earth. I would think you could allow a photo to be uploaded when during a forced update but I am sure that would be a big client change (and export.php). MySQL can store files in the database and since photos are rather small it would be the best bet (rather than storing them in a folder on the web site). Then again they might have to be localized for the *.kml file to get access to them (and display them in Google Earth/Google Maps).
[Windows Mobile Apps and Games] _LEM_:
In Google Earth, all pictures seems to be stored with a company called Panoramio, right?. If I am able to interface that, I can upload the pictures directly there.
[Windows Mobile Apps and Games] SPYUK:
Center map based on KML file

I'm using jcleek's code below in a simple web page but need to find a way to center the map on the route in the KML file. Can anyone please help?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8"/>

<title>Google Maps JavaScript API Example</title>

<script src="http://maps.google.com/maps?file=api&v=2.x&key=Insert your key here" type="text/javascript">

</script>

<script type="text/javascript">

//<![CDATA[

var map;

var geoXml = new GGeoXml("http://path.to.your.kml.file");

function load() {

if (GBrowserIsCompatible()) {

var map = new GMap2(document.getElementById("map"));

map.setCenter(new GLatLng(0,0),0);

map.addControl(new GLargeMapControl());

map.addControl(new GMapTypeControl());

map.enableScrollWheelZoom();

map.addOverlay(geoXml);

map.setCenter(geoXml.getDefaultCenter());

geoXml.gotoDefaultViewport(map);

}

}

//]]>

</script>

</head>

<body onload="load()" onunload="GUnload()">

<div align=center>

<div id="map" style="width: 600px; height: 400px"></div>

<br>

Tracking information provided by <a href="http://xdaforums.com/showthread.php?t=340667" target="_blank">TrackMe</a>

</div>

</body>

</html>
[Windows Mobile Apps and Games] jcleek:
The install page asks for a number. You added px after your number. The install script sticks px on the end. So you ended up with 600pxpx.

Install the tables by hand using whatever MySQL tool you have. The problem is that most likely you did not specify a valid database or account with access to that database, and if that is the case you need to fix that in your config.php in order for any of this to work for you.

Nope. The program can't store any data because as you said the tables do not exist.
[Windows Mobile Apps and Games] jcleek:
LOL you stripped out about 75% of the code and then wonder why it won't work. The first thing I notice is that you are calling a function (getDefaultCenter) that isn't defined. Its great to try and learn something new and I am glad to try and help when you don't understand, but you have an example that works. When what you are doing fails refer back to what works. When I started this I knew absolutely zero about the google maps API. I have learned by reading the documentation and trying things out. Use my example and the Google documentation and I am sure you can figure it out.
[Windows Mobile Apps and Games] SPYUK:
I didn't strip any code out, I just used what you posted here

http://xdaforums.com/showpost.php?p=1661333&postcount=217

is there more code that i've missed?

Thanks
[Windows Mobile Apps and Games] jcleek:
Wow! That post is a whole 2 weeks old! Seriously, this development has been moving forward so fast I completely forgot about that. That is code to show a KML file. The instructions in that post state you need to change two things in it: google API key and path to the KML file you want to display. The code you posted has not changed either of those. Assuming you did change those and you actually got a map to show up, that is gode right from Google's API instructions and it does center automatically. If it isn't then there is something else wrong, like with the KML file.
[Windows Mobile Apps and Games] :
Artemis finally working

Hey staryon,

just wanted to let you know, that TrackMe is working on an Artemis device when using a virtual COM port. I've tried GpsGate 2.6 and created this virtual COM port 5. Using this, instead of the real port 4, TrackMe works just fine! :) Unfortunately, i only have a trial version, which will stop working in 14 days. But maybe you can find a solution (if you want to, and have the time), now that you know, that the Artemis is working with your program.

If I just could add one more thing to the wish-list (as x-mas is near ;) ), that would be the possibility to use a proxy server to upload the data (as someone mentioned before). With this o2 WAP flatrate (well, at least in germany), you are forced to use their proxy server and port. I don't know, if it is hard to code, but it would be just great if you're able (and willing) to add this feature.

Well, thanks so far for this great piece of software!
[Windows Mobile Apps and Games] AHDOnline:
Great Program

This is a really great addition to the GPS unit. I had something similar that was developed for S60 but TrackMe goes much further. Thanks for all your hard work, the install was smooth up and running on my server in 10 minutes.

You can guarantee a donation from me shortly.

Dave
[Windows Mobile Apps and Games] _LEM_:
That's great news! Thanks for letting me know. I am still researching on this, but so far I haven't found anything. I will post here any updates.

Added to the TO-DO list.
[Windows Mobile Apps and Games] wafwot:
This is true. However, the average is based on the speed in each row, which I believe is meters per second:

mysql> select avg(Speed) from positions where FK_Trips_ID = 110;
+-----------------+
| avg(Speed) |
+-----------------+
| 20.501043371919 |
+-----------------+
1 row in set (0.00 sec)

The ACTUAL average should be represented in MPH (or km/hour):

mysql> select avg(Speed*2.2369362920544) from positions where FK_Trips_ID = 110;
+----------------------------+
| avg(Speed*2.2369362920544) |
+----------------------------+
| 45.859527943627 |
+----------------------------+
1 row in set (0.01 sec)

My trip this morning was 90.97 miles. That calculates to 146,402.02368 meters.

I did the trip in 1 hour 58 minutes and 27 seconds. That's 7,107 seconds.

Doing the math, I averaged 20.5996938 meters per second (146402.02368 / 7107). That number is REAL close to the average on the Google Maps bubble.

This tells me the math for "average speed" in the popup bubble is not miles per hour, but meters per second.
[Windows Mobile Apps and Games] daesimps:
Staryon,

I have been trying with A-GPS disabled. This appears to have cured the problem with the incorrect data. I will keep an eye on it and let you know if anything changes (could be fluke as it was working for 2 weeks before problems developed).

Thanks for the help
[Windows Mobile Apps and Games] odie3:
Thank you staryon and jcleek for the google map custom icons! New code works great!
[Windows Mobile Apps and Games] _LEM_:
Thanks for letting me know.

However, I did the opposite. I turned on A-GPS but still haven't got any errors.

I will post here any news.
[Windows Mobile Apps and Games] Loewe538:
Why? Where I live is 6 meters below sea level. Badwater in Death Valley is even 80 m below sea level. You suggest a negative value is always wrong by labeling it Unknown... :confused:
[Windows Mobile Apps and Games] bcros:
Hello jcleek,

What about proxy features ?

Am i the only guy with a provider who bills GPRS coms ?

Thanks for all :)
[Windows Mobile Apps and Games] _LEM_:
At this moment we are all getting negative values even if we are not below sea level. When this happens, I don't really know how to calculate the right altitude.

It doesn't make sense to show a value if TrackMe doesn't know if its wrong! That's why I have decided to show that message until I find a solution for this.
[Windows Mobile Apps and Games] _LEM_:
Please check post #868

Regards
[Windows Mobile Apps and Games] _LEM_:
I just discovered something interesting.

The current version of TrackMe already allows you to show images!!

When you force an update, you can type this in the comments field (this is just an example):

<img src="http://www.esfi.org/workplace/images/TestBeforeYouTouchCARD.jpg">

Now, if you go to Google Maps or Google Earth, and you click on a pushpin, the image will be displayed.

;)
[Windows Mobile Apps and Games] odie3:
wow, that is pretty cool - I'll give it a try. Now to tie that into a photo upload where you do not have to put in a path everytime. ;)

Man, I wished I could copy/paste into the comment field!
[Windows Mobile Apps and Games] jcleek:
Awesome. Can you tell me what the math should be to convert the number I have to MPH?
[Windows Mobile Apps and Games] odie3:
Well, here we go! Kind of still need a Picture area and Comment area.

Also, using the img size is important too:

<img src="http://yoursite.com/trackme_location/picture_location/picture_name.jpg" height="76" width="102">
[Windows Mobile Apps and Games] wafwot:
jcleek, check your PM. I sent you a link to the source that's working for average mph, and another PM of the changes I made.
[Windows Mobile Apps and Games] pctec919:
Nice

great app nice tracking tool :) :)
[Windows Mobile Apps and Games] jcleek:
A picture option would be cool. The custom icon should be the camera if a photo is present.
[Windows Mobile Apps and Games] jcleek:
Thanks for the math Wafwot. I have sent the updated file to Staryon that fixes the average speed calculations.
[Windows Mobile Apps and Games] jcleek:
Actually a better option might be to just have a link to a photo opening in a new browser window. That or a thumbnail photo that opens in a seperate window when clicked...
[Windows Mobile Apps and Games] _LEM_:
Files Updated.
[Windows Mobile Apps and Games] odie3:
Agreed, I was thinking about that on the way home. In Google Earth that is how it works, you get a thumbnail and then click to get a larger version.
[Windows Mobile Apps and Games] _LEM_:
funny... I was thinking the same on my way home too. :)

We'll see how I implement this...
[Windows Mobile Apps and Games] odie3:
While its pretty cool that you can put html code in the comments field to get a picture to work, you should really think about closing that. While I am not 100% sure, I believe allowing raw html code to be put into your SQL tables is a bad thing. While for me (and others that are using our own server) we pretty safe since we are the only ones using it but for your web site I believe you are opening yourself to possiable trouble from some a**wipe hacker.

So, with that said I am hoping you are able to implement it but in a safe way. :)
[Windows Mobile Apps and Games] wafwot:
I've got a 2.5+ hour commute on the way home... and I, too, was thinking about this on the way home (however, I spent most of the time configuring OpenVPN).

odie3 is right. Nefarious individuals will just look for ways to exploit the code... That aside, there should be no problem storing html in a mysql database. The code will need to be escaped. There's a functions in PHP 4 called htmlspecialchars and htmlentities that helps with that. However, while the 'reverse' function html_entity_decode exists in PHP 4, htmlspecialchars_decode is only available in PHP 5.

Perhaps an easier way would be to allow photos to be shot with the phone's camera, uploaded to the trackme directory (similar to the kml file) in a new subdirectory called "images" (for example). Simply store the image name in the Comments colum of the database (perhaps prefaced with the username) and a boolean flag (to denote that the comment is an image). The PHP code would do the rest. On upload by TrackMe, simply create a thumbnail from the original. The html would be "hard coded" in the index.php file to add the thumbnail image and anchor link IF the position is flagged as an image point.

I know this is a lot, but it's actually not that difficult on the web server side. The hard part would be staryon's deal in the TrackMe program.

I'd be willing to help out with the PHP code at least.
[Windows Mobile Apps and Games] Jamitilt:
Over the air cab files?

:) Is it possible to get the cab files here at XDA site, that will download over the air straight to phone? Jami J
[Windows Mobile Apps and Games] jcleek:
The very first post has a link to the cab file. You should be able to click that link from the phone and install it over the air.
[Windows Mobile Apps and Games] daesimps:
Sorry - false info. Just had an issue again today. It was only the first point of the trip though, but it was out by about 2 miles.

It definitely can't be related to the turning on and off of the GPS in between points though, as it was the 1st point after clicking "start".

Will have a re-think as to what it could be.
[Windows Mobile Apps and Games] jcleek:
Actually I think the problem is that there isn't a true "fix" before the location is being recorded. Every time this has happened to me it was close (within 100 miles) but not accurate. If I don't turn off the GPS it is just fine. The difference? There is a huge pause between the time it starts getting a fix and the location gets recorded if the GPS is turned off.
[Windows Mobile Apps and Games] while(!(linux)){wm}:
Mine has never been off by more than 20 meters or so, but this still is pretty far, considering that if you let it take only a few more samples it will be a LOT more accurate. Maybe staryon should look into an option to set how many samples (or seconds) to wait after the first fix to record the data?
[Windows Mobile Apps and Games] _LEM_:
The GPS data has a field that tells you if the information that you are reading is a valid fix or not. I always discard fixes if this value is not true so I don't think I need to do that.

Before I started writing this program, I remember that I got weird fixes with TomTom one day while I was walking in Baltimore. My position was bumping miles aways like crazy for a couple of minutes (I had no tree cover or buildings around)

I tried to find some information when this thing happened to me, and it seems that the signal can be affected by other sources, like antennas or high voltage towers.

Not sure if this was the real reason...
[Windows Mobile Apps and Games] _LEM_:
Thanks for the information!
[Windows Mobile Apps and Games] _LEM_:
Could you post that invalid entry from the gpspositions.txt file?
[Windows Mobile Apps and Games] daesimps:
[28/11/07 07:29:03] $GPGGA,072950.9,5343.846608,N,00125.795954,W,1,02,25.5,107.0,M,,,,*2B|53.7307768|-1.42993256666667|107|28/11/07 07:29:03

[28/11/07 07:32:44] $GPGGA,073331.0,5346.079062,N,00122.449432,W,1,04,2.4,129.0,M,,,,*13|53.7679843666667|-1.3741572|129|28/11/07 07:32:43

[28/11/07 07:36:29] $GPGGA,073716.0,5346.078702,N,00122.447767,W,1,05,4.2,119.5,M,,,,*18|53.7679783666667|-1.37412945|119.5|28/11/07 07:36:29

[28/11/07 07:40:00] $GPGGA,074046.0,5345.842712,N,00122.708926,W,1,06,2.2,90.0,M,,,,*2D|53.7640452|-1.3784821|90|28/11/07 07:39:59

[28/11/07 07:43:40] $GPGGA,074427.0,5346.206875,N,00124.665388,W,1,07,2.2,112.0,M,,,,*11|53.7701145833333|-1.4110898|112|28/11/07 07:43:39

[28/11/07 07:47:21] $GPGGA,074806.8,5345.333147,N,00126.577804,W,1,06,2.0,71.5,M,,,,*25|53.75555245|-1.4429634|71.5|28/11/07 07:47:20

[28/11/07 07:51:01] $GPGGA,075147.0,5345.343057,N,00128.149089,W,1,06,3.2,118.0,M,,,,*15|53.7557176166667|-1.46915148333333|118|28/11/07 07:51:00

[28/11/07 07:54:41] $GPGGA,075528.0,5345.762724,N,00129.502985,W,1,06,3.8,119.0,M,,,,*18|53.7627120666667|-1.49171641666667|119|28/11/07 07:54:40

[28/11/07 07:58:22] $GPGGA,075907.9,5346.452594,N,00130.769926,W,1,07,5.0,89.5,M,,,,*26|53.7742099|-1.5128321|89.5|28/11/07 07:58:21

[28/11/07 08:02:02] $GPGGA,080249.0,5346.861634,N,00131.608998,W,1,07,2.3,82.0,M,,,,*29|53.7810272333333|-1.52681663333333|82|28/11/07 08:02:01

[28/11/07 08:05:43] $GPGGA,080629.0,5347.431398,N,00132.412891,W,1,07,3.0,100.5,M,,,,*1E|53.7905233|-1.54021485|100.5|28/11/07 08:05:42

[28/11/07 08:09:23] $GPGGA,081009.0,5347.737700,N,00132.556287,W,1,08,1.6,112.0,M,,,,*1A|53.7956283333333|-1.54260478333333|112|28/11/07 08:09:22

It's the first entry which is incorrect. I was actually at the location which is shown by the second entry (which is absolutely spot on)

Hope it helps.

Thanks

Daesimps
[Windows Mobile Apps and Games] sburst:
Hello everybody

I encounter a problem to see on my web site my personnal trackme page

see : http://img138.imageshack.us/img138/9049/trackmeoj1.jpg

the map from google is very small.

but with my pda (htc touch and external gps) all functions are ok

thanks for your help
[Windows Mobile Apps and Games] Jens-:
First of all I realy love the app. Works like a charm.

Second, I tried to upload them to my own webserver, and so far so good I get the data on the server but when I browse to the webpage I only see a bit of google maps.

http://tracking.dehaese.eu/trackme/

Suggestions anyone? Followed the steps from the readme, nothing more nothing less.
[Windows Mobile Apps and Games] sburst:
Same problem !!!, i'm from France
[Windows Mobile Apps and Games] jcleek:
Mentioned several times... Check your config. Is your width and height set to 400pxpx by 600pxpx or something like that? pxpx is the problem. Your sizes need to be numbers and then px. The problem is caused by not following the install sample numbers.
[Windows Mobile Apps and Games] Jens-:
Should've searched first but works fine now.

Changes pxpx to px.

Thx
[Windows Mobile Apps and Games] _LEM_:
[28/11/07 07:29:03] $GPGGA,072950.9,5343.846608,N,00125.795954,W,1,02, 25.5,107.0,M,,,,*2B|53.7307768|-1.42993256666667|107|28/11/07 07:29:03

That number shows the number of satellites that you are using to get that location. As you can see, this is the only entry that uses only 2.

It would be great that if you get more errors, check that number again, just to see if it is related with the number of satellites. If that's the problem, I can add an option that discards positions if the number of satellites is less than a certain value that you choose.
[Windows Mobile Apps and Games] jcleek:
That sounds like the exact solution.
[Windows Mobile Apps and Games] odie3:
I was thinking the same thing, do not take a reading if you do not have X number of satellites locked (say at least 4 or make it settable).

Also, found that this works for pictures in the comment field!

<a href="http://yoursite.com/trackme_location/pictures_location/picture.jpg">
<img src="http://yoursite.com/trackme_location/pictures_location/picture.jpg" alt="Out Side of Office" width="102" height="76" border="0" />
[Windows Mobile Apps and Games] _LEM_:
Here are the other positions that daesimps was having problems. In this case, he was having problems when the position was calculated with 3 satellites.
[Windows Mobile Apps and Games] _LEM_:
Cool!

PS: How long did it take you to type all that on your PDA? :p
[Windows Mobile Apps and Games] daesimps:
I will keep an eye on it and see if I can see any correlation between no of sats and positioning errors.

Thanks for the analysis - I'd never have spotted that.:)
[Windows Mobile Apps and Games] wafwot:
Making the readings more accurate

Kalman filters seem to be the key to making GPS a little more accurate, for lack of a better phrase.

Doing some googling on my commute (I drive on Fridays), I came across this URL:

http://www.springerlink.com/content/2ndtxgvrmu89utmg/fulltext.html

And the code....

http://gps.aau.dk/~borre/easy/ (look for the easy.zip file)

The math is beyond me, I'm only a simple DNS administrator for an Internet company. I got lost just browsing the page. But all the "big players" in GPS programs seem to use Kalman filters and 5 second averages. I just don't have a CLUE.

Oh, if only Charlie Eppes had a Kaiser... :D
[Windows Mobile Apps and Games] _LEM_:
I went ahead and I just added the 'Minimum required satellites' feature!

This new version also has an option to clear the trip name when you exit the program.

It's ready to download!
[Windows Mobile Apps and Games] _LEM_:
man... thanks for the information but that's too much for me! :rolleyes:
[Windows Mobile Apps and Games] wildorchid:
Date and Time Display Contribution

Hi guys,

I'd like to contribute a little add on to the server index.php in order to display the date and time from the Timestamp more flexible e.g. for us Europeans.

We use dates like this: 28.11.2007 15:30

At the very end of the index.php before the ?> add the following function:

d.m.Y could be changed to to anything that the php date() function allows for example m/d/Y etc.

And finally go to .html and change all instances of:

Hope you like it.
[Windows Mobile Apps and Games] _LEM_:
That's great, wildorchid! I will add it to my website.

Thanks
[Windows Mobile Apps and Games] wafwot:
That function is completely unnecessary. PHP has a built-in function called strtotime that will convert the date as it's stored in the database.

Just replace any instance of:

Time: </b>" . $row['DateOccurred'] . "

with this:

Time: </b>" . date("m.d.Y H:i:s",strtotime($row['DateOccurred'])) . "

I was thinking it would be nice to have the date/time format stored in the config.php file, and maybe a new <select> pulldown with several choices to choose from on the install.php page:

$html .= "<select name=\"dateformat\">";
$html .= " <option value=\"F j, Y, g:i a\">" . date("F j, Y, g:i a") . "</option>";
$html .= " <option value=\"d.m.Y H:i:s\">" . date("d.m.Y H:i:s") . "</option>";
$html .= " <option value=\"m/d/Y g:i a\">" . date("m/d/Y g:i a") . "</option>";
$html .= "</select>";
[Windows Mobile Apps and Games] _LEM_:
I wouldn't put that in the install.php file. A database can be accessed by people all over the world (which is my case). That should be selectable by user, or even better, it should be configured automatically based on the browser settings.
[Windows Mobile Apps and Games] wafwot:
The install.php would only allow you to select a format for the date and store it in the config.php file. The index.php file would simply read the preferred format from the config.php file to display the date. There's no more interaction with the database than already exists in the index.php file.
[Windows Mobile Apps and Games] _LEM_:
Sorry, I think I wasn't clear.

What I mean is... If I choose MM/DD/YY, when somebody from Spain access to the page will see that format, instead of DD/MM/YY which is what he's expecting to see.
[Windows Mobile Apps and Games] jcleek:
Ok, I made some changes to include this code. Also I moved the date format to the config file. I really want to keep people out of mucking with the index. So I added this to the bottom of config.php

// Date Display Format
// Must be valid php date format (http://us.php.net/date)
$date_format = "d.m.Y H:i:s";

I have emailed a new index, config and install to Staryon to have it posted.
[Windows Mobile Apps and Games] jcleek:
After I posted that last post I saw wafwots posts. I went back and dumped the function and set it up to use the native php command. Starton I posted the zip again for you when you get a chance to download it. All three files are there for the server Zip.

The only changes are the additional lines in the config.php, setup info in the install.php and of course the index.php.

As for reading the system date/time settings I am not aware of any way to do that. Remember, there will be windows, mac and *nix users that use all types of browsers with this so any potential solution needs to remember that.
[Windows Mobile Apps and Games] _LEM_:
Files updated.