View Single Post
Posts: 30 | Thanked: 21 times | Joined on Aug 2008
#1
I mentioned several weeks ago in the Dialcentral thread that I was working on an SMS notifier, and finally there is a first version ready to be tried out . Keep in mind that it is definitely alpha level and requires some setup on the command line.

Also, a big thanks to mrdally204 for his great suggestions, testing, and feedback.

Ok, on to the program. It works as an add-on to Dialcentral. The code borrows heavily from epage's work on Dialcentral, while adding alarmd functionality similar to that of flipclock.
For now it creates an alarmd event which executes the notifier on a recurring basis (e.g. 10 minutes) and plays a sound (thanks gogol!)* and blinks the LED.

*Note: The sound can be customized by swapping the alert.mp3 in /usr/lib/gv-notifier with one of your choosing. The default sound is the new email indicator from Modest.

Dependencies:
python2.5
Dialcentral (only for copying the login cookie, and then for reading/replying to the messages you've been notified of)

*UPDATED 08/11/09
To install:
1) download and install gv-notifier-0.0.3-all.deb

2) edit the configuration file called conf.xml
  • to do this, first open xterm and enter 'vi /home/user/.gv-notifier/conf.xml'
  • edit the username and password elements with your Google Voice username and password
  • change the start-time element to the initial time you would like the alarm to go off. So if you would like the notifier to run every 30 minutes at exactly the top and bottom of the hour, you would set the start time to 05:00 (it's 4PM here for me, so 5 is the next up). Or if you have a few other mail notifiers running and you don't want them all trying to run at the same time you can set it to 05:01.
  • change the recurrence-time element to the number of minutes between notifications. In the example above this would be 30 (the default is 10).
  • and finally, the urls section controls which Google Voice events you'd like to be notified of. You can find a list of possible urls in this post. By default only SMS and Missed Calls are included (and only SMS is required). Feel free to delete the Missed Calls url.
  • save and exit

3) **This only has to be done once, to set the alarm**
in xterm run the command '/usr/bin/python2.5 /usr/lib/gv-notifier/gv_notifier_alarmd.py'

If successful there should be an extra event added to /var/lib/alarmd/alarm_queue.xml, and if there are new messages you should see the LED blinking. To stop the LED (and launch Dialcentral) there is a duplicate Dialcentral icon created in Extras. I use this icon in place of the regular Dialcentral icon, but it could also be changed to launch Google Voice in the browser.

There is also a GV Notifier icon which will run the notifier manually in case you pick a long recurrence time and want to check in between.

To uninstall:
1) /usr/bin/python2.5 /usr/lib/gv-notifier/gv_notifier_alarmd_delete.py
this removes the alarmd entry (I have tried doing this with the .postrm script but no luck as yet)

2) uninstall through application manager
Attached Files
File Type: deb gv-notifier-0.0.2-all.deb (9.1 KB, 277 views)
File Type: deb gv-notifier-0.0.3-all.deb (34.0 KB, 359 views)

Last edited by addisjon; 2009-08-12 at 21:05.
 

The Following 6 Users Say Thank You to addisjon For This Useful Post: