yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] _LEM_:
Thanks. However, let's wait a little bit just in case jcleek can fix the problem.

Since it's a problem that will probably affect all the references maybe there is something that he forgot to add.
[Windows Mobile Development and Hacking General] khaytsus:
Sounds like the best option to me, he knows the stuff, I just guess by google and example. :)
[Windows Mobile Development and Hacking General] _LEM_:
Just to mention that we have another person that will work on the .net version of the php pages. Probably we'll have some news soon about all this!
[Windows Mobile Development and Hacking General] phattooth:
That's fantastic news!

Thanks for the update!
[Windows Mobile Development and Hacking General] Josan123:
Hi there,

Just found and installed both TrackMe and the webserver app today. Works like a charm, big compliments.

I have one remark on the web app though, that more people might have. Currently, the app creates a user account if the user is not recognized. However, since it is running on my webserver, I do not want the whole world to be able to create accounts on my web app. Is this configurable? If not, perhaps a nice feature request?
[Windows Mobile Development and Hacking General] _LEM_:
If you have some experience with PHP you can modify the file requests.php yourself to do that. It shouldn't be too complicated.

The quick and dirty way of doing that is to replace

mysql_query("Insert into users (username,password) values('$username','$password')");

$result=mysql_query("Select ID FROM users WHERE username = '$username' and password='$password'");
if ( $row=mysql_fetch_array($result) )
{
$userid=$row['ID'];	// User created correctly.
}
else
{
echo "Result:2"; // Unable to find user that was just created.
die();
}

with this

echo "Result:2";
die();

so new users will never be created.
[Windows Mobile Development and Hacking General] Josan123:
Thanks for the modification!
[Windows Mobile Development and Hacking General] rosenhauer:
Possible to upload trips from othere GPS devices?

