yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] _LEM_:
Thanks for that.

Yes, I think a separate file is better so we keep TrackMe's core separated from user plugins.

I'll take a look at the URL later.

Regards
[Windows Mobile Development and Hacking General] faeArai:
Hey folks,

how about starting a project on github and coding cool stuff using a php framework like cakephp or php on trax? We could extend trackme-web-app step by step including nice ajax features and so on!

Or is there such a repository already on the web?

cheers
[Windows Mobile Development and Hacking General] heyk:
trip management

i have problems to manage my trips on my own server. get message;

undefined index : tn in D:\www\...\...\..\request.php on line 66 result:0|5|2009-02-23 22:21 . i can't get it refreshed or get the existing from my server.:confused:
[Windows Mobile Development and Hacking General] illflux:
I have a feature request for the viewer. Would it be possible to add a drop-down menu on the right side (along with "trip" and "filter") and have it list the various kinds of google icons that one can select when forcing an update? For example, I was out scouting some photo locations today and marked a few spots (with the forced update, using the Google "camera" icon) that I would like to revisit when I have a little more time. I had another spot that I thought would make a good bike ride, so I marked it with the "bike" icon. I'm uploading my data to my own server using the "Official release." I was thinking that when I got back to my computer, I could view my page and filter by points denoted as "camera" or "bike," but then realized that option wasn't available. I've done a little php / sql wrangling, and I think I could figure out how to do it, but before I dive into the code head-first, I thought I'd bring it up here in case it's something that could be added to the official version.

It would be nice if that could be added in addition to the other filters, i.e. view the points marked with "camera" only on a certain trip or within a certain date range, etc.

And it may be even better to present all the Google icon options as checkboxes, rather than a drop-down menu. That way, the user could have it show as many or as few of the categories as they want. Kind of like layers in Google Earth.

Thank you for the software / viewer, they're awesome!
[Windows Mobile Development and Hacking General] _LEM_:
Yes, I think it's a good idea. I would like to see that.

At this moment, I'm not sure if anybody is working on rewriting the web viewer. There were some people interesting in doing that but I haven't heard from them since then.

I will add that to my to-do list in case I'm the one rewriting the viewer so I can add that feature.

Regards
[Windows Mobile Development and Hacking General] khaytsus:
Does the date range work for anyone? I never have quite figured that one out..

Here's the use case that makes sense to me, but perhaps the author of the code was going another direction?

User wants to limit the range on the current trip. This could be a specific trip, or All trips. In the case of All Trips, ideally the date setting would persist so one could set the date, then select All, and only get the datapoints within that date range.

Does the date range work for anyone? I typically use Firefox in Linux, but I've tried it in IE on Windows at work too.
[Windows Mobile Development and Hacking General] _LEM_:
I use Firefox and I think it works fine to me.

First I select a trip and the "Date From" and "Date To" are populated automatically. Once I have that I can change those values myself in case I want a shorter interval.

Is that what is not working for you?
[Windows Mobile Development and Hacking General] khaytsus:
The dates change, but the interval does not. Maybe I'm doing it wrong?

I have a trip, 16:45 to 18:15, say I want to see 16-17.. so I click the calendar at the bottom, drag the hours/minutes to 1700. I've tried clicking the x in the calendar popup, tried hitting enter, tried clicking "Show" again, tried adjusting the time, then clicking the date, etc.. In every case, it just refreshes the full trip, date sets back to what it originally was, all points are still shown.

Okay, very odd, I *can* do it on your server. Is there something server side which is needed?
[Windows Mobile Development and Hacking General] _LEM_:
That was going to be my next question, if it works on mine.

In that case I cannot help you too much. Hopefully some other people using their own servers will be able to give you more information.

Sorry about that.
[Windows Mobile Development and Hacking General] khaytsus:
I got a bunch of undefined variables in relation to dates and location in my Apache logs when I do this, I'll have to investigate some.

Anyone else with their own servers, can you try limiting the date range and seeing if it works for you? Only thing I can think of that'd be different is PHP version. I'm running 5.1.6 on CentOS 5.2.
[Windows Mobile Development and Hacking General] _LEM_:
khaytsus,

I just noticed something.

Let's suppose I select Trip A whose date range is 2008-11-17 09:00:59 - 2008-11-17 09:52:22

