yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] ahhl:
i have old recorded track in kml. is it possible to upload it the server or uploadit using trackme?
[Windows Mobile Apps and Games] _LEM_:
Sorry but I'm afraid that's not possible.

However I think it would be a nice option to have in the future.
[Windows Mobile Apps and Games] khaytsus:
I believe that's due to the PHP problems in the code.. I posted about it long, long ago, but there are tons of global variables and it's really insecure (in general, I know of no security issues with TrackMe specifically) so most installations of PHP do not allow it. If you can, look in the web server logs and watch all of the failures when you try to do that.

The way to fix it is convert all of the variables from globals.

Here's a few posts I made on it in the past.. I thought I posted about some examples to fix, but maybe someone else did that.

http://xdaforums.com/showthread.php?p=3665891&highlight=global#post3665891

http://xdaforums.com/showthread.php?p=4058311&highlight=global#post4058311

Basically what happens is previously if a form submitted a form entry named password, you could just reference $password. Now you must explicitely set the variable name. This page has good info on how to fix such problems..

http://wiki.lunarpages.com/PHP_and_Register_Global_Variables

And here's basically how I did it myself.. Found all of the global registers in use and made explicit variables for them. This is in index.php but there are globals in others as well..
[Windows Mobile Apps and Games] _LEM_:
Thanks for all that research. Hopefully I will be able to work on the viewer one day to fix all those issues :o
[Windows Mobile Apps and Games] 20100v:
Android

Hello,

I used between 2 years the WM6 version. I've build my own server, and made some stats with my everyday home work commuter (50km/d) on my bike.

Since 1 year I use an Android phone (Desire), and I just discover two days ago there is an android version of Android.

Tried on 2 days, and there are some limitiations.

I put min dist to the min 50m, min time to min 10s and set accuracy to 100m.

On a trip of 26km for one hour, I've only 42 points.

With wm6, I've 425 points.

Any idea ?

I'll try to night with a accuracy of 1000m to see if this is the problem.

Vincent
[Windows Mobile Apps and Games] _LEM_:
In Android the location services don't recommend a number less that 60 seconds. However I think you should get more positions. I will test it today on my way to work with those settings and I will let you know.
[Windows Mobile Apps and Games] nayaknish:
Nice App.. :cool: :cool:

Working Superbly on my old HTC Gene!! :D :D

Loved it..

thanks!! :)
[Windows Mobile Apps and Games] 20100v:
Thanks,

On wm6, 3600/425=8s A point every 8s.

On android the My tracks application tracks with more 1 point in 60s. I don't remember exactly the number.

I'm biking not walking.

For the back home ride, I'll remove the upload during the course to be sure there is no upload problem.

Anyway, thanks for this software compliant with the wm6 trackme version .
[Windows Mobile Apps and Games] _LEM_:
In my case I got 228 positions on a 66 Km trip (42 minutes) with the same settings that you were using.

Keep in mind that the time and distance on Android are approximate. The only way to get exactly one position every 10 seconds would be to leave the GPS on all the time without checking for distances.

Also it could also be that some positions were skipped because of the accuracy as you mentioned.

For the next version I will add in the log file what you see on the screen, that way you can send it to me and I can see exactly how often you were getting the positions.
[Windows Mobile Apps and Games] _LEM_:
Thanks. Since you also have an Android you can try on it too!
[Windows Mobile Apps and Games] _LEM_:
the files are identical.

Don't you have any problems uploading GPS positions to your server from TrackMe?

It's weird if you don't get the same error, because the same script is used.
[Windows Mobile Apps and Games] daesimps:
No problems at all. Positions are updated fine. Export works OK if I use a data range. It is just retrieving the list of trips that doesn't work.
[Windows Mobile Apps and Games] _LEM_:
I found the problem. It's in Trackme and the reason is because my logic sucks.

You are getting this result from the server:

Result:18.11.07_19.16.36|Trip_14.11.07_17.06.02

and TrackMe thinks that it's an incorrect password, because the string starts with Result:18.11.07_19.16.36|Trip_14.11.07_17.06.02