I have a stand alone GPS tracker that I use when I do photo shoots (battery lasts alot longer that the call phone battery). From it I can get KML files. Can I upload those to a a TrackMe server (i'm running my own) and view them as trips? Also is the reverse possible - Can I take the trips from the server and pull them down as a KML file? I know I can through TrackMe on the phone but the added steps of getting the files from the phone to my computer would be great to eliminate.
[Windows Mobile Development and Hacking General] _LEM_:
Hi,

No, unfortunately that's not possible. The only way would be to write an application that does something like that in php or a different language. I don't think it should be too difficult if you are familiar with the requests.php file which is used for the communication between TrackMe and the server.
[Windows Mobile Development and Hacking General] khaytsus:
I don't yet have one, but someday soon I'm going to have a bluetooth GPS with built-in tracking and I'll be working on this myself.

However, i don't yet have it so I haven't started. It's not really too difficult to do. The actual submitting into TrackMe is rather easy, I tend to make calls into the request.php to do it vs doing it directly into MySQL or such, which makes it more flexible in terms of where the data is coming from.

Would this be something you'd want to have some sort of browse to file and upload of the file which is then parsed into TrackMe? I'm picturing something like a field for the Trip Name, the Trip Name is then tacked on the date from the first datapoint, then the datapoints are added into the database as if the TrackMe client were uploading them.

Not sure how fast I could write it, but let me know and I'll work on it. Hopefully I can parse GPX and KML into PHP easy enough to digest the necessary information. Once that part is done, the rest is easy.

If I do write something like this, Staryon could make it a plugin into the server similar to a Geotagging script I wrote a while back which requires a client to parse a pictures Exif then asks TrackMe what the closest point to that timestamp is and writes the GPS info to the picture. If you're interested, I think I have more details in this thread from about a month ago or so.
[Windows Mobile Development and Hacking General] _LEM_:
Sure. Actually I forgot where I put the latest files for the geotagging that you wrote. If you give me the latest I can post it in the 3rd post of this thread.

Thanks
[Windows Mobile Development and Hacking General] rosenhauer:
Looks like I'll be doing some coding.

Thanks for the quick responses.

Looking through the server code I see an export.php, but it looks like it was never really finished. :( It has a required parameter that doesn't do anything, has a hardcoded datetime stamp, forces altitude to 2m, doesn't name the points... I'll try and clean it up and add a calling page to allow the entry of the parameters (so you don't have to hand edit the URL). Then I'll work on the upload part also.

I think this is a great system and would be happy to donate some code.

Dave
[Windows Mobile Development and Hacking General] deuzeff:
That sounds pretty cool :). I wish I had time to also to code :(
[Windows Mobile Development and Hacking General] _LEM_:
Which one is it?

Yes, that something that I have been planning to change for a long time...

Well, I need to specify some default values for viewing. Same with heading and tilt. But yes, you can put that as a parameter is you wish.

The name is used when there is a Comment available for that position or when it's the first position of the trip.

If I would name all the pushpins the map would look too cluttered.
[Windows Mobile Development and Hacking General] rosenhauer:
Hope I didn't offend you...

The variable requireddb that is pulled from the DB in the URL is only checked to see if it's 7 or more characters long then never used again.

The Date I assumed was just an oversight as you use the date in the descriptions.

There is an Altitude in the DB so I was going to use that (unless that causes display issues)

On the names in Google Earth they all come up with "[no name]" with "User: rosenhauer" under that. I'll copy how my Logger outputs with the name "TIME 15:53:01" then "Date: 2009-05-07" underneath it. Google Earth doesn't show each label (at least mine doesn't the way it's set-I'm still default on most things I think).

Overall it's a great start just not exactly what I was wanting. Also the addition of a page to let you select the trip or date ranges will make it easier to use. I searched the rest of the code and there is no reference to it so I'm assuming that this was either dropped or never finished.

Hopefully I'll have an update "late" tonight :)
[Windows Mobile Development and Hacking General] _LEM_:
rosenhauer,

That's used to check if you are calling the export.php file using the right version of TrackMe. It's a very important parameter. All php files use that parameter.

That altitude in the database has nothing to do with the fixed value. The altitude that is fixed in the export.php file is used for Google Earth to determine how far you will see the whole map. The same with the pan and tilt values.

If you check further you will see that the altitude from the db is also used.

Only the last position or positions with comments have a name. As I said it would look too cluttered if I show a name for each position.

Thanks for your help!
[Windows Mobile Development and Hacking General] rosenhauer:
Download Tool

Sorry Double Post.
[Windows Mobile Development and Hacking General] rosenhauer:
Download Tool

Since I'm setting up a page to be called from the Web Interface not TrackMe directly so I didn't see a point to it.

Correct on that one (I got into it a bit more last night) but the altitude was still missing from the points (the other software that I'm feeding the files into needs it in the point structure)

I see the issue there. The other files that I was looking at don't use pushpins and have names that don't display. Maybe I'll look into how they did that later but for now I left it like you had it, although I changes the order of the desc fields so that the date/time is displayed instead of the user name first.

I've attached 2 files. One replaces the index.php to add download links and the other is the download function. I realized when I was just getting started that the export.php while not called from the web might be called from TrackMe directly (confirmed that later) so I renamed it so i wouldn't mess up the download function in TrackMe from the phone.

I still need to add a few functions and the upload part but it's a start.

Future items I hope to add:

1. If you are viewing all of the trips to have it create separate folders (in the KML) for each trip so you can manage them easier in GoogleEarth.

2. Export to CSV and maybe other formats.

Let me know what you think.
[Windows Mobile Development and Hacking General] khaytsus:
Just realized when I was geotagging some images today I'd forgotten to get back with you on this! I've attached a zip of geotag.php
[Windows Mobile Development and Hacking General] _LEM_:
Thanks for that. It seems to work fine.

I just added it to the official release.

Something that I haven't tested is when you select <Any> or <None>

Have you considered those cases as well?

Thanks again for your work.
[Windows Mobile Development and Hacking General] _LEM_:
khaytsus,

Thanks for that.

Before adding the plugin at the top of this thread could you please include a detailed description and some information about what you need to do to use it?

I appreciate your help.
[Windows Mobile Development and Hacking General] Riel:
Great to see that you are very busy developing on the webserver!

You remember, a long time ago, the reverse-geocoding questions I asked in the other topic?

i read about them here, seems like things got a bit easyer !
[Windows Mobile Development and Hacking General] _LEM_:
I have added a plugin created by user tahdor.

TrackMe (NMEA records) to OziExplorer (.plt) converter by tahdor

Description:

Simple perl script which takes the TrackMe (NMEA records) and put them as OziExplorer (.plt) format. Then you can open the .plf record in GpsVp to view the track.

You can find it in the third post of this thread.

tahdor, thanks for your contribution!!
[Windows Mobile Development and Hacking General] khaytsus:
Staryon,

In the past, I've requested if the Trips could be listed in descending order by ID, is there any reason why this simple change to the requests.php won't do it? It finally occurred to me today to try it:

Line 190 (for me), change this:

$result = mysql_query("SELECT A1.name, (select min( A2.dateoccurred ) from positions A2 where A2.FK_TRIPS_ID=A1.ID) AS startdate from trips A1 where A1.FK_USERS_ID='$userid' order by name");

To this

$result = mysql_query("SELECT A1.name, (select min( A2.dateoccurred ) from positions A2 where A2.FK_TRIPS_ID=A1.ID) AS startdate from trips A1 where A1.FK_USERS_ID='$userid' order by ID desc");

Seems to work, but just want to make sure I'm not missing something important?
[Windows Mobile Development and Hacking General] _LEM_:
I'm not sure because I'm not familiar with that code.

However, some people may be interested to have it sorted by name so the best thing to do would be to have an option where you can choose the type of sorting.

Meanwhile (in my opinion) is better to have it sorted by name instead of by id. It's easier to find an existing trip if you have many.

By the way, did you have a chance to check my previous message? I need to have some description about your plugin so I can add it to the main post.
[Windows Mobile Development and Hacking General] khaytsus:
Sorting by name makes some sense, but IMO sorting by ID makes more sense, because it's most likely you're going to be looking for the most recent trips within TrackMe. Like loading a recent trip to add to it, etc.

ie: Within the TrackMe client, it sorts the same way the Website does when picking trips to view. Thought I'd ask just to make sure. Personally I like it this way, as if I'm looking at trips it's always a recent one, and this sorts by the most recent trips.

As for the geotagging plugin, yep, I need to write up something on that, including documenting the client I wrote along with it a bit.
[Windows Mobile Development and Hacking General] _LEM_:
Probably you already know but from the TrackMe client you can sort by clicking on the column that you are interested in.
[Windows Mobile Development and Hacking General] khaytsus:
Not from the Trips button. Manage Trips, true. But this does it the way I would always want it sorted from both views. :)
[Windows Mobile Development and Hacking General] kotfrbursa:
Hello, everybody.

Who can help me create and make some modifications in web server-side?

I need help for a fee :)
[Windows Mobile Development and Hacking General] Real_Justus:
Userlimitation

Hallo

I was wondering how I could limit the access to my server. I wanted a group of users to be able to track all TrackMe clients via GoogleMaps.

The attached three files will enable a simple authorization for users. The server has to be installed accessable for everyone (public).

To create the authorziation, you have to edit .htaccess and htpasswd from the ZIP attached as follows:

1: Open .htaccess with the texteditor.

2: In the line "AuthUserFile" you have to add the WHOLE path to .htpasswd.

3: .htpasswd contains the users. The username is just plain text. The password is ht-encrypted. You can encrypt passwords here.

4: When both files are modifyed for your needs, upload them to the TrackMe directory on your server. If this is done correctly, a simple authorization is required for opening the webinterface for your TrackMe-server. All valid users can Track all clients.

If you don´t know the exactly path, upload phpinfo.php from the ZIP attached to the TrackMe directory on your server and open the file in your browser. (http://www.yourserver.com/TrackMe/phpinfo.php). Search for "Document_ Root" The path might be something like: /var/www/user/html/YourTrackMe/Directory. Insert the path in .htaccess

!!!Make sure to delete the phpinfo.php after use!!!​

Best regards,

Justus
[Windows Mobile Development and Hacking General] _LEM_:
Thanks! I just added it to the plugins post.

I think it's a good solution until we implement the ability to have friends in TrackMe (A friend is non TrackMe user that can see some of/all your trips with some restrictions)
[Windows Mobile Development and Hacking General] Tigggger:
Sorry to drag up an old problem, but I'd tried this fix and it still didn't work for me.

The reason is that trim($startday) is always blank because at no point before it is the variable defined, so that statement fails and it resets to default start and end times for the trip

The answer (for me anyway) was to change that 1 line for these 3

$startday = $_REQUEST['startday'];
$endday = $_REQUEST['endday'];
if( (!isset($startday)) || ($startday == "") )
[Windows Mobile Development and Hacking General] Tigggger:
Another problem I have had and heard others mention before is when you are viewing a trip from a user other than the default and you click on 'Live Tracking On' it switches back to the default user rather than the person you are currently viewing.

Change these 2 lines of code around 274 & 448

$html .= "location=\"index.php?last_location=yes&interval=60&zoomlevel=2\";\n";
$html .= "window.location.href = (\"index.php?last_location=yes&interval=\" + document.intervalclock.interval.value + \"&zoomlevel=\" + document.zoomform.zoom.value); \n";

to

$html .= "location=\"index.php?last_location=yes&interval=60&zoomlevel=2&ID=" . $ID . "\";\n";
$html .= "window.location.href = (\"index.php?last_location=yes&interval=\" + document.intervalclock.interval.value + \"&zoomlevel=\" + document.zoomform.zoom.value + \"&ID=\" + document.form_user.ID.value); \n";
[Windows Mobile Development and Hacking General] khaytsus:
Hmm, interesting.. Perhaps I accidentally pasted the code after I used a loop to pull in all env vars.. I'm no PHP programmer. :)
[Windows Mobile Development and Hacking General] stef1968:
Problem installation server

hi,

i have tried to instal the php file of the server

upload file, chmod , create dir , create database, modify config.php.

but when i browse install.php i get an "500 internal error" :

Premature end of script headers: install.php

suexec policy violation: see suexec log for more details

does someone solve this problem ? does it a limitation of the hosting ?
[Windows Mobile Development and Hacking General] _LEM_:
Tigggger, thanks for those fixes.

I will be testing them soon and I will add them to the official release.
[Windows Mobile Development and Hacking General] rctneil:
Hey Staryon. When I go to California I want to be able to track my journeys. I do NOT want to use the live tracking as the data usage cost for my device would be enourmous. I just want it to store all data on the device. What settings do I need to alter so it doesn;t upload each point and so it just stores them. I also want trackme to upload any currently stored points to the server when I get a wi-fi connection at any hotels.

Any info would be highly appreciated.

Thanks

Regards,

Neil
[Windows Mobile Development and Hacking General] _LEM_:
Hi Neil,

This post should be in the other TrackMe's thread, this is only for developers.

Please check the documentation, because all that is explained there with a lot of detail. Basically you just need to run TrackMe in offline mode (just go to Config->Storage)

Regards
[Windows Mobile Development and Hacking General] rctneil:
If I set it to offlinbe storage only, will it retain all the data even if the program is exited and the device turned off?
[Windows Mobile Development and Hacking General] _LEM_:
Yes, it's stored in a database.
[Windows Mobile Development and Hacking General] 20100v:
Is there any way to call trackme (server side) to display a specifyc trip number ?

like http://mywebsite/trackme/index.php?trip=25 where 25 is the trip number of the database (sql).
[Windows Mobile Development and Hacking General] khaytsus:
Did you even try it? That works exactly like you suggested.
[Windows Mobile Development and Hacking General] 20100v:
Yes, I've already tried, but unfortunately, it does'nt work. I've every time the last trip.
[Windows Mobile Development and Hacking General] khaytsus:
Odd, works here.. But come to think of it, I did do some minor refactoring to fix some PHP issues around Global Variables.

Ah, if you're already logged in, at least for me, ?trip=XXX works, but passing it without being logged in, TrackMe does not carry the trip variable forward.
[Windows Mobile Development and Hacking General] turtle2472:
Is there a way we can make the web page display on an iPhone/Touch without having the address bar visible? There is a code here that seems like it'll do it, but whenever I try to insert it my whole page fails to load. I know very little about php so this is probably why it fails. :\

<meta name="apple-mobile-web-app-capable" content="yes" />

Another trick I was told involved this javascript:

window.scrollTo(0, 1);

I fail at making it work either. Plus, the map and sidebar fill the screen with the assumption that the address bar is staying.
[Windows Mobile Development and Hacking General] 20100v:
Yes you're right,

For me I've to pass /index.php?trip=XXX&ID=1 . I'm the only user .

Thanks.
[Windows Mobile Development and Hacking General] turtle2472:
This way worked for me.
[Windows Mobile Development and Hacking General] Elhozo:
This post is originally in spanish so please sorry if my english is not very good

I've made a change in tod files of the server to allow view of multiple pictures in on dialog ballon. This (at least for me) is very usefull when you want to take many pictures from one place (no position change)

You have to edit to files

in request.php make this change to allow having multiples images in one single position record

if($action=="updateimageurl")
{
$imageurl = urldecode($_GET["imageurl"]);
$id = urldecode($_GET["id"]);

$iconid='null';
$result=mysql_query("Select ID FROM icons WHERE name = 'Camera'");
if ( $row=mysql_fetch_array($result) )
$iconid=$row['ID'];

/* HOZO 20/Jun/2009 : Esta es la modficacion que permite poner mas de una
* imagen en un solo punto, pone las url una atras de otra saparadas por un
* espacio. la linea que queda comentada es la original.
* Ver en index.php el cambio que las muestra en el globo del dialogo */
// BEGIN ORIGINAL CODE - MUST BE COMMENTED
//mysql_query("update positions set imageurl='$imageurl',fk_icons_id=$iconid where id=$id");
// END ORIGINAL CODE
// BEGIN NEW CODE
mysql_query("update positions set imageurl=CONCAT_WS(' ', imageurl, TRIM('".$imageurl."')), fk_icons_id='".$iconid."' where id='".$id."'");
// END NEW CODE

echo "Result:0";
die();
}

in index.php change this to show multiple images in one dialog baloon

if($row['ImageURL'])
{
/* HOZO 20/Jul/2009 : Agregar este pedazo de codigo en reemplazo del orginal,
* la ultima linea que esta comentada es la orgiinal.*/
// BEGIN NEW CODE

// Por las dudas me aseguro de eliminar espacios duplicados
$row['ImageURL'] = eregi_replace (" ", " ", $row['ImageURL']);
$row['ImageURL'] = eregi_replace (" ", " ", $row['ImageURL']);
$stFotos = explode (" ", trim($row['ImageURL']));

// Armo la cantidad de columnas y tamaño de la imagen del globo
// de acuerdo a la cantidad de fotos que haya para mostrar
if (count ($stFotos) == 1)
{
$inFotosCols = 1;
$inImgWidth = 200;
}
else
{
$inFotosCols = count ($stFotos);
if ($inFotosCols > 16)
$inFotosCols = 5;
else if ($inFotosCols > 9)
$inFotosCols = 4;
else if ($inFotosCols > 3)
$inFotosCols = 3;
$inImgWidth = ( 400 / $inFotosCols ) - 5;
}

$html .= "<tr><td>";
$html .= "<table>";
$inFotoIndex = 0;
while (list ($inKey, $szData) = each ($stFotos))
{
if ( ($inFotoIndex % $inFotosCols) == 0)
$html .= "<tr>";
$inFotoIndex++;
$html .= "<td><a><img></a></td>";
if ( ($inFotoIndex % $inF";
}
$html .= "</tr>";
$html .= "</table>";
$html .= "</td>";
$html .= "</tr>";
// END NEW CODE
// La que sigue es la linea orignal de codigo
// BEGIN ORIGINAL CODE - MUST BE COMMENTED
//$html .= " <tr><td><a><img></a></td></tr>";
// END ORIGINAL CODE
}

Know issues : The filed imgeurl in DB is limited to 255 chars, is better if you change this value to something bigger to fit more images urls.

I have included a ZIP with the two modified files
[Windows Mobile Development and Hacking General] _LEM_:
Thanks a lot. I just added it to the plugin post (3rd post of this thread)
[Windows Mobile Development and Hacking General] RoelAlblas:
.NET Server and Webviewer (Not finished)

Hi,

I've made a start with coding a .NET version in VB.NET. I just don't have the time to finish it so I will provide the code here and you can do what ever you want to do. I like that you give the changes of the code back to the community.

Kind regards!

Roel Alblas
[Windows Mobile Development and Hacking General] _LEM_:
Thanks a lot for your work.

Hopefully somebody will be interested in continuing with the project.

Meanwhile, I will add it to the first post.