Now, if I change the 'date from' to 2008-11-17 09:01:20

and click on SHOW, the 'date from' is automatically updated with the date and time of the closest available position for the date that you entered.

I didn't have noticed that, but I think it looks very nice.
[Windows Mobile Development and Hacking General] khaytsus:
Yup, that does look nice.. On yours.. :confused: I'm going to poke into it sometime, not sure if it's a PHP difference or something else.
[Windows Mobile Development and Hacking General] bwired:
Uploading images With asp

Hi

My ASP upload (posted earlier) is working good, this is only handling "upload"

I now want to go on with uploading images.

If i do that I see that I receive a

"findclosestpositionbytime" and that I need to to return two fields like ID and dateocccured in asp that is for example this:

Response.write("Result:0|1284|2009-02-27 13:49:13")

I still get a "Uable to get postions" on my cellphone

Can somebody tell me how this flow goes before the uploading of the selected image file is done.

I see there is also "updateimageurl" but I dont know either how to trigger this from my cellphone.

I searched the forum as good as I could but did not find this info

hopefully you can help me

regards Pieter
[Windows Mobile Development and Hacking General] _LEM_:
This is what I do inside TrackMe:

if (ReadWebPage(cURL, 1000, ref cRes))
cRes = "Unable to get positions:" + Comm.LastError;
else if (cRes.IndexOf("Result:1") != -1)
cRes = "Incorrect Password for user";
else if (cRes.IndexOf("Result:2") != -1)
cRes = "User didn't exist and system was unable to create it.";
else if (cRes.IndexOf("Result:3") != -1)
cRes = "You need to specity a username and password for the user.";
else if (cRes.IndexOf("Result:4") != -1)
cRes = "Unable to connect to database";
else if (cRes.IndexOf("Result:5") != -1)
cRes = "In order to connect to this server you need to update your client.";
else if (cRes.IndexOf("Result:6") != -1)
cRes = "No date specified.";
else if (cRes.IndexOf("Result:7") != -1)
cRes = "No positions for user found";
else if (cRes.StartsWith("Result:0|"))
{
try
{
cRes = cRes.Replace("Result:0|", "");
if (cRes == "")
cRes = "Result empty";
else
bError = false;
}
catch (Exception)
{
cRes = "Error processing result (" + cRes + ")";
}
}
else // Unknown answer. Offline?
cRes = "Unable to get positions (" + cRes + ")";

If it goes to the first 'unable to get positions' it means that the server probably timeout, but if it went to the last one it's because it received an answer but it didn't fall in any of the if statements.
[Windows Mobile Development and Hacking General] bwired:
Ok Thanks that is working!

but now i get an error uploading picture. I have write permissions on the directory, even try to create the "pics" directory myself.

thr image file is 800kb, is that to much?
[Windows Mobile Development and Hacking General] _LEM_:
The size should be ok. TrackMe resizes the images before uploading them.
[Windows Mobile Development and Hacking General] bwired:
ang parameter not receiving with a=upload

Hi again,

I see that there is also an ANG parameter for the a=upload.

I'm not receiving this from trackme on my server.

I have the latest version, is there a screen/option I shoud active in the trackme software?

Thanks again
[Windows Mobile Development and Hacking General] _LEM_:
I don't know why you don't receive it. It's uploaded when it's available from the GPS. It's taken from the $GPRMC command.
[Windows Mobile Development and Hacking General] bwired:
Can you post the piece off code where the error "Error uploading picture" is generated? The sreens say's first Uploading picture..... and then I get the error.

Perhaps its not possible to upload to an ASP webserver, or is it just HTTP and all should work? Hope you can help me further, im stuck right now
[Windows Mobile Development and Hacking General] _LEM_:
Sorry bwired, but I cannot publish that.

Basically I just post a form using a HTTP call. The body of that form contains the image.

You probably know, but I retrieve the image inside the upload.php

file.

if ( $action =="pic" )
{
if ( !file_exists("pics") )
mkdir("pics");

$newname = urldecode($_GET["newname"]);

$ext = strtolower(substr(strrchr($newname, '.'), 1));
if ( $ext != "jpg" && $ext != "bmp" && $ext != "gif" )
{
echo "Result:7";
die;
}

$myfile = "pics/".$newname;

if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], "./$myfile" ))
{
echo"Result:0";
//print_r($_FILES);
die;
}
else
{
echo"Result:6";
//print_r($_FILES);
die;
}
}

