aboutsummaryrefslogtreecommitdiff
path: root/src/bin/inpe-1
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/inpe-1')
-rw-r--r--src/bin/inpe-118
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bin/inpe-1 b/src/bin/inpe-1
index 047961c..ae37b35 100644
--- a/src/bin/inpe-1
+++ b/src/bin/inpe-1
@@ -6,7 +6,7 @@
# http://brweatherproject.blogspot.com/
# Distribuído sob licença GPLv3
-DVOLATIL=`grep -m1 '<div id="prev_ond"><div id="tit">' ~/.brweather/cache/cache | cut -f3 -d'>' | cut -f1 -d'-' | sed 's/ //g'`
+DVOLATIL=`grep -m1 '<div class="tit">' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'-' | sed 's/ //g'`
case $DVOLATIL in
"Domingo")
@@ -125,7 +125,7 @@ esac
case $1 in
-"--option=city") grep -m1 -A1 '<div id="subcid">' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | tail -n1
+"--option=city") grep '<div class="i">' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<'
;;
"--option=date") date "+%d-%m-%Y"
;;
@@ -137,22 +137,22 @@ case $1 in
;;
"--option=LUS")
if [ $OPEN == "2" ]; then
- grep -m1 '<i>IUV com Nuvem</i><br>' ~/.brweather/cache/cache | cut -f5 -d'>' | cut -f1 -d'<'
+ grep -m1 '<div class="dados">IUV com Nuvem' ~/.brweather/cache/cache | cut -f5 -d'>' | cut -f1 -d'<'
else
grep -m1 'height="3px" />Atualizado:' ~/.brweather/cache/cache | cut -f2 -d':' | cut -f1 -d'<' | sed 's/ //'
fi
;;
-"--option=TN") grep '</b> TEMPERATURA</div>' ~/.brweather/cache/cache | cut -f3 -d'>' | cut -f1 -d'C' | sed 's/º//g'
+"--option=TN") grep '<div class="c2"> TEMPERATURA ATUAL' ~/.brweather/cache/cache | cut -f5 -d'>' | cut -f1 -d'C' | sed 's/º//g'
;;
-"--option=STE") grep -m1 'SENSAÇÃO TÉRMICA' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'C' | sed 's/º//g'
+"--option=STE") grep -A1 '<div class="c4"> SENSA&Ccedil;&Atilde;O T&Eacute;RMICA' ~/.brweather/cache/cache | tail -n1 | cut -f2 -d'>' | cut -f1 -d'C' | sed 's/º//g'
;;
-"--option=umid") grep 'UMIDADE RELATIVA </div>' ~/.brweather/cache/cache | cut -f3 -d'>' | cut -f1 -d'<' | sed 's/%//g'
+"--option=umid") grep '<div class="c3"> UMIDADE RELATIVA' ~/.brweather/cache/cache | cut -f5 -d'>' | cut -f1 -d'C' | cut -f1 -d'%'
;;
-"--option=PA") grep -m1 'PRESSÃO ATMOSFÉRICA&nbsp' ~/.brweather/cache/cache | cut -f3 -d'>' | cut -f1 -d'<'
+"--option=PA") grep -m1 '<div class="c6"> PRESS&Atilde;O ATMOSF&Eacute;RICA&nbsp;' ~/.brweather/cache/cache | cut -f5 -d'>' | cut -f1 -d'<'
;;
-"--option=windd") grep -m1 '<div id="c5">' ~/.brweather/cache/cache | cut -f3 -d'>' | cut -f1 -d'<'
+"--option=windd") grep -m1 '<div class="c5"> DIR. E INTENSIDADE<br>DO VENTO' ~/.brweather/cache/cache | cut -f6 -d'>' | cut -f1 -d'<' | sed 's/ //g'
;;
-"--option=winds") grep -m1 '<div id="c5">' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<'
+"--option=winds") grep -m1 '<div class="c5"> DIR. E INTENSIDADE<br>DO VENTO' ~/.brweather/cache/cache | cut -f7 -d'>' | cut -f1 -d'<' | sed 's/ //g'
;;
"--option=Day1") echo $DAY1
;;