Notices


Reply
Thread Tools
Posts: 183 | Thanked: 33 times | Joined on Aug 2010
#41
How easy is this? Can I backup my applications before I help you test it? What apps do I have to have pre-installed? I don't code, I like tech but I dunno how to use the X terminal etc. so do I need to know how to?
 
Posts: 56 | Thanked: 11 times | Joined on Jan 2010
#42
i myself am very much a beginner in Xterminal, i know my way around some codes, but not allot.

I somehow can't get it to work while i've done everything that i'm supposed to do...

to give you a simple guide, all you have to do is type these codes in xterminal. Make sure you've installed Rootsh (from the cataloges in the app manager

Open Xterminal and type:
Code:
root
apt-get install maemo-python-device-env
apt-get install python-location 
apt-get install pexpect
apt-get install ncftp (cli ftp client)
apt-get install gstreamer-tools 
apt-get install openssh
close xterminal

open smscon_daemon (from where you downloaded it to) with "notes"

and edit these lines into the appropriate lines

Code:
RemoteHost = 'XXXXXXXXXXXXX'   # remote server address
RemotePort = 22   # remote server port
RemotePath = '/XXXXXXXXXXXX'  # remote server ftp path
RemoteUser = 'XXXXXXXXXXXXX'   # remote user
RemotePassword = 'XXXXXXXXXXXXX' # remote password
after this save the file and close "notes"

now move both the files to N900/newfolder (create the newfolder if you don't have it yet)

open Xterminal: note some letters are Capitals!
Code:
sudo gainroot
cd /home/user/MyDocs
cp /home/user/MyDocs/newfolder/* /usr/bin
close Xterminal

open Xterminal again:
Code:
root
cd /usr/bin
chmod 755 smscon
chmod 755 smscon_daemon
after that smscon should work.

you can run smscon by opening Xterminal:
Code:
root
smscon -start
for other commands use this code:
Code:
root
smscon -help
use your up arrow to get the last input you entered in Xterminal, and change it if it's easier than retyping the whole code.

Good luck, however somehow my phone doesn't recognise python hope yours does.

Last edited by AlexV12; 2010-08-25 at 18:45.
 

The Following User Says Thank You to AlexV12 For This Useful Post:
Posts: 12 | Thanked: 3 times | Joined on Jul 2010 @ Europa Majora
#43
Has anyone tried to build this stuff on top of IAMHERE instead of starting from scratch? We had this in the works for a while but it was basically abandoned.

http://wiki.maemo.org/I_am_here

it could be idea to combine these projects

just a thought
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#44
@ AlexV12:

It's smscon -help (no space between minus and command)

I am currently rewriting the code, so new version is comming soon.

Last edited by digitalvoid; 2010-08-25 at 18:27.
 
Posts: 56 | Thanked: 11 times | Joined on Jan 2010
#45
Originally Posted by evilsquelch View Post
Has anyone tried to build this stuff on top of IAMHERE instead of starting from scratch? We had this in the works for a while but it was basically abandoned.

http://wiki.maemo.org/I_am_here

it could be idea to combine these projects

just a thought
Iamhere doesn't support PR1.2 so i think it would be much more of a hassle to build it on top of Iamhere and looking at the progress Digitalvoid has made it would be stupid to start all over now.

It would have been a great idea, as Iamhere worked perfect including sending an email with the frontcam image etc. too bad it got abandoned
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#46
I like to implement email sending of frontcam picture (is a beter idea, easier) but at the moment I don't know how. I.m trying to find out.
 
Posts: 62 | Thanked: 6 times | Joined on Jun 2010 @ Poland
#47
Originally Posted by digitalvoid View Post
Ssh (it's technically a reverse ssh connection) is only needed if you want to control you device (command 'Remote on' & 'Remote off').

Ftp is used for sending the frontcam photo to you own ftp server (command 'Camera').

I check if the connection is active (before ftping) by checking if my website can be reached. Why? I could use a simple ping to my IP address (server), but the ping is not always passed through GPRS or LAN networks with a strict firewall. Port 80 (website) is always passed, so smscon only works if a website is available on the server to connect to. I will look in to it; maybe I change this to a ping again with a fallback to website checking.

Does anybody know how I can compose & send a email by cli.
Python smtplib doesn't work either.

Yes, it can check website. But what when my site have adress http://asgarmy.ovh.org and to send to it any file i must log to ftp - ftp.60free.ovh.org ?
I can't send throw ftp.asgarmy.ovh.org.
So i can't use it script becouse when i type in remotehost asgarmy.ovh.org smscon don't send anything.
When i type ftp adress (ftp.60free.ovh.org) in remote host the
function def StatusRemoteHost(): check this adress and send my error, becouse on this adress (ftp.60free.ovh.org) aren't any site. It is only ftp.
I think you now know what is my problem...
So can you help me now?

Mabye this link can help You:
http://docs.python.org/library/email
__________________
Maemo Meego Maego!
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#48
I have changed the StatusRemoteHost() to use the ping command, then it would work for you. (is much better solution)

Smtplib in Python can indeed send emails, I will implement this in favor of ftp sending of frontcam picture.

In a couple of days I will post a new version of smscon...
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#49
Updated the first post, new version coming soon!
 

The Following 2 Users Say Thank You to digitalvoid For This Useful Post:
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#50
Updated the first post, new version (v2.1) is out!
 
Reply


 
Forum Jump


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