Active Topics

 



Notices


Reply
Thread Tools
Posts: 194 | Thanked: 39 times | Joined on Sep 2008
#21
Please add GV notifier to Dialcentral.
 
Posts: 30 | Thanked: 21 times | Joined on Aug 2008
#22
I apologize for the permissions problems you guys have had. After a reflash I've been able to reproduce (and hopefully fix) the problem, so I've added a .deb file with updated instructions to my first post.
 

The Following 2 Users Say Thank You to addisjon For This Useful Post:
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#23
Is there something we can add to the file to make it play a sound as well as flash the LED?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
Posts: 194 | Thanked: 39 times | Joined on Sep 2008
#24
so has anyone had any issues will installing it as a deb file? I would like to hear some feed back before I attempt it again(leaving me to reflash if things don't go well). I really, really would like this application before I start traveling in a 4 weeks. I was holding out for a Beta version, but am willing to try again if everyone has good success with the deb. file.
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#25
I've found a bit of a problem. In trying to hack on a sound notification I noticed that the script is comparing the filesize of sms.html and last.sms.html. I kept sending test SMS's to my google number and then running gv_notifier but it wouldn't think the files were any different and so, wouldn't notify me.

I ls -lh'ed before and after, showing 34 bytes each time. I catted the contents of sms.html showing the only thing that had changed was the timestamp of the last sms (the phone number was of course the same), which wasn't enough to change the filesize.

I guess I'll have to look up a way to do diff or something in python. I hardly know a thing about python but have some general understanding of programming languages. I'll give a whack at fixing it and post anything I figure out here.

----EDIT----
So here's how I replaced filesize comparison:
with your imports,
import filecmp
....
(line 161ish, #comment the two other if statements and replace with
Code:
if filecmp.cmp((self._data_path + filename),(self._data_path + "last." + filename),0) != True:
And did some mild testing. It seems to work fine, catching two SMS's from the same person in a row where the old filesize comparison did not.
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com

Last edited by gogol; 2009-08-07 at 21:40. Reason: Figured it out...
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#26
In the meantime I figured out how to have a nice long ringing sound when you receive a new text/voicemail/missed call. It's ghetto and hackish but that's how I roll.

You need mplayer installed to do this. I don't know how to play WAV files with python and it looked difficult from a few googles.

I copied /usr/share/libsipphoneapi/sounds/ring.wav to gv-notifier's dir:
cp /usr/share/libsipphoneapi/sounds/ring.wav /usr/lib/gv-notifier/

I then opened up the gv_notifier.py script and added these lines at line 161, directly below self.ledOn()

from subprocess import call
gogol=call("mplayer -ao alsa /usr/lib/gv-notifier/ring.wav",shell=True)


you could of course substitute any wav/mp3/whatever you like. I have the sound turned down on the n810 so a long one is more likely to alert me.

Hope that's useful to somebody!
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com

Last edited by gogol; 2009-08-08 at 05:25. Reason: mplayer needs '-ao alsa' or it will loop indefinitely on wav files.
 
Posts: 240 | Thanked: 48 times | Joined on Apr 2009
#27
thanks for the info. you should try and get in touch with addisjon and get ur changes added to the deb file. hes cool. I tried helping him troubleshoot the permission errors earlier in its development and he was very open to suggestions. good luck and please do what u can to improve this ever needed app!
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#28
Thanks mrdally for the encouragement. I hope he's into the lil contributions I've made. It's been a lot of fun exploring and googling and exploring some more...

And...yet another problem arises with the file comparison technique of determining when you have new messages...if you have sent a text message to someone else since last check, that will count as change...meaning you get alerted for responding to a text. Then someone texts you again, meaning another alert...pretty soon the thing is ringing at whatever interval you set and you're just constantly refreshing the SMS page to check until the conversation winds down. Not really at all like receiving a 'push' alert.
There must be another way...
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com
 
Posts: 240 | Thanked: 48 times | Joined on Apr 2009
#29
i was having this happen on my first testing of the app. I found that after a while the light would just blink regardless of messages not being sent. I am hoping that google releases a little bit more info for us to use as they are now releasing apps for phones to take advantage of googlevoice. I noticed they are available for blackberry and android. Since android is open source(at least I thi k I remember it being soK maybe they will release the source so we can adapt it to our beautiful nokias Wishful thinking I know!
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#30
EDIT: This is old info. Both the GV changes and the use of a sound file has been included in the latest .deb, found in the first post of this thread.

Fixed the script for the latest GV changes.

Strip the .txt off the end, cp it to /usr/lib/gv-notifier. Only two lines were changed, just some regex to keep up-to-date with Google. Thanks to epage's work I just did a diff and saw what needed to be updated

...And then there's my version of the script with the different file comparison technique, and a sound notification instead of the LED. *No Longer Requires Mplayer* I found a dbus command that will play either a .wav or .mp3. Drop something into /usr/lib/gv-notifier called ring.wav and off you go.
Attached Files
File Type: txt gv_notifier.py.txt (11.5 KB, 137 views)
File Type: txt gv_notifier_gogol.py.txt (11.6 KB, 133 views)
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com

Last edited by gogol; 2009-08-15 at 23:51.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:51.