maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Call Notify (https://talk.maemo.org/showthread.php?t=48501)

omeriko9 2010-04-04 23:58

Re: [Announce] Call Notify
 
1 Attachment(s)
Quote:

Originally Posted by bob0smith (Post 595633)
New to N900 (Hi all!) but have installed CallNotify. I too get the same message. Have done the above as root, restarted the N900 but same message.

Welcome :)

I'd like to check with you for missing dependencies.
Can you please download the attached file, place it in /home/user, and then run from terminal (as root):


mv test.txt text.py
chmod 755 test.py
python test.py


and paste the results here?
thanks.

bob0smith 2010-04-05 13:13

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 595647)
Welcome :)

I'd like to check with you for missing dependencies.
Can you please download the attached file, place it in /home/user, and then run from terminal (as root):


mv test.txt test.py
chmod 755 test.py
python test.py


and paste the results here?
thanks.

Ok, bear with me, I'm pretty new to this ...

I did the above; without root the file appears to run but outputs no results to terminal. If I sudo gainroot first, then I get -

process 4784: arguments to dbus_connection_get_data () were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some applications using the D-Bus library.
process 4784: arguments to dbus_connection_get_data () were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some applications using the D-Bus library.
Aborted

HTH

omeriko9 2010-04-05 13:25

Re: [Announce] Call Notify
 
Quote:

Originally Posted by bob0smith (Post 596221)
Ok, bear with me, I'm pretty new to this ...

I did the above; without root the file appears to run but outputs no results to terminal. If I sudo gainroot first, then I get -

process 4784: arguments to dbus_connection_get_data () were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some applications using the D-Bus library.
process 4784: arguments to dbus_connection_get_data () were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some applications using the D-Bus library.
Aborted

HTH

Thank you very much for trying.

Apparently there are no dependencies issue, but looks like there's a problem with the python-dbus bindings.

I did some google on that error, and it might be related to scratchbox, so I must ask - are you trying to install it on scratchbox? (I guess not because you do "sudo gainroot" and not "fakeroot").

Anyway, there's a workaround in the wiki, but it refers to the scratchbox issue. Perhaps it can help in case you're not running on scratchbox rather on the n900 itself.
I copied it from the wiki. Do in x-term:

Code:

eval $(dbus-launch --sh-syntax)
export DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_PID

Can't take guarantee on that code, didn't try it on my n900 (currently restoring from another reflash :) ), so don't do it unless you're willing to reflash on worst case (although I don't expect anything like that to be necessary).

After executing the above, run
"killall hildon-status-menu"
from x-term, and check again if you get the "internal error" from the control panel.

Thanks!

zomby 2010-04-05 20:26

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 595500)
Can you please go to x-term, root, and then run
chmod 755 /usr/lib/hildon-desktop/CallNotify.py
then restart, and then try go again to settings/extras/Call Notify and tell me please if you get this "Internal Error" again.

Thanks.

The was no execute flag on this file, it was 644.

chmod +x /usr/lib/hildon-desktop/CallNotify.py doesn't helped, I got the same error after the restart.

omeriko9 2010-04-05 21:07

Re: [Announce] Call Notify
 
Quote:

Originally Posted by zomby (Post 596796)
The was no execute flag on this file, it was 644.

chmod +x /usr/lib/hildon-desktop/CallNotify.py doesn't helped, I got the same error after the restart.

Thanks, this is not the first case of execution flag missing, I'll update this for next version.

Next step is checking for missing dependencies, can you please try this as user and as root?

Thank you.

omeriko9 2010-04-06 10:14

Re: [Announce] Call Notify
 
Hi All,

I've updated version 0.0.7-1 in extras-devel.

Anyone who downloaded it before and couldn't get it to work - please try this version.

Changes:

- No permission issue on the main execution file - fixed
- Refined dependencies (now using python2.5-xxx instead of python-xxx).

Please report here if it's working for you now, and even if it's not working.

Thanks and enjoy!

loukkis 2010-04-06 10:54

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 597461)
Hi All,

I've updated version 0.0.7-1 in extras-devel.