I think it should work fine in ASP. TrackMe doesn't know anything about the server type on the other side. There has to be way of retrieving the information from the asp page (something similar to $_FILES that gives you the name of the file being uploaded)
[Windows Mobile Development and Hacking General] bwired:
No problem

this info helps me a lot :-)

thanks again
[Windows Mobile Development and Hacking General] bwired:
pic upload asp

Hi

ASP is not so strong as PHP :-(

The move_uploaded_file PHP command is not easy to convert to classic asp.

There is a lot stof to upload from asp but lot's of codelines and all based on certain input.

Is it possible for you to only display the dot.net command that is calling the webserver for receiving the upload. That way I can make it possibly work.

Tried to whole evening and night but no luck this far.

Thanks Pieter
[Windows Mobile Development and Hacking General] _LEM_:
The move_uploaded_file function just moves whatever has been uploaded to a different place.

There has to be something in ASP that give you access to whatever is being uploaded. Once you have that, you can copy it

to a different place.

Basically I send a form containing the picture. It's really nothing specific to .net because you can do the same from any other place.

Actually I remember testing all this using a web page instead of from TrackMe.

Here is a example form used to upload files to a server when used from a web page.

I think the one that I used for testing was very very similar to this.

<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>

More info here:

http://www.w3schools.com/PHP/php_file_upload.asp

Hope it helps.
[Windows Mobile Development and Hacking General] jabberman:
User Didnt exist

I installed Trackme on my tilt and then grabbed the server.zip from luisespinosa.com and installed it on one of my servers. I start trackme on my phone and get a gps location, then when it tries to upload I get an error saying User didnt exist and the system was unable to create it.

Check you are entering a username and password in the account information.

Which I have done.

I uploaded a screenshot here:

http://www.mcj247.net/error.jpg

I would like to enable live tracking but just cant get any of it to work. Any ideas?

Jim
[Windows Mobile Development and Hacking General] _LEM_:
Did you check that all your tables have been created correctly?
[Windows Mobile Development and Hacking General] jabberman:
Good Call there. I should have known to look. I manually imported the tables using phpmyadmin. Doing another test now.

Thanks.
[Windows Mobile Development and Hacking General] jabberman:
Now it tells me Invalid Username/Password combination. I just set my name and a simple password for a password.

Jim
[Windows Mobile Development and Hacking General] jcleek:
I contacted mcross about his version 2 of the web interface. I am sure he will be posting again here soon. He knows we are interested in his version 2.0 work.
[Windows Mobile Development and Hacking General] turtle2472:
Great! He had some great improvements going there. You totally retired from building the web interface still?
[Windows Mobile Development and Hacking General] jcleek:
I can write code, but I am not much for ideas. I offered mcross help if he needs it.
[Windows Mobile Development and Hacking General] jcleek:
I added the new Google 3D controls:

http://www.getcis.com/trackme/
[Windows Mobile Development and Hacking General] turtle2472:
I used to live off of Beacon Hill! Closer to Bucknell Elementary School actually. It's where I grew up. :)

Oh, nice buttons/controls. :D
[Windows Mobile Development and Hacking General] khaytsus:
I'd *love* to be able to see Street View in TrackMe's interface. I'm sure it's not complicated, but I never could quite figure it out. Ideally like the way Google Maps works, you drag the little guy to the location then you can see it.
[Windows Mobile Development and Hacking General] jcleek:
Funny, I am actually trying to figure that out myself...
[Windows Mobile Development and Hacking General] bwired:
OK

got it working now! its now uploading images to my ASP server!

asp code

<%@ Language=VBScript %>

<!--#include file="class_request.asp"-->

<%

Dim objRequest

sFile = Request.QueryString("newname")

Set objRequest = New ProxyRequest

objRequest.SaveItem "uploadfile",Server.MapPath("pics\" & sFile)

response.write("Result:0")

%>

see also the attachment (rar) for the include file:

Some questions:

the uploaded image is being resized (good thing) but its sized not that good.

see the attach image, image is to high so for example cars and people are of shape!

Is it possible to adjust the picture upload screen, there is enough room to make the list of the images (name status) longer so you can handle this better.

make a select all, deselect all button

Make 3 buttons instead of the option, so its faster to upload.

Upload image on the mainscreen (below) as icon would even be better :-)

Just some thoughts

thanks again

Pieter
[Windows Mobile Development and Hacking General] _LEM_:
Great! That was really one of the most complicated parts of the program and let me tell you that the client part to upload images was really a pain!

Yes, I know that limitation about resizing images. I should check the aspect before doing it.

Thanks for the suggestions too.

Regards
[Windows Mobile Development and Hacking General] bwired:
I Believe you!

Payed off because the uploading of images is really great and works perfectly!
[Windows Mobile Development and Hacking General] stinky180:
hey thanks staryon for creating trackme. and to the many authors and contributors to the web based viewer for trackme. im not sure if this is the place to put in a request so please excuse me...

1) is it possible to add detailed trip data to the side of the map. things such as; max speed, max altitude, min altitude, descent ascent percentage, moving time, full trip time, etc etc?