I'll fix it right now.
[Windows Mobile Apps and Games] daesimps:
That makes sense and explains everything. Never even occurred to me! Would a (relatively) easy fix be to change the app/php so that it starts the trip list with "Result::" - i.e. with 2 colons. Not much of a change, but should resolve the problem
[Windows Mobile Apps and Games] _LEM_:
ok, try the new version I just uploaded.

This is a temporary fix. I should really change the logic in the PHP page, but just to make it easy for everybody, you just need to update the pda application.

Regards
[Windows Mobile Apps and Games] daesimps:
Ah - I see you fixed it whilst I was typing my reply.

Thanks
[Windows Mobile Apps and Games] odie3:
This has to be "Globals" thing. I removed my php.ini file and this is how I was able to get the message that is attached.

1. Tools

2. Export GPS Positions

3. Select Trip (my where already there)

4. Location Source/Destination set to remote

5. Generate KML File Checked

6. Range unchecked

7 Click okay

First time with my php.ini installed it worked, 2nd time with it deleted I got the user/password error.

So, my question is - have you tried either the php.ini or .htaccess file trick?

NM - different problem (but there is still a global problem somewhere).
[Windows Mobile Apps and Games] daesimps:
Staryon has fixed it. It was nothing to do with globals. My trip was "18_11_07". Therefore his requests.php returned "result:18_11_07". His application saw the "result:1" and interpreted this as a password failure.

As an aside I do not have register_globals switched on and never will. It is policy that this is never done on the server. Where variables haven't been declared I have been manually editing the files.
[Windows Mobile Apps and Games] Rescue9:
I enabled the globals line in php.ini and it kindof worked.

I no longer get errors on the client side, and it says that it generated the remote .kml correctly. This is where the positives end. :-P

The routes folder was not automatically created like you said it should be, and the .klm is nowhere to be found. I manually created the routes folder and still no .klm file. EDIT: I had to manually create the routes folder, but I fixed this issue by chmod 777 the routes folder. Now the .klm file is created.

In addition, I really don't want to enable globals in my php files just to use this. Is there a way around enabling globals? ADDITION: Just to verify, if the globals is turned off, I get the INVALID username/password error again.
[Windows Mobile Apps and Games] Rescue9:
I reworked the code in the exports.php as listed in this post: http://xdaforums.com/showpost.php?p=1674951&postcount=486

After reworking this code and moving the variables to the top of the file, I no longer have to have the globals enabled in the php.ini file. In addition, I do NOT have a .htaccess file.

With these changes, I am now receiving uploads of the .kml file to the server.

Only problem that I see now, so far, is the fact that I had to manually create the routes folder and enable it 777.
[Windows Mobile Apps and Games] _LEM_:
Rescue9,

it seems that you were not using the latest version of the php files.

Check the first post and download the files for the manual installation and get the files export.php, requests.php and upload.php

Those files already include the variables declaration that was causing problems with some of you. They also create

the routes folder automatically.
[Windows Mobile Apps and Games] Rescue9:
I'll try again, but I'm pretty sure I downloaded those files after you posted the update a page or two back.

Will update in a while. :-D
[Windows Mobile Apps and Games] Rescue9:
Hmmm.... Are you sure you uploaded your new server zip? I tried this again and the code seems the same as it was when I edited it. In addition, the folder still isn't created when I use it the first time.
[Windows Mobile Apps and Games] _LEM_:
Are you downloading the files for the manual installation or the automatic installation?
[Windows Mobile Apps and Games] _LEM_:
jcleek,

For you install.php file, do you think there is a way to call a file that contains the script that creates the database? By doing that, you don't have to be updating this file all the time I make a modification to the database.

I'm not sure if that's possible.

My goal is to join your Automatic installation and my Manual Installation into one, so we have everything updated all the time.
[Windows Mobile Apps and Games] Rescue9:
I'm downloading the manual installation.

EDIT: Just checked the files... I'm definitely downloading the Manual installation, and the code in the exports.php is still borked.

I basically cut this:

$action = $_GET["action"];

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

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

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

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

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

and pasted it right after

require_once('config.php');

Then it worked like a charm. Like I said though... still no auto folder creation.
[Windows Mobile Apps and Games] _LEM_:
oh... sorry about that. You're right, there was an error in the export.php file.

I just corrected it.
[Windows Mobile Apps and Games] jcleek:
Server files have been updated. Changes:

