Google Wave Notifier for Ubuntu
For several weeks now we have been using the wave to organize the work of such a small freelance team. And everything would be fine in general, but in order to be able to quickly respond to new tasks or bug reports, you had to not only keep the wave web interface open, but also periodically pay attention to it. And this is not always possible even when you just read some nonsense, not to mention the condition "buried in the ears." It also added a discomfort that, firstly, I work on a netbook - it’s enough for scripting, of course, but the less heavy applications it runs, the better :), and secondly, I don’t use Firefox, under which More recently, AddOn was released , reporting updated waves.
From this add-on I started dancing, dimly hoping that his developer got somewhere some kind of api, with which you can easily get information about the number of unread updates.
When I took the addon to pieces, it turned out that, unfortunately, there was used a rather brutal way, which I thought about myself when I just figured out writing a notifier - we just log in, get the web interface code, and parse the json an object that stores a bunch of different information, including the number of unread updates for blips.
So I spent a certain amount of time and inspired a Python script doing practically the same thing - with a certain interval it displays a system pop-up messagewith the number and names of updated waves.
upd: According to xdemon , it works in kde4, archlinux. So, apparently, the design is not completely intolerable :)
But I think that it will not be a particular problem for those who want to rewrite the script for their system and their favorite message method, especially since the notification output code is specially (tricky) made into a separate function.
So, put the notifier:
- We make sure that we have python :), urllib, urllib2, cookielib. The easiest way is to enter python in the console, and import urllib, urllib2, cookielib in the line that appears. If you didn’t quarrel - Ctrl + D to get out of there. If you had a fight, we set it.
- Download archive from here
- Unpack it somewhere
- Rules notify.conf - the most obvious way, the login and password
Another parameter in config, timeout - are, respectively, the interval between scans in seconds - sudo chmod + x ./notify.py in the console in the folder where you unpacked
You can run :)
For the first time, it is probably better to start from the console, ./notify.py , simply because it displays a set of different debug and not very information, from which you can understand whether everything is in order.
There is still a run.sh file in the archive that I wrote later so that it would be possible to run the script from System-> Preferences-> Startup Applications at the system startup without any problems.
The main thing that the sh-script does is a pause before launching the Python-like one, so that all system messages can break up and the system has time to go online.
I hope this will be a useful gizmo for wave users :)
C&C very welcome!
PS: Icons from the MacUltimate Leopard set were used to display messages .
PPS: The script was written recently, I did not have much time to debug it, it is provided as is :)
In addition, despite all my efforts, I did not find Google’s official position in relation to such automatic recipients of information.