maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Web Tracking/Anti theft/loss Tool (https://talk.maemo.org/showthread.php?t=51027)

peyob 2010-04-27 14:42

Re: Web Tracking/Anti theft/loss Tool
 
Is anybody can explain me how use this feature? I install all scripts as explanation, but nothing happened.
Thanks

benh_n900 2010-04-27 16:32

Re: Web Tracking/Anti theft/loss Tool
 
This feature is mainly a tool for developers at this stage (hence posting in the development thread and password protecting it).

Having added the device on the system, put the scripts in the correct places on your device and modified them as needed, you will need to restart your network (/etc/init.d/networking restart) or reboot the phone to get it to contact the server and perform whatever actions you have setup. These scripts only do something when the network is restarted, there is no interface on your phone for anything.

Once again - the scripts are there more for reference so I don't guarantee they will work right off the bat.

It is my hope that one of the experienced developers on this forum will knock together an app that is easily installable and deals with configuration that will replace the scripts.

peyob 2010-04-28 07:18

Re: Web Tracking/Anti theft/loss Tool
 
Thank you benh_n900

mrover 2010-07-07 11:40

Re: Web Tracking/Anti theft/loss Tool
 
After running whereami.py I am getting following error:

Code:

Getting Location from GPS
Call http://ws.geonames.org/findNearestAddress?lat=xxxxxxxxxxx&lng=xxxxxxxxxx
Traceback (most recent call last):
  File "./whereami.py", line 82, in <module>
    addr=get_addr_from_xml(addrxml)
  File "./whereami.py", line 14, in get_addr_from_xml
    addressobj=xmldoc.firstChild.childNodes[1]
IndexError: list index out of range

Could you tell me what's wrong?

benh_n900 2010-07-07 23:20

Re: Web Tracking/Anti theft/loss Tool
 
Quote:

Originally Posted by mrover (Post 743583)
After running whereami.py I am getting following error:

Code:

Getting Location from GPS
Call http://ws.geonames.org/findNearestAddress?lat=xxxxxxxxxxx&lng=xxxxxxxxxx
Traceback (most recent call last):
  File "./whereami.py", line 82, in <module>
    addr=get_addr_from_xml(addrxml)
  File "./whereami.py", line 14, in get_addr_from_xml
    addressobj=xmldoc.firstChild.childNodes[1]
IndexError: list index out of range

Could you tell me what's wrong?

I am not 100% sure, but my guess is that there is a problem accessing geonames to get the address text - you could just remove those lines from the script and it might work, although you would only get the latitude and longitude (which is enough for the GPS fix in any case).

dannym 2010-07-12 03:02

Re: Web Tracking/Anti theft/loss Tool
 
If you want, I'll create a debian package of this for easy installation. What E-Mail address and Name should I list for the maintainer in the package?

grog 2010-07-29 19:06

Re: Web Tracking/Anti theft/loss Tool
 
First I'd like to say that this is a really kewl concept. Thanks for sharing. :)

A few questions about issues I'm having:

First, assuming I put the scripts in /home/opt/n900tracking & symlink that directory to /opt, the c_password value in the trackerconstants.py is the only thing that needs modifying, correct?

Next, looks like I accidently mixed my IMEI & IMSI #'s the first time, so I properly added a second device but I can't seem to delete the first one. Is this just a missing feature or am I expecting something wrong?

Lastly, no matter what I try I see in the log "Update attempt made with incorrect password (PASSWORD)". It needs the password of my account or something else? I tried both "developer" & "maemo" & have changed my account password several times same error. Running form the command line doesn't give much feedback:

Code:

$ /home/opt/n900tracker/getactions.py
Call http://tracking.isgreat.org/api?IMEI=MYIMEI&IMSI=MYIMSI&Pass=MYPASSWORD
mode is
Checking if location was requested
Checking if ssh was requested
Checking if SMS was requested

TX

grog 2010-08-12 16:14

Re: Web Tracking/Anti theft/loss Tool
 
Quote:

Originally Posted by grog (Post 769517)
A few questions about issues I'm having:
[...snip...]

(BUMP) Anyone there? Was kinda hoping to have a tracking system in place as I;m going on a trip next week & I'd hate to be put in the situation to say "I only wish I had" :).

benh_n900 2010-08-12 20:19

Re: Web Tracking/Anti theft/loss Tool
 
Quote:

Originally Posted by dannym (Post 748707)
If you want, I'll create a debian package of this for easy installation. What E-Mail address and Name should I list for the maintainer in the package?

That would be nice, although I am not sure that my knocked-together scripts are ready for easy installation - ideally it needs someone to create a gui for configuration first I think. I am not sure I have the time/resource to properly support the client side stuff for this right now :(

benh_n900 2010-08-12 20:26

Re: Web Tracking/Anti theft/loss Tool
 
Quote:

Originally Posted by grog (Post 784345)
(BUMP) Anyone there? Was kinda hoping to have a tracking system in place as I;m going on a trip next week & I'd hate to be put in the situation to say "I only wish I had" :).

Sorry - I have been away and without decent internet access for the last month...

Quote:

Originally Posted by grog (Post 769517)
First, assuming I put the scripts in /home/opt/n900tracking & symlink that directory to /opt, the c_password value in the trackerconstants.py is the only thing that needs modifying, correct?

Yep

Quote:

Originally Posted by grog (Post 769517)
Next, looks like I accidently mixed my IMEI & IMSI #'s the first time, so I properly added a second device but I can't seem to delete the first one. Is this just a missing feature or am I expecting something wrong?

The delete button doesn't delete it? What browser are you using?

Quote:

Originally Posted by grog (Post 769517)
Lastly, no matter what I try I see in the log "Update attempt made with incorrect password (PASSWORD)". It needs the password of my account or something else?

This is the password you set for the device (optional) when you press the actions button.

Hope this helps!

Ben


All times are GMT. The time now is 06:22.

vBulletin® Version 3.8.8