![]() |
Re: Google Voice Notifier *Alpha*
Please add GV notifier to Dialcentral.
|
Re: Google Voice Notifier *Alpha*
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.
|
Re: Google Voice Notifier *Alpha*
Is there something we can add to the file to make it play a sound as well as flash the LED?
|
Re: Google Voice Notifier *Alpha*
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.
|
Fixing File Comparisons
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: |
Re: Google Voice Notifier *Alpha*
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! |
Re: Google Voice Notifier *Alpha*
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!
|
Re: Google Voice Notifier *Alpha*
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... |
Re: Google Voice Notifier *Alpha*
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!
|
Re: Google Voice Notifier *Alpha*
2 Attachment(s)
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. |
All times are GMT. The time now is 08:06. |
vBulletin® Version 3.8.8