This script send notifications to you, if you have unread google wave blips. Don't forget to change login, pawssword and icon. It is very dirty script. Depends on bash, php and wget.
- #!/bin/bash
- #
- # This program is under GPLv3 license --
- # http://www.gnu.org/licenses/gpl-3.0.html
- #
- # If you think, that this script is usefull, please send me a postcard to
- # adress:
- # Michal Nanasi
- # Azalkova 1
- # 82101 Bratislava
- # Slovakia
- wget https://www.google.com/accounts/ClientLogin --save-cookies kolaciky --output-document=aa.html --post-data='accountType=GOOGLE&Email=YOUR_LOGIN_HERE%40gmail.com&Passwd=YOUR_PASSWORD_HERE&service=wave&source=GoogleNitifyDaemonByMic'
- while true; do
- if grep -q Auth aa.html ; then
- auth=`cat aa.html |grep Auth |sed -e 's/^Auth=//'`
- wget 'https://wave.google.com/wave/?nouacheck&auth='$auth --output-document=bb.html
- echo "<?php
- `cat bb.html |
- grep 'var json = ' |
- sed -e "s/var json = \(.*\);/"'$b'"[]=json_decode\(\'\1\',true\);/" `
- "'
- foreach($b as $a){
- $data=$a["p"][1];
- foreach($data as $key=>$value){
- if($value[7])
- echo "notify-send -i LOCATION_OF_ICON "'".'"'$value[9][1]'"'.\""'\n";
- }
- }
- ?>' |php |bash
- else
- echo 'Unable to connect'
- fi
- sleep 300
- done