1) Install file will read config.php so you don't have to re-enter everything. Just don't replace your existing config.php if you already have a working install.

2) Install file will attempt to create the tables and if they are already there the new attribures for speed and altitude will be added

3) Speed and Altitude show up and I have matched Staryon's pushpin text.

4) Finally, this version is a public/private installation. Select the option you want in the config and that's what you get.

I still see passwords in the database are in clear text. I need to know when we are going to change those over so I can modify the code. If there is something I missed or can do better please let me know.

Latest version of server files
[Windows Mobile Apps and Games] _LEM_:
yes, they are not encrypted yet. I'll let you know when that's done.

Thanks
[Windows Mobile Apps and Games] jcleek:
I will look into it... not sure.
[Windows Mobile Apps and Games] Roar:
Cool. Maybe we can get a windows version of Windows soon?

:D
[Windows Mobile Apps and Games] _LEM_:
oh no...no more versions please!! :p
[Windows Mobile Apps and Games] 20100v:
mistake, sorry.
[Windows Mobile Apps and Games] 20100v:
26km 1h04, 140 positions with offline upload.

There are some mistake on the trip name. I've seen the log file (attached) on my sd card, and have strange trip name ???
[Windows Mobile Apps and Games] _LEM_:
Thanks for sharing that.

It looks ok to me. You get most of your positions every 10-15-20 seconds.

It could also be possible that sometimes you don't reach the minimum distance so it takes a little bit longer.

Regarding the trip name there must be something wrong. Does it look ok when you see your trip with the web viewer?
[Windows Mobile Apps and Games] 20100v:
I was biking and was a little tired friday evening :) . Is it possible to remove the minimum length ?

On the server, the trip is only 12 km but I connected to my sql server, and set the same FK_Trips_ID for all positions of my trip. Now it's almost ok about the distance (24,5 versus 26,5). But the altitude was totaly mad.

An other idea, could you set the trip name with the "metric" hour. I'm explaining. Instead of Auto-2011-11-25-08-23-31, put Auto-2011-11-25-20-23-21.

When trip are sorted, they're be in the good order.
[Windows Mobile Apps and Games] 20100v:
There is a real problem with the trip name on offline mode.

This morning I try again on a small trip. Offline name is correct (Auto_2011_11.26_10.15.53) but trip name upload is 800 for one position, 300, 400, 000.

Also altitude was totaly crazy 500, 250, 000, 581 ... Speed seem's to be good.

Strange !
[Windows Mobile Apps and Games] _LEM_:
I found the problem. It's because of the regional settings. If you check your log your speed and altitude shows up like 6,500 instead of 6.500

This confuses the import process.

Sorry about that. I will fix it and release a new version later today.

PS: I'm going to do some testing with no minimum distance to see how it works. I'll let you know.
[Windows Mobile Apps and Games] _LEM_:
20100v,

I just fixed the problem. The new version should be ready in the next few minutes.

Please let me know if you get this problem again. By the way, you will have to delete any existing offline data that you have on your phone. That data is already corrupted.

By the way, do you mind to use from now on the thread for the Android version?

It's located here:

http://xdaforums.com/showthread.php?t=1340211

That way we can leave this thread only for WM users.
[Windows Mobile Apps and Games] 20100v:
Yeah ! Thanks for tour reaction!

I'll try the new version.

Sorry to have posted on this thread. The help button of the android release send me here.

Thanks again!
[Windows Mobile Apps and Games] _LEM_:
You are right! I have to update that :o
[Windows Mobile Apps and Games] bwb8771:
Background processing in WP7 Mango release?

Just found TrackMe today - love love love love it!

The app will definitely work with my phone's screen locked, but if I multi-task to (say) email, the updates stop.

Are there any plans to tweak the app to take advantage of Mango's (supposed) enhancement to allow for apps to run "in the background"?

Thanks!

BWB
[Windows Mobile Apps and Games] _LEM_:
Unfortunately as far as I know that's not possible. Background apps on WP7 pauses and do not become active until brought to the foreground. You can have some code running in the background but is very restricted about what you can do.

WP7's SDK is very closed compared to Android. Hopefully they will change that one day.
[Windows Mobile Apps and Games] markd89:
I'm using 6.2.8.158 and it's working great on my Touch Pro2.

There are two issues/questions:

