maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   work in progress: simple vertical sms app: vertsms (https://talk.maemo.org/showthread.php?t=51635)

MohammadAG 2010-05-27 20:11

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by neboja (Post 683894)
@MohammadAG
tell me please: i saw that is implemented that it stores sms-s in conversation, but someone said that recipient doesn't recive sms... but i think that it would be resolved.... anyhow, i was wondering is it implemented that you can READ a recived sms-s???
i am not still using this app, still waiting to be stable... ;)
cheers!

Please note that I have not developed this app, all credit goes to ossipena, and contributers (aspidetes, qwerty12, frals etc...).
I only maintain the package itself.

ossipena 2010-05-28 07:31

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by neboja (Post 683903)
i know i know! i was just wondering... :)

and it will be very dirty piece of code if it will be done.... probably affect a bit to battery life etc...

no luck with current octification function. the current pulling ascii code works up all the way to z.

so it isn't even close to etsi standards :D so it will be rewritten and after that hopefully we can get every char available for texting to work. (and mapped behind buttons at some point)

damn if the sending doesn't work for everyone. do you get delivery reports with latest version?

now it would be nice if someone who knows how things should be implemented. the problem is TON. 1= international, 4=local. how in earth some carriers don't deliver to international number format when program assigns TON=1 in that case?!? you do have plus in front of the international number, don't you?

wheatbisc 2010-05-28 10:24

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by MohammadAG (Post 683869)
Code:

python /opt/vertsms/vertsms_gui.pyc
What does the output of that (in terminal) say?

Trackback (most recent call last):
File "/opt/vertsms/vertsms_gui.oy", line 19 in <module>
from vertsms import config, sms, pygobject
File "/opt/vertsms/vertsms/sms.py", line 5, in <module>
import ctypes, uuid, glib, gobject
ImportError: No module named glib

MohammadAG 2010-05-28 10:43

Re: work in progress: simple vertical sms app: vertsms
 
Hmm, same problem that was sent to me via email
http://talk.maemo.org/showpost.php?p...&postcount=206

Missing dependencies? I can't really check since I have all python packages installed

wheatbisc 2010-05-28 11:28

Re: work in progress: simple vertical sms app: vertsms
 
Can I check it somehow? With a little guidance, we might find the problem :)

MohammadAG 2010-05-28 11:30

Re: work in progress: simple vertical sms app: vertsms
 
apt-get install python-gobject
as root ^

wheatbisc 2010-05-28 12:21

Re: work in progress: simple vertical sms app: vertsms
 
I get the following:
Err http://repository.maemo.org fremantle-1.2/free python-gobject 2.16.1-1maemo1
Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/extras/p...emo1_armel.deb Temporary failure resolving 'repository.maemo.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Frank Banul 2010-05-28 14:22

Re: work in progress: simple vertical sms app: vertsms
 
You don't even need to import glib or gobject for the code you have in sms.py.

And for that matter, you can remove sqlite3 import and code, it's not being used if I'm interpreting correctly.

Code:

connection = sqlite3.connect(os.path.join(os.environ['HOME'],
                                    '.rtcom-eventlogger', 'el.db'))
        cursor = connection.cursor()       
        cursor.execute('SELECT id FROM Events')
        id_array = cursor.fetchall() 
        seq_id = max(id_array)[0] + 1

Yes I've been reusing your code in an application that I work on. :)

Frank

Quote:

Originally Posted by wheatbisc (Post 685201)
Trackback (most recent call last):
File "/opt/vertsms/vertsms_gui.oy", line 19 in <module>
from vertsms import config, sms, pygobject
File "/opt/vertsms/vertsms/sms.py", line 5, in <module>
import ctypes, uuid, glib, gobject
ImportError: No module named glib


aspidites 2010-05-28 15:53

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by Frank Banul (Post 685760)
You don't even need to import glib or gobject for the code you have in sms.py.

And for that matter, you can remove sqlite3 import and code, it's not being used if I'm interpreting correctly.

Code:

connection = sqlite3.connect(os.path.join(os.environ['HOME'],
                                    '.rtcom-eventlogger', 'el.db'))
        cursor = connection.cursor()       
        cursor.execute('SELECT id FROM Events')
        id_array = cursor.fetchall() 
        seq_id = max(id_array)[0] + 1

Yes I've been reusing your code in an application that I work on. :)

Frank

Probably left over from the swithc from direct database manipulation to the rtcom C library.

As for code reuse...that's what open source is about :-)

ossipena 2010-05-30 19:01

Re: work in progress: simple vertical sms app: vertsms
 
don't touch the sqlite! it fetches the unique id needed for adding a message. it seems to be easier than api way apparently and since it only reads one column through it shouldn't mess the db up.

phew just got new version of sms.py working. now with 100% compatibility to etsi standard except curly brackets and couple other special chars. so едц shouldn't be a problem anymore (and any char that isn't at exactly same place ascii vs etsi)

will push it to git as soon as I get it cleaned up.

e: and someone copying code from me is a honor for me ;)

ee: damn it isn't working, something messes the codes up between creating array and sending... will be investigating it.


All times are GMT. The time now is 13:44.

vBulletin® Version 3.8.8