#!/bin/bash # # ---------------- # nico - May 2011 # ---------------- weather="http://www.weather.com/weather/today" where="Paris+France+FRXX0076" tmp1=/tmp/weather.1 TWIT=$HOME/bin/twit.sh curl $weather/$where 2> /dev/null > $tmp1 cat $tmp1 | grep 'Chance of Precip' | sed -e 's;.*[^0-9]\([0-9]*\)%.*;rain:\1%;' #$TWIT "arrosage arbre marche "`date` egrep '[0-9][0-9]*°' $tmp1 | head -4 | tail -3 | sed -e 's;.*[^0-9]\([0-9][0-9]*\)°\;.*;temp_F:\1;' rm -f $tmp1