maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 + lighttpd + PHP + web interface to control N900 (https://talk.maemo.org/showthread.php?t=61107)

jvesiluoma 2010-08-27 06:17

Re: N900 + lighttpd + PHP + web interface to control N900
 
Quote:

Originally Posted by chealyte (Post 798895)
request feature:
*always online lock : so phone will connect to internet all time if phone on or try pick up wifi.
-if phone got stolen and theif turn off and switch sim or take sim out turn on and try to make sure phone wont go online.. by doing so phone will try to broadcast it self location in anyway possible .. this lock will be unlock with master code if user do not have code phone will try to find away to go online.

Hmm, yes, I can tinker with phone options so that the phone will try to connect to internet when possible.

I tried to make scripts as hidden as possible, so that in case it is stolen, it will send it's location silently so that the thief will not notice it.

I thought that an option to gather as much info as possible would also be nice. N900 could scan for WLAN networks, bluetooth devices, take photos, record sound for 30 secs... Maybe that would also help recovering the phone.

debernardis 2010-08-27 06:25

Re: N900 + lighttpd + PHP + web interface to control N900
 
I think your amazing efforts should be joined to those guys who are performing same things through sms or ssh. I haven't the urls at hand right now but they are in the forums.
This might result in a greatly useful app :)

pcerf 2010-08-27 06:57

Re: N900 + lighttpd + PHP + web interface to control N900
 
sounds like a great project! how is the whole thing performance-wise? i take it you have some kind of script running in the background that just checks if mentioned file is present on your remote webserver and if it is, it starts the webserver on the n900?

jvesiluoma 2010-08-27 09:08

Re: N900 + lighttpd + PHP + web interface to control N900
 
Quote:

Originally Posted by pcerf (Post 799783)
sounds like a great project! how is the whole thing performance-wise? i take it you have some kind of script running in the background that just checks if mentioned file is present on your remote webserver and if it is, it starts the webserver on the n900?


Only script that is running on regular basis is script that outputs device ip and gps coordinates to my web server. That script is running in crontab and it is run every 15 minutes.

Same script gets the parameter file from my web server (via wget) and checks the file for a line for launching the web server. Other parameters can also be added to this file, e.g. a parameter for launching a somekind of scan sweep with all of N900 'senses' in case user cannot connect to it and launch them from web interface. :)

Web server is pretty dormant most of the time when there is no usage and I haven't seen (with my usage) anything difference whether the lighttpd web server is running on the background all the time, or not. I prefer to keep it running all the time.

I plan to add options for somekind of scan with all possibilities of N900. Also, with the ability to give custom commands directly from web interface, user can e.g. also use the abilities of phone-control script by MohammadAG (thanks for that btw, nice little tool :) ).

paai 2010-08-27 10:36

Re: N900 + lighttpd + PHP + web interface to control N900
 
yes, verrry interested!

Paai

paai 2010-08-29 15:03

Re: N900 + lighttpd + PHP + web interface to control N900
 
Please, put the sources somewhere where we can have a look at it!

I installed lighttp+php on my nokia, and it works! Although I had to fiddle with dynamic links in /usr/bin and /usr/sbin because php-cgi5 was wrongly interchanged with php5.cgi.

What I need, and what I hope to find out from your scripts, is where the data of telephone numbers and similar stuff are hiding. I do know linux and I can program in php, but where the stuff is hidden on the N900 escapes me.

Paai

mail_e36 2010-08-30 15:37

Re: N900 + lighttpd + PHP + web interface to control N900
 
There is very much interest in this, please continue this effort.

azy141 2010-08-30 15:48

Re: N900 + lighttpd + PHP + web interface to control N900
 
im definetely interested too i always worry that my phone will be stolen one day and my lock wont be enough

jvesiluoma 2010-09-01 10:39

Re: N900 + lighttpd + PHP + web interface to control N900
 
I'll post some scripts as soon as I can (may take a few days). I'll clean them up a bit first.

I'm currently renovating my home, so I'm a bit busy next few weeks, but I'll do what I can.

mail_e36 2010-09-05 06:15

Re: N900 + lighttpd + PHP + web interface to control N900
 
sounds good, please keep us posted


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

vBulletin® Version 3.8.8