Notices


Reply
Thread Tools
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#21
Interesting project, though I'm not familar with python or php (I've done very little work with either and I never seem to have enough available time to learn).

But for anyone who's interested in this project and was wondering how to host their own server. You can download this if your using Windows.

http://www.apachefriends.org/en/xampp-windows.html

Then you just need to use opendyns if you don't have a static IP address.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Posts: 145 | Thanked: 80 times | Joined on Jan 2010
#22
After a bit of sorting things out, I got it to work! I will be using this so that people can see where I am on my Bike MS ride in less than a week (see signature).

Now, I would like to slow down the update loop (i.e. update the location once every 10 minutes). Where in locupdate.py can I wedge in a
Code:
time.sleep(600)
Thank you for your work, weißelstone!

Edit:Never mind. I figured out where to put it.

Last edited by cyeung; 2010-09-07 at 03:52.
 
Posts: 145 | Thanked: 80 times | Joined on Jan 2010
#23
Throughout this week, I have been testing pygeotrack in preparation of my bike ride this weekend in benefit of the National Multiple Sclerosis Society. So far, so good. In addition to adding a six-minute time delay, I did a few cosmetic adaptations to fit the event.

The result of my work can be found here: http://cyeungrun.com/BikeMS Assuming there is cellular coverage throughout the route, my Nokia N900 will be transmitting its GPS location every six minutes.

Data should start showing up at September 11, 8 AM (GMT -4) as the ride will start at that time. Until then, don't be surprised that the map is centered in the middle of the ocean.

weißelstone, thank you.
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#24
You could check if your provider has a coverage map, though i guess now it's too late


btw, there was a thread about starting a comunity project for making somthing to track lost/stolen N900s, i don't remember the exact name of the thread though
 
Posts: 145 | Thanked: 80 times | Joined on Jan 2010
#25
The test proved to be successful (see attached screenshot). I was riding with some of my coworkers whose riding style varied from mine, so I ran out of time and had to be driven back to the last mile.
Attached Images
 
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#26
during the day the map wouldn't load for me the times i tried so i couldn't follow you live, it has loaded with the full path now though
 
Posts: 33 | Thanked: 8 times | Joined on Dec 2009
#27
Originally Posted by cyeung View Post
After a bit of sorting things out, I got it to work! I will be using this so that people can see where I am on my Bike MS ride in less than a week (see signature).

Now, I would like to slow down the update loop (i.e. update the location once every 10 minutes). Where in locupdate.py can I wedge in a
Code:
time.sleep(600)
Thank you for your work, weißelstone!

Edit:Never mind. I figured out where to put it.
Can you tell me where you've coded
Code:
time.sleep(600)
in the python script???

Thanks!
 
Posts: 33 | Thanked: 8 times | Joined on Dec 2009
#28
Figured out. Nice solution with these python and php scripts.
 
Posts: 110 | Thanked: 14 times | Joined on Sep 2010
#29
will this be available in the repos???
 
Posts: 145 | Thanked: 80 times | Joined on Jan 2010
#30
In response to chivar's request, my procedures for getting this program to work...

1. Prerequisites
  • pygeotrack, which can be downloaded here: https://garage.maemo.org/projects/pygeotrack/
  • Web server with Apache, MySQL, and PHP.
  • (recommended) PHPMyAdmin
  • FTP or SSH/SFTP access to the server
  • Nokia N900 and USB data transfer cable
  • Knowledge of how to use the N900 command line and HTML.

2. Web server
  • Upload the contents of the server folder onto the server.
  • Create a database and create a table called "gps"
  • Add the following fields in the table. Data type is in parentheses:
    - id (int)
    - lat (float)
    - lon (float)
    - bear (float)
    - speed (float)
    - datum (datetime)
    - schlussel (varchar)

    NOTE:
    datum is German for "date," and schlussel is German for "key." When creating a field of varchar type, you must specify the length. For this program to function properly, you must put in a positive integer.
  • Edit settings.php with your settings (MySQL server, user name, password, etc.).

3. Nokia N900
  • In the client folder, edit pygeosettings.cfg with your server's URL and key.
  • Create a folder.
  • Upload the contents of the client folder to the N900.

4. Front-end improvements
I replaced the index.html with one of my own. To create a link to generate the KML file, I linked to:
Code:
creator.php?name=BikeMSLocator&desc=&key=0500&int=600
And for the map, I created an iframe with source
Code:
googlemap.php?key=0500&openmap=Submit
As you see above, my key was 0500, which was my rider number on the Bike MS event. Customize your own replacement index.htm with decorations of your own liking. Rename the original index.htm as testing.htm or something.

5. Execute
  • Open up X Terminal on the N900.
  • Navigate to the folder you put the contents of the client folder.
  • Execute python locupdate.py.

Those are my procedures. I may have missed a few things as it has been about a month since I did this. In any case, send me a PM with your issues and corrections, and I'll correct this post accordingly. Once we get this shaken out, let's put this on the wiki.

Last edited by cyeung; 2010-10-05 at 11:05. Reason: Added clarification for key.
 

The Following 2 Users Say Thank You to cyeung For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:03.