1. The battery gets depleted pretty quickly. I tried setting the update interval to less often and this doesn't seem to make a difference. I suspect this is because the GPS radio is powered up all the time. Any suggestions on saving battery?

2. It would be cool if I got an email or SMS with a certain message that TrackMe could be turned on, upload a location, then turn off. Any suggestions?

Thanks again!

Mark
[Windows Mobile Apps and Games] _LEM_:
Hi markd89

The update interval should help. Do you keep the screen on for a long time? That's what really should make the biggest difference.

I don't turn off the GPS completely (it stays in standby) between updates because it would take a while to get a new fix every time that is turned on again. However maybe it would be a nice option to add in a future release.

I recently added that in the Android version. Unfortunately the WP7 version is not being too popular so I'm spending most of my time on the Android for now.

Regards
[Windows Mobile Apps and Games] markd89:
Hi Luis,

Thanks for writing back.

On the battery -- I do have the screen off most of the time. I also have an extended battery. If I have TrackMe off, I can have 70% left at the end of the day. If I have TrackMe on, it might be 30%. So right now I turn it on and off manually.

On Andriod -- I have a really inexpensive plan with Sprint with my Touch Pro2. If I upgrade phones, my plan is going to be $20+ more per month so I have to stay where I am. If you get inclined, please think about adding the turn-on/off feature to the Windows version. If it's not too much time, maybe it'd be worth it. I could contribute $50 to help compensate your time... Maybe others might see it worth contributing too.

Thanks again,

Mark
[Windows Mobile Apps and Games] _LEM_:
Thanks a lot, you are very kind. The problem is my Developer membership expired, so I have to pay another $99 for one year and that's not too worth it right now because I almost get no money with the ads. However I really want to go back to WP7 and Xbox eventually so I will definitely will keep updating TrackMe.
[Windows Mobile Apps and Games] markd89:
Cool, I'll stay tuned. The $50 still stands, so PM me when you're ready to renew that and I'll cover half :-)

Your app rocks BTW -- very solid :-)
[Windows Mobile Apps and Games] _LEM_:
Thanks again! I will definitely keep that in mind :)
[Windows Mobile Apps and Games] websurf:
WebServer Problem?

Hi LEM

Is there something wrong with the server lately? and also the web interface?

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/l/u/i/luisespinosa/html/trackme/index.php on line 643

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/l/u/i/luisespinosa/html/trackme/index.php on line 644

Trackme unable to upload any data to the server. Look like it become more and more unstable lately. Is that right?
[Windows Mobile Apps and Games] _LEM_:
I have seen that sometimes. Usually it's because the trip has no positions.

I will check it out.
[Windows Mobile Apps and Games] _LEM_:
websurf,

Are you still having that issue with uploading the data to the server? I just tried but it seems to work ok.
[Windows Mobile Apps and Games] ryanmorrison:
Database Fields

Hi,

I am new to this, I am setting up my own server and am following the instructions in the readme file, can someone please clarify how many fields and what the fields should be names as, as I think this is where I am going wrong on the install.

Cheers
[Windows Mobile Apps and Games] _LEM_:
I'm not too familiar with that, but the package should include an script that creates the database automatically.
[Windows Mobile Apps and Games] ryanmorrison:
Thanks, ive been over complicating it all along
[Windows Mobile Apps and Games] ryanmorrison:
private page

Hi, I have couple of questions:

1. How do I set my trackme page to private so that a login or registration is required on my own server.

2. Can I make index.php auto refresh so that the tracking is live, as it stands just now i have to refresh the page to receive any updates.

Any help would be appreciated

Cheers

Ryan
[Windows Mobile Apps and Games] _LEM_:
Hi,

In the config.php file there is a parameter called $public_page

You can set that parameter to "no"

There is a button called "Live Tracking on" that refreshes the page automatically. You can also specify an interval.

Hope it helps.
[Windows Mobile Apps and Games] ryanmorrison:
Thank you

Both solutions work a treat. your advise was very much appreciated.

Thank you
[Windows Mobile Apps and Games] _LEM_:
Great. I'm glad it worked!
[Windows Mobile Apps and Games] websurf:
Hi LEM

