Download the latest version of Growl for Windows

Growl On Your Phone

Get your Growl notifications on your phone with these apps:

WP7
Android
Notify My Android
iPhone
iPhone

For Developers

Integrate Growl notifications into your applications with just a few lines of code

Download the Integration Guide >

Create custom displays for handling notifications

Download the Display SDK >

Wednesday, July 15, 2009

Google Voice support

Although still in limited beta, I have been getting lots of requests from people wanting to use Google Voice with Growl for Windows.

Since Google Voice is a web-based app, i decided to whip up a quick solution using the Greasemonkey support built into the Growl/GNTP Firefox extension. just like the Last.fm and Pandora Greasemonkey scripts, it just took a few lines of code (most of which was adapted from Felipe Oduardo's Fluid notifier).

Anyway, if you are one of the lucky ones with a Google Voice account, give it a try and let me know your feedback.

Google Voice Growl script

35 comments:

  1. This is a very good script!

    ReplyDelete
  2. Does Google Voice have to be an open window/tab for this to work?

    ReplyDelete
  3. Script doesn't refresh the inbox and push to prowl unless I actually click the inbox link. Is there a fix for that?

    ReplyDelete
  4. @Mark - yes, Google Voice has to be open in your browser for it to work.

    @Anonymous - the script will refresh the page only when the window is not focused (so that it doesnt keep refreshing while you are trying to read it). to let it refresh on its own, minimize the window or activate another window so that the Google Voice window loses the focus.

    ReplyDelete
  5. It works nicely for me, is there any way to get Prowl to display the contents of an SMS on the iPhone, as opposed to just letting you know a text has been received?

    ReplyDelete
  6. I second the request to show the contents of an SMS or Voicemail (transcription) with the notification. That would make this even more useful.

    ReplyDelete
  7. re: full text of SMS/Voice transcripts - i would love to add this, and hopefully it wont be too hard. up until now, i havent even used Google Voice or been able to log into it, so i wasnt sure what was possible to do. a kind sole just gave me an invite though, so i am going to get an account set up and see what i can do.

    ReplyDelete
  8. I am very new to this growl with google voice thing, can somebody give me a step to step instruction?

    Thanks in advance.

    ReplyDelete
  9. This is a very silly question, how do I install this javascript in firefox? I am running FF 3.51.

    ReplyDelete
  10. I figured out the install, one also needs greasemonkey installed in the PC, for one to actually install the script. Secondly this just notifies me of receipt of a SMS message, but not the actual message.

    I run a mac also, and run a python script w/ growl(google for mikeyk's googlevoicenotify). This method shows the actual SMS content too.

    ReplyDelete
  11. @justregulardude - please see my response to your question in the GfW forum: http://groups.google.com/group/growl-for-windows/browse_thread/thread/2a49612b77189b46

    @Anonymous - so far, the Google Voice Greasemonkey script only notifies that you have a new sms/voicemail/etc. - i hope to add the capability to send the actual text of the sms in the next update.

    ReplyDelete
  12. Brian,

    Thanks for the update, I am looking forward to when you update your code to display the actual text message.

    Best,
    Anonymous

    ReplyDelete
  13. I can't seem to get the script to display a message whenever I get a new SMS/VMail/Etc. on Google Voice. What am I doing wrong?

    I have Google Voice opened up in the background and the focused tab is a different website. I've also tried minimizing the window as well as dedicating a FireFox window just for Google Voice.

    Also, I noticed it does not seem to refresh the Google Voice page every 5 seconds. Is there a way to make it faster?

    GNTP Add-on and Google Voice are regognized within Growl for Windows. Someone please help, thanks!

    ReplyDelete
  14. for anyone having trouble -
    here is a very detailed tutorial on how to get each piece set up properly:

    http://truvoipbuzz.com/2009/07/enable-google-voice-push-notifications-on-iphone-3gs-tutorial/

    ReplyDelete
  15. I followed those instructions step by step, but the Greasemonkey script is not displaying any Google Voice alerts. Therefore, there's nothing to push. Please advise.

    ReplyDelete
  16. OK, so I think I fixed my problem by setting 'New Inbox Notification' to false. Now when I get a SMS or Voicemail, it will notify me specifically which new message. Such as 1 new SMS, instead of 1 new Inbox item.

    The problem though is that, once you get the first notification, if you get another SMS or VMail, say like 5 SMS messages back to back, it will not alert you of a new message. Only the first alert gets pushed to Growl.

    ReplyDelete
  17. Spoke too soon. The Greasemonkey script is unreliable at reporting an alert. Any ideas why? I can't get it to consistently alert me when I get new SMS.

    ReplyDelete
  18. @Anonymous - everyone i have heard from has reported that the script works for them like it is designed to. if you suspect the Greasemonkey script is not working properly, maybe try closing down your browser and re-opening it. i have had other (non-Growl related) userscripts seem to stop working after awhile and sometimes just closing/reopening the browser/page will work. otherwise, i am not sure what else to suggest.

    ReplyDelete
  19. I've tried closing down FireFox and reopening with no luck. I am trying to reproduce the problem, but I am getting inconsistent results. It has to be something simple. *sigh*

    ReplyDelete
  20. can anyone please help me with running mikeyk's python script setup. I don't know anything about scripts. Thank you. Please email me at mrelessar@gmail.com

    ReplyDelete
  21. This app has been unreliable day to day for me. I leave my google voice inbox signed in and minimized, however it usually stops working in under 24 hours. I will leave the page minimized for an entire week without closing it, but at some point, usually in under a day, the app stops refreshing the inbox and I cease to get updates. It works for a short time (of unknown duration), and then at some point I'll go to my google voice inbox and see new messages that were not updated.

    Any solution to this?

    PS. With regard to the above poster, it would be much more helpful to help him here for everyone to learn, instead of privately emailing him as he requested.

    ReplyDelete
  22. @Mike - i will have to investigate this further. to be honest, i created this script without even having access to Google Voice so i have not been able to test it too much on my own. a gracious Growl user donated a Google Voice account to me, so i will now be able to better debug what is going on. at first blush however, it seems to me that this might be more related to the browser's javascript execution than anything else. the script obviously isnt changing, and if a refresh fixes it, then my gut points me to the browser or javascript engine crapping out after a long period of time. but, it is also highly likely that there is just a bug in the script. if i can figure anything out, i will post here.

    @Mamunur - mikeyk's python script is unrelated to this Greasemonkey script. i believe the python script polls Google Voice directly (bypassing the browser) and sends Prowl notifications directly (bypassing Growl). check out the Prowl user group for more information: http://forums.cocoaforge.com/viewforum.php?f=45&sid=a4c9b6dc04be6cd71bbf51ad2ed43e14

    ReplyDelete
  23. Sounds fantastic. Thanks for the update. If by chance it could be browser/javascript related - is that something that can be changed in browser settings?

    ReplyDelete
  24. For anyone that had requested the full text of new SMS or Voicemail transcripts be included in the Growl notification - i have hacked together a new version that does just this:

    http://groups.google.com/group/growl-for-windows/browse_thread/thread/213dfb6d8fd27549

    i havent put it up on userscripts.org yet because i want to get some feedback first. try it out and let me know if it works for you.

    ReplyDelete
  25. Can you make something like this that isn't reliant on one particular browser. Not everyone uses Firefox. Can you make this pull from Google Voice regardless of the web browser used in the near future?

    ReplyDelete
  26. @Anonymous - re: other browsers - this script relies on Greasemonkey and the Growl/GNTP extension, both of which are only available for Firefox. other browsers either 1) dont have an extension mechanism, or 2) are much more complicated to extend. if another browser offers a usable extension mechanism, then it would be possible. that said, there are other scripts on the internet that dont use a browser at all and just poll Google Voice directly (using Python or Perl or some other programming language). they dont even require a browser to be open, but they require a setting up a batch job to run on a schedule to poll. if you are comfortable with code, then check out: http://github.com/mikeyk/googlevoicenotify/tree/master

    ReplyDelete
  27. hello brian, this is pretty cool. Is there a way you could get the Growl/GNTP extension to work in Prism. I tried tricking it to install and it did, but I guess that internally, things are not pointed in the right places. I think Growl + Growl/GNTP extension + Growl for Windows + Prism would equal to - Awesome stuff.

    ReplyDelete
  28. @GoogledInandOut - re: Prism - i will have a look to see what it will take. if Prism supports all of the same classes internally, it shouldnt be too hard.

    ReplyDelete
  29. Thanks brian, I hope that there's someone out there working on a PC app that is capable of sending SMS and making calls with a Growl tie-in.

    ReplyDelete
  30. script doesn't refresh firefox/show updates unless i refresh myself. I have tried it with another window open, as well as minimized. no good on both.

    ReplyDelete
  31. @ssd - the script does not refresh Google Voice; Google Voice refreshes itself every so many seconds. the script just checks every few seconds and if there are new items (due to Google Voice refreshing itself), they are notified.

    in a comment earlier in this thread, i said that the script refreshes the page when GV is minimize or unfocused, but i misspoke - the Google *Reader* script does that.

    ReplyDelete
  32. I am having the same issues with not getting notifications. I noticed that if i manually refresh google voice i get all the notifications that i "missed".

    ReplyDelete
  33. I would just use this add-on folks.


    ReloadEvery, or you can use it with TabMixPlus to reload the page every minute or 30 seconds or whatever amount of time you wish.

    ReplyDelete