maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   GPS/SMS in command line (https://talk.maemo.org/showthread.php?t=45320)

ozen78 2010-02-25 09:59

Re: GPS/SMS in command line
 
Quote:

Originally Posted by noobmonkey (Post 539579)
Jozeph, i am learning to program in python and doing this healthcheck application

Similar to what you want? (Well, bits of it)

Hi noobmonkey

I know you are busy with the HealthCheck application, which I think is a great tool to have.

I think it would be fairly easy to for someone with you talents to write a script that checks GPS location on a pre determined time scale and saves the data to a log file, continuously overwritten. 5 minutes later for this data to be ftp or uploaded to a server directory that can be selected by the user.

further more I think people also wanted the ability to be able to send an SMS to activate and de-activate this feature just like instamapper.com.

plus i think this topic need to be merged, as usual people start new threads and posts without searching to see if there is already an existing topic - http://talk.maemo.org/showthread.php...ighlight=theft

noobmonkey 2010-03-04 16:29

Re: GPS/SMS in command line
 
Quote:

Originally Posted by ozen78 (Post 545566)
Hi noobmonkey

I know you are busy with the HealthCheck application, which I think is a great tool to have.

I think it would be fairly easy to for someone with you talents to write a script that checks GPS location on a pre determined time scale and saves the data to a log file, continuously overwritten. 5 minutes later for this data to be ftp or uploaded to a server directory that can be selected by the user.

further more I think people also wanted the ability to be able to send an SMS to activate and de-activate this feature just like instamapper.com.

plus i think this topic need to be merged, as usual people start new threads and posts without searching to see if there is already an existing topic - http://talk.maemo.org/showthread.php...ighlight=theft

Hi Ozen, sorry didnt see this post :D (Well havnt looked for a while)

Sounds doable :D - but i have a few apps on my list to do after Healthcheck...
If no-one has got round to it, will definitley look into it when i can :D

synthaxx 2010-03-06 22:15

Re: GPS/SMS in command line
 
Quote:

Originally Posted by jozeph (Post 539685)
Maybe... I already contacted pavan before...

But to help, I need to understand first all resources available... I'm discovering how to perform some actions, like take a picture from front camera, access GPS data, detect Sim Card changes, intercept SMS messages, etc.

I'm trying something similar, and have gotten a part of it working.

First, setup a reverse ssh connection to one of your local machines (this seems like a good tutorial to do this).
It would be easier if we had autossh, but this looks like it'll do.

After you've done this you can login to the server you're connected to (i'm assuming you forwarded to port 2210) and do a:

Code:

ssh -p 2210 root@localhost
to login to your phone.

To take a pic with the front cam do:

Code:

gst-launch v4l2src device=/dev/video1 ! ffmpegcolorspace ! pngenc ! filesink location=/home/user/MyDocs/frontcam.png
and sftp the picture over to your server with:

Code:

sftp -oPort=2210 root@localhost
on your server with which you grab the /home/user/MyDocs/frontcam.png .


With this method you can also start vnc if you have x11vnc installed by calling "x11vnc" from the commandline and making sure in the first step to also send over your vnc port (standard is 5900). Or you can use it to have mplayer play an MP3 if you lose the phone, which is how i figured all this out :D

I haven't figured out how to read the GPS from here yet though, if anyone has any info on that i'd be very grateful.

jozeph 2010-03-11 23:35

Re: GPS/SMS in command line
 
With this command below:

Quote:

gst-launch v4l2src device=/dev/video1 ! ffmpegcolorspace ! pngenc ! filesink location=/home/user/MyDocs/frontcam.png
I get a completely black picture. I can't see anything....

noobmonkey 2010-03-12 00:06

Re: GPS/SMS in command line
 
can never remember of that is front or back camera -
change the number below to a 0 and try again :)

(if 1 is the back camera, then you need the lens cover open, if it is not, and it is the front, then aim it at a bright light!!!!....

gst-launch v4l2src device=/dev/video1 ! ffmpegcolorspace ! pngenc ! filesink location=/home/user/MyDocs/frontcam.png

gst-launch v4l2src device=/dev/video0 ! ffmpegcolorspace ! pngenc ! filesink location=/home/user/MyDocs/frontcam.png

noobmonkey 2010-03-12 00:07

Re: GPS/SMS in command line
 
Just another thought, checked my code and i do it slightly differently.....

http://talk.maemo.org/showthread.php...2Fdev%2Fvideo0

jozeph 2010-03-12 13:06

Re: GPS/SMS in command line
 
The problem is: all pictures from Front Camera is completely dark.

Alan_Peery 2010-03-12 13:55

Re: GPS/SMS in command line
 
Quote:

Originally Posted by jozeph (Post 565003)
The problem is: all pictures from Front Camera is completely dark.

A guess: try this as root, following a "sudo gainroot" after you've installed rootsh. I'm thinking about permissions on the video device.

If this doesn't do help, I'd suspect a hardware fault.

Does anyone else have other tests?

jozeph 2010-03-12 14:36

Re: GPS/SMS in command line
 
2 Attachment(s)
Please, take a look these attached images... Both are from front camera using command line.

If I try the 'mirror' application, the images from front camera is fine.

Quote:

Originally Posted by Alan_Peery (Post 565063)
A guess: try this as root, following a "sudo gainroot" after you've installed rootsh. I'm thinking about permissions on the video device.

If this doesn't do help, I'd suspect a hardware fault.

Does anyone else have other tests?


noobmonkey 2010-03-12 15:08

Re: GPS/SMS in command line
 
As i said, point it at a realllllllllllly bright light :D


All times are GMT. The time now is 23:43.

vBulletin® Version 3.8.8