Anyone who downloaded it before and couldn't get it to work - please try this version.

Changes:

- No permission issue on the main execution file - fixed
- Refined dependencies (now using python2.5-xxx instead of python-xxx).

Please report here if it's working for you now, and even if it's not working.

Thanks and enjoy!

Not working...

omeriko9 2010-04-06 10:58

Re: [Announce] Call Notify
 
Quote:

Originally Posted by loukkis (Post 597506)
Not working...

thanks! Well I definitely hoped it will :)
back to the planning board...

BTW - do you mind doing some troubleshooting together?

zlatko 2010-04-06 14:06

Re: [Announce] Call Notify
 
Updated to 0.0.7-1 - not working again.

kylepsp 2010-04-06 14:46

Re: [Announce] Call Notify
 
Mine still isnt working, opening it in settings produces an internal error.

omeriko9 2010-04-06 15:07

Re: [Announce] Call Notify
 
Quote:

Originally Posted by kylepsp (Post 597783)
Mine still isnt working, opening it in settings produces an internal error.

Ok guys, I've added another dependency, hildon-desktop-python-loader, looks like it's required but didn't add it so far.

Soon, 0.0.8-1 will be available in extras-devel - could you please try this one?
I have a good feeling about this version... :p

omeriko9 2010-04-06 16:28

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 597817)
Ok guys, I've added another dependency, hildon-desktop-python-loader, looks like it's required but didn't add it so far.

Soon, 0.0.8-1 will be available in extras-devel - could you please try this one?
I have a good feeling about this version... :p

Can anyone that couldn't get it to work until now, can confirm there's a change?

Or is the silence because no one can get it to work?

neof1z 2010-04-06 16:59

Re: [Announce] Call Notify
 
I install it and it won't work

kylepsp 2010-04-06 17:04

Re: [Announce] Call Notify
 
Going to install now, 2 min.

omeriko9 2010-04-06 17:08

Re: [Announce] Call Notify
 
Quote:

Originally Posted by neof1z (Post 597975)
I install it and it won't work

When you go to "settings -> extras -> Call Notify" - can you see and save the settings?

Robb 2010-04-06 17:09

Re: [Announce] Call Notify
 
Some previous version didn't work for me.

With this one(0.0.8-1):
1) Sent myself SMS, saw information
2) Missed a call, saw information

Call notify Settings .. Check OK.

omeriko9 2010-04-06 17:12

Re: [Announce] Call Notify
 
Quote:

Originally Posted by Robb (Post 597989)
Some previous version didn't work for me.

With this one:
1) Sent myself SMS, saw information
2) Missed a call, saw information

Call notify Settings .. Check OK.

Ok, that's great news. Looks like we've found the fractious missing dependency :)

kylepsp 2010-04-06 17:13

Re: [Announce] Call Notify
 
Settings app now works! Notification doesn't work though


EDIT: It does, dont know why it didnt work on my first test but works well now!! Good work!

neof1z 2010-04-06 17:19

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 597987)
When you go to "settings -> extras -> Call Notify" - can you see and save the settings?

Yes but notification don't work.

omeriko9 2010-04-06 17:21

Re: [Announce] Call Notify
 
Quote:

Originally Posted by neof1z (Post 598002)
Yes but notification don't work.

How do you check it?
Best way is to call from another line or send SMS from another phone.
SMS to yourself won't work.

Also, try restart.

Robb 2010-04-06 17:24

Re: [Announce] Call Notify
 
Remeber (when SMS'ing to yourself) you have to switch off all the SMS applications before you recive the SMS, otherwise you don't get notified, because the application recieves your SMS and treates it like it's been seen already.

neof1z 2010-04-06 17:29

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 598006)
How do you check it?
Best way is to call from another line or send SMS from another phone.
SMS to yourself won't work.

Also, try restart.

I restart the phone and call my self from my land line didn't try sms and notification still don't work.

zlatko 2010-04-06 18:46

Re: [Announce] Call Notify
 