Yes, LEM as of this morning, I start TrackMe at about 10:45AM and drove 20 minutes on the street to a shop where I get good GPS and Phone signal. it is now 12:03PM but NO DATA. Restarting Trackme sometime help but 75% of the time NO DATA either.

I'm getting so frustrated in the last few weeks. I just don't know what to do. there is nothing change on the phone but its very weird. I usually start Trackme up on windows start. but it doesn't upload the data. Sometime it does upload but the weird thing is if I open google earth or your web interface then Trackme will stop upload data right after that. May be the server doesn't like to INJECT uploaded data after it being open or use by google earth or web interface?
[Windows Mobile Apps and Games] _LEM_:
If the data doesn't get uploaded it should be stored in the offline file. Have you tried to upload that data later?

Try to enable the debugging options and send me the text file. That will give us an idea about what's happening.

Regards
[Windows Mobile Apps and Games] Earl68754:
Done.

Posted the two files.

I'll wait for a response.

Thanks,

ghale.

--------------------------------------------------------------------------------
[Windows Mobile Apps and Games] _LEM_:
Edited. Sorry I know what you mean.
[Windows Mobile Apps and Games] pewe:
I have a problem with this.

I installed it on both WM5 and WM6.5 units and on both I get an error on starting the program -

Can anyone throw any light on this problem.

(I tried posting on the software developer forum, but it appears he has sold the software and so far no replies).
[Windows Mobile Apps and Games] _LEM_:
Did you install SQL Server Mobile on your device? Please check 1st post for details.
[Windows Mobile Apps and Games] pewe:
:o

Thank you, I missed that completely at the site I downloaded it from, and never read the first post here - I'm so :o again!!!

One other question if I may trouble you.

Once I have this working on my phone, I am going to try and install th server program on my server.

I see that Google no longer require registration for the API keys.

Will this affect the installation of the server scripts (downloaded from here - http://www.luisespinosa.com/trackme_eng.html#S10 )

Thanks again.
[Windows Mobile Apps and Games] _LEM_:
Yes, that's my website.

Regarding your question, to be honest, I'm not sure. I didn't write the web viewer so I'm not familiar with that. However I know some people installed it on their servers recently so it should work.
[Windows Mobile Apps and Games] pewe:
I will try it at some point soon and see if it does work.

Thank you for your help.
[Windows Mobile Apps and Games] turtle2472:
It's still working on my server. No issues at all with it as a matter of fact. :)
[Windows Mobile Apps and Games] pewe:
Thanks for that info Turtle - when I have some time I look forward to trying it.

In the meantime, do you know if it is possible to upload a file (gpx or kml) to the server manually from a pc, or does it only work if the file is sent directly from the device.

Thanks
[Windows Mobile Apps and Games] pewe:
OK - I have some time to try the server software and it seems to work - i'm sure I'll have some questions later when I've had time to study it more.

With regard to using information locally, I see there are several posts asking about exporting/storing data locally as gpx/kml files - and I see you took that feature out and have not considered replacing it.

I want to use Trackme for 2 purposes

- to create records of 'trips' which it does on the server.

- to geotag photographs tken on the trip - using Geosetter.

Unfortunately Geosetter requires local gpx files.

I'm sure it would be possible for a small PC utility to be developed that could extract the data from an offline copy of 'local.sdf' and create a gpx/kml file in the same way as the file 'export.php' on the server does with the sql database.

My question is - does anyone know any coders who could do this.

Here's hoping!!!!
[Windows Mobile Apps and Games] turtle2472:
I don't know of a way to get a track from another source into the TrackMe server page. Seems to only come from the phone. I'm sure there is a way, not something I've ever looked into though.

As for taking the track and making it a GPX this can be done but you must set the server to private as I'm pretty sure was mentioned by _LEM_ earlier in this thread. There is an export link in the menu near track selections and such.

Then you can export tracks for use with Geotagging. You can also export a track as a GPX using TrackMe that will be put on the server and is ready to download and use for Geotagging. You would FTP it down from the server or possibly right click and save as. I personally keep my server open for anyone to look at. (It's security by obscurity in my case) Because I do it this way you can not export it using the server front end.

Personally, It was easier for me to get a GPS data logger that I use for Geotagging. This proved easiest even with TrackMe. I can assure you, I love TrackMe and am one of the EARLY adopters.