maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] SMScon (control your device with SMS) (https://talk.maemo.org/showthread.php?t=60729)

digitalvoid 2010-08-30 13:21

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by zimon (Post 802195)
Would be good next step before new features is added.

http://wiki.maemo.org/Extras-devel

I have made a deb file (yeah!) with PyPackager, but I have some trouble with the dependancy files (they won't automatically install). If the dependancy files are already on the device it will install fine. Some option I missed?

Code:

p.author = 'Digitalvoid'
p.maintainer = 'Digitalvoid'
p.email = xxxx@xxxxxxxx.nl'
p.depends = 'maemo-python-device-env, python-location, pexpect, openssh'
p.section = 'user/utilities'
p.arch = 'armel'                   
p.urgency = 'low'                             
p.distribution = 'fremantle'               
p.repository = 'extras-devel'


AlexV12 2010-08-30 18:36

Re: [Announce] SMScon (control your device with SMS)
 
what happens if i change the code:
Code:

Comlist                                                          = ['location'
]

and all of the other comlist codes to a different word.

say for example, i'd want to change the smstrigger: 'location' to 'where are you'

as that wouldn't trigger the thiefs attention so much when you send a tekstmessage with "where are you"

digitalvoid 2010-08-30 18:56

Re: [Announce] SMScon (control your device with SMS)
 
New version is out (v0.2.2).

@ AlexV12:

In the new version you can customize this in the smscon_config file.

AlexV12 2010-08-30 20:04

Re: [Announce] SMScon (control your device with SMS)
 
and where do i find/edit the smscon_config file after i've installed the .deb?

digitalvoid 2010-08-30 20:47

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by AlexV12 (Post 802585)
and where do i find/edit the smscon_config file after i've installed the .deb?

In /usr/bin

See first post (has all the new information)

knypek3 2010-08-30 21:03

Re: [Announce] SMScon (control your device with SMS)
 
hmn...
when i install deb and try call nothing happen.
and in log write
Code:

INFO:root:(Mon Aug 30 22:57:16 2010) DAEMON: user settings succesfully loaded from "smscon_config" file
INFO:root:(Mon Aug 30 22:57:16 2010) DAEMON: reading valid IMSI code (260019603296619) from file
INFO:root:(Mon Aug 30 22:57:16 2010) DAEMON: authorized IMSI code found
INFO:root:(Mon Aug 30 22:57:16 2010) DAEMON: smscon autoloads at boot
INFO:root:(Mon Aug 30 22:57:16 2010) DAEMON: no test arguments passed for daemon
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/bin/smscon_daemon", line 207, in SMSreceive
    ExecuteCommand(Message, Number) # execute valid sms command
  File "/usr/bin/smscon_daemon", line 247, in ExecuteCommand
    if Com in ComList:
NameError: global name 'ComList' is not defined
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/bin/smscon_daemon", line 207, in SMSreceive
    ExecuteCommand(Message, Number) # execute valid sms command
  File "/usr/bin/smscon_daemon", line 247, in ExecuteCommand
    if Com in ComList:
NameError: global name 'ComList' is not defined

To author.
When you giving a new version in deb, can you give a version in py also? I want python version more then deb.

AlexV12 2010-08-31 05:50

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by digitalvoid (Post 802626)
In /usr/bin

See first post (has all the new information)

i understand that, but how do i edit it, as normally you would edit the file before putting it in /usr/bin

Saturn 2010-08-31 06:21

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by AlexV12 (Post 802931)
i understand that, but how do i edit it, as normally you would edit the file before putting it in /usr/bin

Hi,

install leafpad from the application manager
Open xterm
type:
root
leafpad /usr/bin/smscon_config

You are ready to edit & save.

Hope it helps.

digitalvoid 2010-08-31 07:10

Re: [Announce] SMScon (control your device with SMS)
 
@ knypek3:

version 0.2.2 will be replaced by 0.2.3.

There is a bug in 0.2.2; I have forgotten to change the name of a variable. Sorry.

knypek3 2010-08-31 08:39

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by digitalvoid (Post 802974)
@ knypek3:

version 0.2.2 will be replaced by 0.2.3.

There is a bug in 0.2.2; I have forgotten to change the name of a variable. Sorry.

OK, thanks. I send You a priv.
Can you write a func when sms with command example "ssh" arrived
n900 connect to gprs and send to xterm command
"ssh -p 22 user-name@IP -R 1201:localhost:22" ??

But this command should be mod, to can manualy type IP and password.

It work's great and give a full control anywhere your n900 is.
http://www.youtube.com/watch?v=3msLEENRUcM


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

vBulletin® Version 3.8.8