Finally it WORKED for me! ;-)
But:
1. Updated. I didn't get neither SMS received sound nor LED blinking notification. I only can hear the sound of CallNotify reminder beeping. In status I can see icon for sms(at last!). There was no indication for SMS left top corner, nor yellow note on desktop. I couldn't acknowledge alarm and turn it off. Had to go to "Conversations" and when I opened it alarm stopped(as expected).
2. Rebooted phone. First SMS there was only LED blinking and CallNotify alarm. Second SMS - CallNotify works as expected. Third SMS and onwards - again no notification.
So definitely there is an improvement, but still inconsistent operation. Keep it going - you are almost there! ;-)

PS. After killing hildon-status-menu I get notifications. Will have to see for how long.

omeriko9 2010-04-06 20:10

Re: [Announce] Call Notify
 
Quote:

Originally Posted by zlatko (Post 598124)
PS. After killing hildon-status-menu I get notifications. Will have to see for how long.

I don't think it will stop. I think that we've passed the last hurdle, which was the missing dependency.
From my experience with this app, it should work as expected from now on (unless I'll screw something up in a future version :p ).

omeriko9 2010-04-06 20:12

Re: [Announce] Call Notify
 
Quote:

Originally Posted by neof1z (Post 598014)
I restart the phone and call my self from my land line didn't try sms and notification still don't work.

@neof1z, try from terminal as root:
killall hildon-status-menu

If it doesn't work after that, try uninstall and reinstall.

You can also try this test to check for any other missing dependencies.

zlatko 2010-04-06 20:12

Re: [Announce] Call Notify
 
But it stopped. SMS from your answer didn't produce any notification. No status menu icon, no beep.

omeriko9 2010-04-06 20:15

Re: [Announce] Call Notify
 
Quote:

Originally Posted by zlatko (Post 598256)
But it stopped. SMS from your answer didn't produce any notification. No status menu icon, no beep.

SMS from my answer? Do you get SMS for forum replies? Or is it just email? Because there is no email notification...

zlatko 2010-04-06 20:17

Re: [Announce] Call Notify
 
I get e-mails, but every new e-mail in INBOX produces SMS via e-mail to SMS function.

Omega180984 2010-04-06 20:22

Re: [Announce] Call Notify
 
for me it works fine ;) THANKSSSS

testet avec sms

omeriko9 2010-04-06 20:30

Re: [Announce] Call Notify
 
Quote:

Originally Posted by zlatko (Post 598264)
I get e-mails, but every new e-mail in INBOX produces SMS via e-mail to SMS function.

Sorry, I'm not familiar with the email to SMS function - is that something you get from your email supplier? Or is it build-in to the phone?
Anyway, if you have the conversation app open while you receive an SMS you won't get any notification.

zlatko 2010-04-06 20:35

Re: [Announce] Call Notify
 
email2sms is function provided by GSM operator. You receive/send e-mail(first 160 symbols) as SMS. Of course Conversations is NOT open. I have tested with missed call as well, same result - works at first then stops fpr some reason.

bob0smith 2010-04-06 23:06

Re: [Announce] Call Notify
 
Seems to be working fine here too. Ty very much :)

BN900 2010-04-07 02:33

Re: [Announce] Call Notify
 
Will download in a bit

Awesome work man! Thanks a billion.

omeriko9 2010-04-07 02:46

Re: [Announce] Call Notify
 
Quote:

Originally Posted by zlatko (Post 598296)
email2sms is function provided by GSM operator. You receive/send e-mail(first 160 symbols) as SMS. Of course Conversations is NOT open. I have tested with missed call as well, same result - works at first then stops fpr some reason.

Nice. Sorry, I had to make sure about the conversations...
Well, at least it's working for the first missed call or SMS, and something else is stopping it from keep working.

I would suggest checking it from command line to track any errors as we did before, just don't forget to stop the status-menu one by temporarily moving the .desktop file from /usr/share/hildon-status-menu, running the altered file and see what happens when you get SMS/calls.

torpedo48 2010-04-07 12:44

Re: [Announce] Call Notify
 
