![]() |
Re: {Announce] SMScon (control your device with SMS)
Quote:
also i typed in the code: Code:
root Code:
Nokia-N900:/usr/bin# |
Re: {Announce] SMScon (control your device with SMS)
Can you show me all the errors you getting from starting smscon?
|
Re: [Announce] SMScon (control your device with SMS)
|
Re: [Announce] SMScon (control your device with SMS)
It looks like maybe Python isn't installed on your device...
In X Terminal, if you do this: Code:
Nokia-N900:~# python you should get this: Code:
Nokia-N900:~# python Use Ctrl + D to quit Python. |
Re: [Announce] SMScon (control your device with SMS)
Quote:
|
Re: [Announce] SMScon (control your device with SMS)
Do you edit this files on windows notepad? This is a fcking app.- it change a file, that n900 can't read it.
Try apt-get install nano cd folder nano smscon And that try to edit. To author this app: It is possible to give o this app email function? Photos can be easy send to email server. Can anyone show me how to for example configure a server for smscon?? What i must write here Code:
RemoteHost = 'ftp.60free.ovh.org' # remote server address |
Re: [Announce] SMScon (control your device with SMS)
either edit it with notepad on your pc, or open the file in "notes" on your n900 and edit the file there.
|
Re: [Announce] SMScon (control your device with SMS)
Quote:
RemotePort is the port on your server for the ssh connection (normally this is port 22). Your server must have a running ssh server. RemotePath is the path to connect to on your server for ftp. (example: /ftp/nokia). (ftp uses port 21 for connection) RemoteUser is the username for the ssh connection & ftp access. RemotePassword is the password for the RemoteUser for the ssh connection & ftp access. I have a home server with a fixed IP adddress (and a website) so I can configure it all very easely. It's very funny to ssh your phone through GPRS connection from your home (it's not super fast but it works ok). I will look into making smscon also have a email function. I'm currently rewriting parts of smscon & smscon_daemon (code cleanup, using a settings file (smscon_config) instead of editing smscon_daemon. |
Re: [Announce] SMScon (control your device with SMS)
hmn it's strange.
Why you using ssh? I test this but in log write: searching "ftp.60free.ovh.org" failed to find "ftp.60free.ovh.org" (max retries reached) But when i manualy try ncftpput -V -E -u user -p pass -P 21 ftp.60free.ovh.org / file it send successfully the file. So for what is the ssh necessary?? If i delete all ssh (ssh start, stop, status) and leave only function ncftpput it will work? Edit: I think it can't connect becouse in def StatusRemoteHost(): p = urlparse('http://' + RemoteHost) h = HTTP(p[1]) Have a http prefix. I have only ftp. Can anyone help? |
Re: [Announce] SMScon (control your device with SMS)
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. |
All times are GMT. The time now is 18:06. |
vBulletin® Version 3.8.8