Notices


Reply
Thread Tools
Posts: 110 | Thanked: 14 times | Joined on Sep 2010
#31
Thanks sir for very fast response will check this now
 
Posts: 110 | Thanked: 14 times | Joined on Sep 2010
#32
Originally Posted by weißelstone View Post
...So, is there any interest in this application? If some people would be interested I'd package it up and set up a svn (or garage page, didn't look into the whole garage thing yet). I'd also be happy if someone wants to work on it together with me (that's where the SVN comes into the game).
are these files updated? recent changes??
i like to try this as cyeung did
https://garage.maemo.org/plugins/scm...oot=pygeotrack
 

The Following User Says Thank You to chivar For This Useful Post:
Posts: 110 | Thanked: 14 times | Joined on Sep 2010
#33
login as: user
user@192.168.1.100's password:


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ cd /home/user
~ $ mv clientside/ pygeotrack
~ $ cd pygeotrack/
~/pygeotrack $ cat pygeosettings.cfg
[Settings]
server: http://192.168.1.102/pygeotrack/upload.php
key: pygeotrackern900
~/pygeotrack $ python locupdate.py
Traceback (most recent call last):
File "locupdate.py", line 6, in <module>
import conic
ImportError: No module named conic
~/pygeotrack $ sudo su apt-get install conic
Password:
Sorry, user user is not allowed to execute '/bin/su apt-get install conic' as root on Nokia-N900.
~/pygeotrack $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

where can i get the conic thing?? can anyone please post a link thank you all


===============================

was able to locate conic module in python-conic.. now my problem is the page refresh too fast no time to parse the url passed by n900 to host/server

===============================

now im getting error

Lat: 14.339917
Lon: 121.049910
Bear: nan
Speed: nan
Key: pygeotrackern900
Warning: mysqli::mysqli() [function.mysqli]: (HY000/2003): Can't connect to MySQL server on '192.168.1.102' (111) in /var/www/pygeotrack/mysql.php on line 3
Konnte keine Verbindung zur Datenbank aufbauen: Can't connect to MySQL server on '192.168.1.102' (111)(2003)

Last edited by chivar; 2010-10-31 at 15:32. Reason: cant connect to mysql
 
Posts: 110 | Thanked: 14 times | Joined on Sep 2010
#34
still getting errors
i dunno what else to change i already made sure my login credentials is correct

Lat: 14.583719
Lon: 121.029654
Bear:
Speed:
Key: pygeotrackern900Konnte keine Verbindung zur Datenbank aufbauen: Unknown MySQL server host 'http://myn900.atwebpages.com' (1)(2005)



// SQL-Connection Settings
$host= "http://myn900.atwebpages.com"; <-- *fdb3.awardspace.com

$user = "522978_sql";
$pass = "1f4808fd";
$database = "gps";



===============================
11.07.2010
i am now able to write to db
http://myn900.atwebpages.com/upload....geotrackern900

now the problem is the link
http://myn900.atwebpages.com/googlem...geotrackern900
doesn't show the correct gps coords from the locupdate.py
even when i export the kml file and opened it with google earth
it always end up somewhere in ocean in the african continent heheheh

=================================
im now good

Last edited by chivar; 2010-11-07 at 11:50.
 
Posts: 299 | Thanked: 241 times | Joined on Oct 2009 @ Singapore
#35
Hi,

Any chance to modify any of the stuff discussed in this thread to provide the functionality outlined in Running a marathon with the N900?

Thanks,

Magnus
__________________
My Maemo Apps:
QTeachMe
- Flashcard app
MobiTifo (which was formerly known as QSportsEvent) - Sports leagues tracking (mainly football).
 
Posts: 94 | Thanked: 40 times | Joined on Jun 2010 @ Germany
#36
Originally Posted by chivar View Post
are these files updated? recent changes??
i like to try this as cyeung did
https://garage.maemo.org/plugins/scm...oot=pygeotrack
They are always the latest files. The only changes I made are from yesterday adding support for basic auth to the client so that you can secure the web interface via .htaccess (Google Earth asks for the password, too. Google Maps doesn't work then because the google servers can't parse the password protected file) and some optical tuning for the interface of the web page.
Originally Posted by chivar View Post
im now good
Nice to see. Sorry but the project was on ice for a few months due to time issues.
Originally Posted by magnuslu View Post
Hi,

Any chance to modify any of the stuff discussed in this thread to provide the functionality outlined in Running a marathon with the N900?
I don't think this moves into the direction you are looking into. This doesn't show any information to the user. It's intended to run in background and show all information in Google Earth or a Web-Page. Disctance/remaining distance/average speed and time are not that hard I guess (and are a very good idea), still they would only show up on the computer and in the debug view on the phone.
For the sms update have a look at smscon, it sends your location (with google link) to every mobile that sends a specific codeword to your phone (also an email if you want). I don't know about twitter as I'm not using it, guess the API is not that hard but I won't do it.

I would love to write an optional GUI for the script (especially for the settings) but I'm completely new to maemo programing. If someone wants to make it it needs the following to work with the server:That's in fact eveything and also the reason I didn't bother learning GUI-coding yet, python was the easiest I could find to achieve a connection to my server (even thought my connection watcher and time settings do not really work) but it worked for me and then I stopped until now.
Originally Posted by cyeung View Post
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.
I thought key in the database could be misleading as "key" is sometimes used instead of "id" and so I made it German (well without the ü), then date got German by incident too

Last edited by weißelstone; 2010-12-15 at 08:43.
 
Posts: 44 | Thanked: 28 times | Joined on Mar 2010
#37
Originally Posted by davall View Post
Figured out. Nice solution with these python and php scripts.
Where exactly did you put it?
the time.sleep(600) i mean...

Last edited by ny-hardcore; 2011-01-14 at 16:00.
 
Posts: 110 | Thanked: 14 times | Joined on Sep 2010
#38
Originally Posted by ny-hardcore View Post
Where exactly did you put it?
the time.sleep(600) i mean...
yeah which file do we need to edit to add that delay? xterm is cluttered with the scrolling/polling of gps data
 
Posts: 1 | Thanked: 1 time | Joined on Jan 2011
#39
Originally Posted by ny-hardcore View Post
Where exactly did you put it?
the time.sleep(600) i mean...
Being a Python newbie myself as well (ny-hardcore: no pun intended), I found a quick workround for similar need by simply adjusting the originally defined wait state in file locupdate.py;
Code:
preferred_interval=location.INTERVAL_10S)
.. into;
Code:
preferred_interval=location.INTERVAL_60S)
- being equal to fixed 60s update interval.


<note:added per notices>

Additionally, you may or may not wish to consider adding shebang/hashbang into the header; at least yours truly did not seem to get the Python script initialized without generated erros until having inserted the *shebang* into file locupdate.py.

To insert shebang into python client's header section, let's first check the abs path to be added as a substring from N900 shell prompt;
Code:
root@N900:/gps# which python
/usr/bin/python
root@N900:/gps#
Now, let's add the shebang as a first line entry into file locupdate.py based upon above query response;

Code:
#!/usr/bin/python <-- to be added as 1st line entry
My 2 cents.

//beetraham

Last edited by beetraham; 2011-03-20 at 18:34.
 

The Following User Says Thank You to beetraham For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 07:59.