Hi Omer,
no notifications here unfortunately; it has stopped working after one of the last updates (don't know which one). What should I do? If you need further testing consider me disposable.

omeriko9 2010-04-07 13:31

Re: [Announce] Call Notify
 
Quote:

Originally Posted by torpedo48 (Post 599265)
Hi Omer,
no notifications here unfortunately; it has stopped working after one of the last updates (don't know which one). What should I do? If you need further testing consider me disposable.

Hi, and thank you for reporting this.

I would suggest following some (advanced) troubleshooting steps:

1. Check the Debug trace

If there is one, it means that the app runs but fails, the debug trace will give us information regarding to where it fails.
In order to see what is the error:

2. Check for runtime errors (hildon-desktop hides any python runtime errors).

torpedo48 2010-04-07 19:05

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 599317)
Hi, and thank you for reporting this.

I would suggest following some (advanced) troubleshooting steps:

1. Check the Debug trace

If there is one, it means that the app runs but fails, the debug trace will give us information regarding to where it fails.
In order to see what is the error:

2. Check for runtime errors (hildon-desktop hides any python runtime errors).

Tried first point, no errors in the log file (btw the callnotify.py file is not in /hildon-status, but in /hildon-desktop). It only has two lines telling it has started two processes. Tomorrow I'll follow your second point.

omeriko9 2010-04-07 20:16

Re: [Announce] Call Notify
 
Quote:

Originally Posted by torpedo48 (Post 599852)
It only has two lines telling it has started two processes.

Can you please specify the content of the trace?
I mean, what are the two lines?

Thank you very much for helping with testing this app :)

rcastberg 2010-04-07 20:40

Re: [Announce] Call Notify
 
Hi,

I had similar problems and tried both the debug and the error checking.
This gave me 2 lines:
Debug:
PHP Code:

2010-04-07 22:18:26.286043readConfigurationFile started
2010
-04-07 22:18:26.289033checkForConfigFile started 

Running the error checing gave me a problem:
PHP Code:

run-standalone.sh python /usr/lib/hildon-desktop/CallNotify.py 
Traceback 
(most recent call last):
  
File "/usr/lib/hildon-desktop/CallNotify.py"line 19in __init__
    self
.readConfigurationFile()
  
File "/usr/lib/hildon-desktop/CallNotify.py"line 80in readConfigurationFile
    self
.interval float(raw_set[3])
ValueErrorinvalid literal for float(): 5,
^C
~ $ 

Converting the 5,0 to 5.0 in the conf.txt seemed like it got rid of the problem, and i am guessing this might have something to do with the regional settings on the phone? as in Norway (where i am) we prefer to use a comma as a decimal seperator (don't ask why, its annoying)

In any case the debug becomes a lot longer, sample:
PHP Code:

...
2010-04-07 22:38:54.240816constructor
2010
-04-07 22:38:54.241609loadImages started
2010
-04-07 22:38:54.288270constructor end
2010
-04-07 22:38:56.210908startDbusListeners started
2010
-04-07 22:38:57.771058handleMissedCall started
2010
-04-07 22:38:57.771882getMissedCallsCount startedagrsFalse
2010
-04-07 22:38:58.000734handleMissedCall started
2010
-04-07 22:38:58.001588getMissedCallsCount startedagrsFalse
... 

But it seems to work now

René

zaedej 2010-04-08 00:19

Re: [Announce] Call Notify
 
Quote:

Originally Posted by omeriko9 (Post 595639)
Hi zaedej! You can find the app under the extras-devel repository. Nevertheless, it's not recommended for newbies to add this repository without knowing what they are up to. You should read this first.

After you enable the repository you can find Call Notify with a bunch of other softwares in testings.

Please note that I do not recommend installing this app without any basic knowledge of working with the terminal.
This is app is still in testings and it might not work for you after installations, and then i'd like to do some checks to see why, and this requires working with linux terminal (x-term), FYI...


Thanks for the info dude. So, when are you planning to have the finals version the refined one?

I got the phone 3 days back and it's a hassle to deal with miss calls and sms' man!:(

Thanks a lot.

Cheerz!! keep up the good work man!:)


All times are GMT. The time now is 16:02.

vBulletin® Version 3.8.8