2) is it possible to create something that shows the elevation change over time for a trip?

3) add some sort of note thing to trackme client. say like, your recording your track; you stop what your doing and you see something interesting; then you just type a note in trackme and that note gets associated with that closest point. that way, you can add notes and view them on the trackme webviewer.

4) make the trackme web viewer be able to scroll through each point. instead of clicking on each one, why not make it so you can just push the right or left button and it'll go to the next/previous point.

just some ideas i had in mind... hope you consider :). thanks again staryon and everybody else that is contributing.
[Windows Mobile Development and Hacking General] croutledge:
Hey guys just want to say trackme and the web interface is superb.

I've pretty much got the TrackMe software working on my Xda Orbit bar a couple of little issues that may just be my phone.

I noticed that some examples are logging the angle so that uses some different icons when viewing the route in the web viewer but mine don't seem to have that part. I've looked at the gpsposition my phone is logging and can't see which parameter it is. Here is an example and what i think is each value.

[13/03/09 12:00:47]

$GPGGA,	Global Positioning System Fix Data

120043.000,	Time - 170834 - 17:08:34 Z

5449.5942,	Latitude

N,	Latitude - N or S

00309.9975,	Longitude

W,	Longitude - E or W

1,	GPS Quality Indicator - 0=invalid; 1=GPS fix; 2=Diff. GPS fix

07,	Number of sats in use

1.0,	Horizontal dilution of position (Relative accuracy of horizontal position)

100.8,	Altidude (sea level)

M,	Altidude UOM (Meters)

49.6,	Height of geoid above WGS84 ellipsoid

M,	Geoid UOM (Meters)

,	Time since last DGPS update

0000*40	Checksum

[13/03/09 12:00:47]

$GPRMC,	Recommended minimum specific GPS/Transit data

120043.000,	Time of fix

A,	Navigation receiver warning A = OK, V = warning

5449.5942,	Latitude

N,	Latidude - N or S

00309.9975,	Longitude

W,	Longitude - E or W

0.00,	Speed in knots

,	True course

130309,	Date Stamp

,	Variation

,	Variation - E or W

A*60	Checksum

Is it just my GPS that isn't providing an angle?

Does the trackme software then just take various parameters from these two lines per position and upload them to the server as part of the upload request? Or does it change the format of certain things before uploading. Asking as i'm considering setting up a server and having a play with various things. My dev experience at the mo is mainly Java and JSF, done a little PHP plus many other languages so worth a little play i guess.

Cheers

Carl
[Windows Mobile Development and Hacking General] _LEM_:
TrackMe takes the angle and speed from the $GPRMC string (if available).

It will extract that information from there and it will upload it to the server.

Regards
[Windows Mobile Development and Hacking General] croutledge:
Cheers thanks. I think the gpspositions file i was originally looking at didn't have those in, possibly because i wasn't moving fast enough, but when i look at another one i have there appears to be some data in the bearing which is probably the angle.

Excellent. Cheers for your response and the superb software.
[Windows Mobile Development and Hacking General] croutledge:
staryon, are you able to send me an SQL file with the data on your web server so i can upload it in to mine. I'm going to try and develop some additions to the server you released. Things like be able to group trips in to category's, being able to compare trips or trips in a certain category. Useful for me as i use the software while out running and it would be handy to compare total time, speed, etc for runs on the same route. there is a few other things i'm thinking about as well so the extra data in yours of mine would handy.

Cheers

Carl

I did post this earlier today, or perhaps in the TrackME software thread, but it has obviously vanished!!!
[Windows Mobile Development and Hacking General] _LEM_:
ok, send me a pm with your email and I will send you the file.

Regards
[Windows Mobile Development and Hacking General] ehrnst:
Great thread.

I am currently trying to use the trackme server to use for car racing / track days.

will have a look at the files and se what i could manage to do.

I want to be able to use other apps and upload it to the server so i definitly need to write an upload form of some sort.

New users would also be able to crate an account trough the web page.

I know a lot of my friends use an app called race chrono (including me) thats why i see the need of uploading the kml data that race chrono creates "offline"

basicly what i plan:

New account form

upload form

G-force info

Altitude/speed graphs something similar to whats posted earlier

green map overlay under acceleration

red under deccel

EDIT: Uploaded the server files today, but i only got a black screeen... any ideas?
[Windows Mobile Development and Hacking General] ehrnst:
Hi

Could someone please give me an input on what's going on here: http://ehrnst.no/TrackMe/

I can si that cellid and trips are not crated in the db, but i should be able to log in, users get created and i can export and upload trips
[Windows Mobile Development and Hacking General] Edwardtan:
About the .php file.

Actually what service or function have been contributed by xml.php?:eek:
[Windows Mobile Development and Hacking General] khaytsus:
# grep -i xml.php *

cellid_celldb.php:require_once("xml.php");
[Windows Mobile Development and Hacking General] khaytsus:
I started poking into this today on my side, cleaning up some $array[string] to $array['string'] type stuff, trying to clean out any funny errors.. Some remain that could really be wrapped with isset, but that's too much trouble and they're just warnings anyway.

None the less, I've had zero luck getting the calendar to work right. Everything looks the same between yours and mine, but when I submit the time, yours jumps to the nearest time and shows only that range and mine just resets the timespan and shows all positions.

I've replaced my index.php with the latest server.zip one, just in case I'd broken something in there tinkering.. I replaced my config.php one with the dist one, just in case there, notably the date format, but that didn't matter either. I double-checked the calendar stuff, etc.

I also copied of my trackme web files, copied my config.php into the clean server.zip files, and tried it there. Same.

So only thing that I can think of is the server? CentOS 5.3, PHP 5.1.6. Staryon, what version of PHP are you running?

And, is anyone else running their own server see the same thing?
[Windows Mobile Development and Hacking General] _LEM_:
Check your PM
[Windows Mobile Development and Hacking General] khaytsus:
AHA! With a tip from Staryon, I figured out what it is.

Around line 553, $startday is incorrect, change to:

if(!isset($_REQUEST['startday']) || trim($startday) == "") //if startday is blank then lookup the start and end of entire trip

BTW, I don't know much about PHP, so anyone else feel free to input here. :)
[Windows Mobile Development and Hacking General] ehrnst:
on my server, when i try to change trip, or what point's to view. The site just refreshes, and ask me to log in again. Dosen't mather what browser i use either
[Windows Mobile Development and Hacking General] _LEM_:
yeah... that's strange. $startday should contain the right value but it seems that it doesn't in your case. There are many references to $startday in the file index.php so it may not work even with that change in other scenarios.

jcleek any chance of fixing this problem? Thanks
[Windows Mobile Development and Hacking General] khaytsus:
I didn't look for other $starday references.

The reason it doesn't work on my server is that Register Globals defaults to off in PHP 5, and $startday is a POST variable which has to be referenced as $_REQUEST['startday'] with Register Globals disabled.

I'll look for other areas. So far, this fixed this one example I had of the calendar not working. I didn't look beyond it. There are some cleanups that could be done (probably other global registers, arrays with constants rather than strings, etc) but I'm no PHP programmer so I don't want to make too many suggestions that I might not fully understand. However, from what little I do understand, I'd be happy to send you a patch or updated index.php with my suggestions?