You are not logged in.
Re
French translation works & curr_cond-fr created that donne this
Must yet just falling in love whis this new icons them .i'm not sure i can .
@+
Edit
1_accuwether with old icons look better for me
Last edited by loutch (2016-09-08 13:43:32)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Whatever suits you mon ami. Thats the beauty of it: we now have a choice when it comes to icons.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
WaltH wrote:@TeoBigusGeekus- Should we follow the procedure you outline here https://forums.bunsenlabs.org/viewtopic … 1003#p1003 regardless of which script we're running and then modify our .conkyrc to incorporate the changes outlined here https://forums.bunsenlabs.org/viewtopic … 1006#p1006? Thanks.
Your links might be broken WaltH, if you could please correct them, thanks.
Okay. I'm still figuring out how things work in this forum and thought the number to the right was the post number to use. Maybe these are correct? one and two
I'm running the accuweather_1a script as part of my Conky.
Offline
Yes
Théo is that possible to integrate the wind-direction for the days same that hourly forecast?
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Ah right..., now I see.
You should follow the procedure of the first post, but with the updated script of the second post.
If you wait a few hours, I'll post the script and the conkyrcs I've made so far in a single post for people to test.
Thanks everyone for your kind words and the support, keep testing (or start if you aren't )...
Last edited by TeoBigusGeekus (2016-09-08 14:25:50)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Yes
Théo is that possible to integrate the wind-direction for the days same that hourly forecast?
Unfortunately no, because then the script would have to download each day's page individually --> great loss of resources.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Ok Theo & tanks for the great job
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Thanks for the help and the support buddy.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
https://forums.bunsenlabs.org/viewtopic … 634#p36634
I think that we have found it ...
In the script for the line is 183 this entry
...
date +%T > $HOME/1_accuweather/aktualisiert
...
I had not noticed that the argument by the merging of 1a, 1b, etc. in my case
./1_accuweather -f
above stands. :8
I hope Teo, I'm correct.
Offline
Hey Teo ... Remember when I said I'm on it, starting now. Life had other plans. GRRRRRRRRRRR!
So today I'll start and hopefully get something done. I've tweaked a couple to be conky v1.9 friendly. Quite surprised that the new script works out of the box - for 1a and 1b1 anyway - in test conkys.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Cross your fingers buddy.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@unklar
Here's the German version of the script (without the hourly forecast part)
#!/bin/bash
#put your Accuweather address here
#address="http://www.accuweather.com/de/us/new-york-ny/10017/weather-forecast/349727"
address="http://www.accuweather.com/de/in/kolkata/206690/weather-forecast/206690"
#address="http://www.accuweather.com/de/gr/kastoria/178682/weather-forecast/178682"
loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')
#function: test_image
test_image () {
case $1 in
1)
echo a
;;
2|3)
echo b
;;
4|5)
echo c
;;
6)
echo d
;;
7)
echo e
;;
8)
echo f
;;
11)
echo 0
;;
12)
echo h
;;
13|14)
echo g
;;
15)
echo m
;;
16|17)
echo k
;;
18)
echo i
;;
19)
echo q
;;
20|21|23)
echo o
;;
22)
echo r
;;
24|31)
echo E
;;
25)
echo v
;;
26)
echo x
;;
29)
echo y
;;
30)
echo 5
;;
32)
echo 6
;;
33)
echo A
;;
34|35)
echo B
;;
36|37)
echo C
;;
38)
echo D
;;
39|40)
echo G
;;
41|42)
echo K
;;
43|44)
echo O
;;
*)
echo -
;;
esac
}
kill -STOP $(pidof conky)
killall wget
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1_accuweather_Deutsch/curr_cond_raw "$curr_addr"
addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1_accuweather_Deutsch/first_days_raw "$addr1"
addr2="$addr1"?day=6
wget -O $HOME/1_accuweather_Deutsch/last_days_raw "$addr2"
rm $HOME/1_accuweather_Deutsch/*.png
#current conditions
if [[ -s $HOME/1_accuweather_Deutsch/curr_cond_raw ]]; then
sed -i '/detail-now/,/Astronomie <span class/!d' $HOME/1_accuweather_Deutsch/curr_cond_raw
egrep -i '"cond"|icon i-|large-temp|small-temp|wind-point|"wind"|Luftfeuchtigkeit|Luftdruck|UV-Index|Wolkendecke|Ceiling|Taupunkt|Sichtweite|Dauer|Sonnenaufgang:|Sonnenuntergang:|Mondaufgang:|Monduntergang:' $HOME/1_accuweather_Deutsch/curr_cond_raw > $HOME/1_accuweather_Deutsch/curr_cond
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/curr_cond
sed -i -e 's/^.*<strong>//g' -e 's/^.*<span>//g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*<\/em> //g' -e 's/^.*"cond">//g' -e 's/^.*wind-point //g' $HOME/1_accuweather_Deutsch/curr_cond
sed -i -e 's/">.*$//g' -e 's/°.*$//g' -e 's/<\/span>.*$//g' -e 's/&#.*$//g' -e 's/ &darr.*$//g' -e 's/ &uarr.*$//g' -e 's/<\/strong>.*$//g' $HOME/1_accuweather_Deutsch/curr_cond
sed -i '1s/-.*$//' $HOME/1_accuweather_Deutsch/curr_cond
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/curr_cond
image=$(sed -n 1p $HOME/1_accuweather_Deutsch/curr_cond)
echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/curr_cond
cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n 1p $HOME/1_accuweather_Deutsch/curr_cond).png $HOME/1_accuweather_Deutsch/0.png
fi
#First 5 days
if [[ -s $HOME/1_accuweather_Deutsch/first_days_raw ]]; then
sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather_Deutsch/first_days_raw
egrep -i 'href="#"|icon i-|"large-temp"|"small-temp"|temp-label|"cond"' $HOME/1_accuweather_Deutsch/first_days_raw > $HOME/1_accuweather_Deutsch/first_days
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' -e 's/^.*"temp-label tonight selected">//g' $HOME/1_accuweather_Deutsch/first_days
sed -i -e 's/°.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather_Deutsch/first_days
sed -i -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' $HOME/1_accuweather_Deutsch/first_days
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather_Deutsch/first_days)
echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/first_days
done
j=1
for (( i=2; i<=22; i+=5 ))
do
cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather_Deutsch/first_days).png $HOME/1_accuweather_Deutsch/$j.png
((j++))
done
fi
#Next 5 days
if [[ -s $HOME/1_accuweather_Deutsch/last_days_raw ]]; then
sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather_Deutsch/last_days_raw
egrep -i 'href="#"|icon i-|large-temp|small-temp|temp-label|"cond"' $HOME/1_accuweather_Deutsch/last_days_raw > $HOME/1_accuweather_Deutsch/last_days
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' $HOME/1_accuweather_Deutsch/last_days
sed -i -e 's/°.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather_Deutsch/last_days
sed -i -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' $HOME/1_accuweather_Deutsch/last_days
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/last_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather_Deutsch/last_days)
echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/last_days
done
j=6
for (( i=2; i<=22; i+=5 ))
do
cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather_Deutsch/last_days).png $HOME/1_accuweather_Deutsch/$j.png
((j++))
done
fi
kill -CONT $(pidof conky)
Use it without the -f and -h parameters.
EDIT: Corrected a mistake spotted by unklar.
Last edited by TeoBigusGeekus (2016-09-10 16:00:05)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
One more time:
Create a folder in your home directory and name it
1_accuweather
Create another folder inside it and name it
Forecast_Images_2016
Go into that folder and run the following script:
#!/bin/bash
for (( i=1; i<=9; i++ ))
do
wget -O $i.svg http://vortex.accuweather.com/adc2010/images/slate/icons/0$i.svg
done
for (( i=10; i<=44; i++ ))
do
wget -O $i.svg http://vortex.accuweather.com/adc2010/images/slate/icons/$i.svg
done
This will download all the new images into that folder.
Provided you have imagemagick installed, run the following script
#!/bin/bash
for i in *.svg
do
fn=$(basename "$i")
echo $i
n=${fn%.*}
convert -background none "$n".svg "$n".png
done
inside the folder to convert all svg images to png format (conky doesn't support svg unfortunately).
The good news is that the new images are gorgeous and also that they are the same with the old ones (ie. 1.png from the old images describes the same weather as 1.png from the new images). Therefore, in the new script, you can either use the old or the new images, it makes no difference.
You just change the folder name to wherever you have saved the old images and you're good to go.
Now go into the 1_accuweather folder.
The new script is the following:
#!/bin/bash
if (( $# < 1 )); then
exit
fi
#put your Accuweather address here
#address="http://www.accuweather.com/en/us/new-york-ny/10017/weather-forecast/349727"
#address="http://www.accuweather.com/en/in/kolkata/206690/weather-forecast/206690"
address="http://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')
###################################################
#NORMAL FORECAST: -f passed as 1rst or 2nd argument
###################################################
if [[ $1 == -f || $2 == -f ]]; then
#function: test_image
test_image () {
case $1 in
1)
echo a
;;
2|3)
echo b
;;
4|5)
echo c
;;
6)
echo d
;;
7)
echo e
;;
8)
echo f
;;
11)
echo 0
;;
12)
echo h
;;
13|14)
echo g
;;
15)
echo m
;;
16|17)
echo k
;;
18)
echo i
;;
19)
echo q
;;
20|21|23)
echo o
;;
22)
echo r
;;
24|31)
echo E
;;
25)
echo v
;;
26)
echo x
;;
29)
echo y
;;
30)
echo 5
;;
32)
echo 6
;;
33)
echo A
;;
34|35)
echo B
;;
36|37)
echo C
;;
38)
echo D
;;
39|40)
echo G
;;
41|42)
echo K
;;
43|44)
echo O
;;
*)
echo -
;;
esac
}
kill -STOP $(pidof conky)
killall wget
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1_accuweather/first_days_raw "$addr1"
addr2="$addr1"?day=6
wget -O $HOME/1_accuweather/last_days_raw "$addr2"
rm $HOME/1_accuweather/*.png
#current conditions
if [[ -s $HOME/1_accuweather/curr_cond_raw ]]; then
sed -i '/detail-now/,/Astronomy <span class/!d' $HOME/1_accuweather/curr_cond_raw
egrep -i '"cond"|icon i-|large-temp|small-temp|wind-point|"wind"|Humidity|Pressure|UV Index|Cloud Cover|Ceiling|Dew Point|Visibility|Duration|Sunrise:|Sunset:|Moonrise:|Moonset:' $HOME/1_accuweather/curr_cond_raw > $HOME/1_accuweather/curr_cond
sed -i -e 's/^.*<strong>//g' -e 's/^.*<span>//g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*<\/em> //g' -e 's/^.*"cond">//g' -e 's/^.*wind-point //g' $HOME/1_accuweather/curr_cond
sed -i -e 's/">.*$//g' -e 's/°.*$//g' -e 's/<\/span>.*$//g' -e 's/&#.*$//g' -e 's/ &darr.*$//g' -e 's/ &uarr.*$//g' -e 's/<\/strong>.*$//g' $HOME/1_accuweather/curr_cond
sed -i '1s/-.*$//' $HOME/1_accuweather/curr_cond
image=$(sed -n 1p $HOME/1_accuweather/curr_cond)
echo $(test_image $image) >> $HOME/1_accuweather/curr_cond
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n 1p $HOME/1_accuweather/curr_cond).png $HOME/1_accuweather/0.png
fi
#First 5 days
if [[ -s $HOME/1_accuweather/first_days_raw ]]; then
sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather/first_days_raw
egrep -i 'href="#"|icon i-|"large-temp"|"small-temp"|temp-label|"cond"' $HOME/1_accuweather/first_days_raw > $HOME/1_accuweather/first_days
sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' -e 's/^.*"temp-label tonight selected">//g' $HOME/1_accuweather/first_days
sed -i -e 's/°.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather/first_days
sed -i -e 's/Mon$/MONDAY/' -e 's/Tue$/TUESDAY/' -e 's/Wed$/WEDNESDAY/' -e 's/Thu$/THURSDAY/' -e 's/Fri$/FRIDAY/' -e 's/Sat$/SATURDAY/' -e 's/Sun$/SUNDAY/' -e 's/Today$/TODAY/' -e 's/Tonight$/TONIGHT/' -e 's/Early AM/EARLY AM/' $HOME/1_accuweather/first_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather/first_days)
echo $(test_image $image) >> $HOME/1_accuweather/first_days
done
j=1
for (( i=2; i<=22; i+=5 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/first_days).png $HOME/1_accuweather/$j.png
((j++))
done
fi
#Next 5 days
if [[ -s $HOME/1_accuweather/last_days_raw ]]; then
sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather/last_days_raw
egrep -i 'href="#"|icon i-|large-temp|small-temp|temp-label|"cond"' $HOME/1_accuweather/last_days_raw > $HOME/1_accuweather/last_days
sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' $HOME/1_accuweather/last_days
sed -i -e 's/°.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather/last_days
sed -i -e 's/Mon$/MONDAY/' -e 's/Tue$/TUESDAY/' -e 's/Wed$/WEDNESDAY/' -e 's/Thu$/THURSDAY/' -e 's/Fri$/FRIDAY/' -e 's/Sat$/SATURDAY/' -e 's/Sun$/SUNDAY/' $HOME/1_accuweather/last_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather/last_days)
echo $(test_image $image) >> $HOME/1_accuweather/last_days
done
j=6
for (( i=2; i<=22; i+=5 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/last_days).png $HOME/1_accuweather/$j.png
((j++))
done
fi
if [[ $1 != -h && $2 != -h ]]; then
kill -CONT $(pidof conky)
fi
fi
###################################################
#HOURLY FORECAST: -h passed as 1rst or 2nd argument
###################################################
if [[ $1 == -h || $2 == -h ]]; then
#Hourly: First 8h
if [[ $1 != -f && $2 != -f ]]; then
kill -STOP $(pidof conky)
fi
killall wget
rm $HOME/1_accuweather/hourly_*.png
hourly_addr1="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"
wget -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
if [[ -s $HOME/1_accuweather/hourly_raw1 ]]; then
sed -i '/detail-tab-buttons\.detail-tab-buttons/,/<div class="hourly-table">/!d' $HOME/1_accuweather/hourly_raw1
egrep -i 'hour=|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday|pm<\/div>|am<\/div>|icon-weather icon i-|<th>Forecast|<span>.*<\/span>|<th>Temp|<th>Realfeel|<th>Wind|<th>Rain|<th>Snow|<th>Ice|<th>UV Index|<th>Cloud Cover|<th>Humidity|<th>Dew Point' $HOME/1_accuweather/hourly_raw1 > $HOME/1_accuweather/hourly1
sed -i -e 's/^[ \t]*//g' -e 's/^.*<div>//g' -e 's/^.*<span>//g' -e 's/^.*<th>//g' -e 's/^.*icon i-//g' -e 's/-s">.*$//g' -e 's/<\/div>.*$//g' -e 's/&#.*$//g' -e 's/<\/span>.*$//g' -e 's/<\/th>.*$//g' -e 's/^.*href="//g' -e 's/" class=.*$//g' $HOME/1_accuweather/hourly1
sed -i -e 's/Monday/Mon/' -e 's/Tuesday/Tue/' -e 's/Wednesday/Wed/' -e 's/Thursday/Thu/' -e 's/Friday/Fri/' -e 's/Saturday/Sat/' -e 's/Sunday/Sun/' -e 's/\r//g' $HOME/1_accuweather/hourly1
j=1
for (( i=4; i<=18; i+=2 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/hourly1).png $HOME/1_accuweather/hourly_$j.png
((j++))
done
fi
#Hourly: Next 8h
hourly_addr2=$(sed -n 1p $HOME/1_accuweather/hourly1)
wget -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"
if [[ -s $HOME/1_accuweather/hourly_raw2 ]]; then
sed -i '/detail-tab-buttons\.detail-tab-buttons/,/<div class="hourly-table">/!d' $HOME/1_accuweather/hourly_raw2
egrep -i 'hour=|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday|pm<\/div>|am<\/div>|icon-weather icon i-|<th>Forecast|<span>.*<\/span>|<th>Temp|<th>Realfeel|<th>Wind|<th>Rain|<th>Snow|<th>Ice|<th>UV Index|<th>Cloud Cover|<th>Humidity|<th>Dew Point' $HOME/1_accuweather/hourly_raw2 > $HOME/1_accuweather/hourly2
sed -i -e 's/^[ \t]*//g' -e 's/^.*<div>//g' -e 's/^.*<span>//g' -e 's/^.*<th>//g' -e 's/^.*icon i-//g' -e 's/-s">.*$//g' -e 's/<\/div>.*$//g' -e 's/&#.*$//g' -e 's/<\/span>.*$//g' -e 's/<\/th>.*$//g' -e 's/^.*href="//g' -e 's/" class=.*$//g' $HOME/1_accuweather/hourly2
sed -i 1d $HOME/1_accuweather/hourly2
sed -i -e 's/Monday/Mon/' -e 's/Tuesday/Tue/' -e 's/Wednesday/Wed/' -e 's/Thursday/Thu/' -e 's/Friday/Fri/' -e 's/Saturday/Sat/' -e 's/Sunday/Sun/' -e 's/\r//g' $HOME/1_accuweather/hourly2
j=9
for (( i=4; i<=18; i+=2 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/hourly2).png $HOME/1_accuweather/hourly_$j.png
((j++))
done
fi
# Full info, next 16h - altogether16 file
rm $HOME/1_accuweather/altogether16
#TIME
echo "\${color ffe595}TIME\${goto 100}" > $HOME/1_accuweather/altogether16
sed -i "1s/$/$(sed -n 2p $HOME/1_accuweather/hourly1):$(sed -n 3p $HOME/1_accuweather/hourly1)/" $HOME/1_accuweather/altogether16
jump_to=160
for (( i=5; i<=17; i+=2 ))
do
time=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i "1s/$/\${goto 580}$(sed -n 2p $HOME/1_accuweather/hourly2):$(sed -n 3p $HOME/1_accuweather/hourly2)/" $HOME/1_accuweather/altogether16
jump_to=640
for (( i=5; i<=17; i+=2 ))
do
time=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i '1s/$/\n/' $HOME/1_accuweather/altogether16
#IMAGES
jump_to=85
for (( i=1; i<=16; i+=1 ))
do
sed -i "2s/$/\${image \$HOME\/1_accuweather\/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i '1s/$/\n\n/' $HOME/1_accuweather/altogether16
#FORECAST
echo "FORECAST\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i '5s/$/\n/' $HOME/1_accuweather/altogether16
jump_to=100
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#TEMPERATURE
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "TEMPER.\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=29; i<=36; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=29; i<=36; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#REAL FEEL
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "REAL FEEL\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=38; i<=45; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=38; i<=45; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#WIND
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "WIND\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=47; i<=54; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=47; i<=54; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#RAIN
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "RAIN\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=64; i<=71; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=64; i<=71; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#SNOW
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "SNOW\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=73; i<=80; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=73; i<=80; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#ICE
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "ICE\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=82; i<=89; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=82; i<=89; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#UV INDEX
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "UV INDEX\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=99; i<=106; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=99; i<=106; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#CLOUD COVER
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "CLOUD COV.\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=108; i<=115; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=108; i<=115; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#HUMIDITY
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "HUMIDITY\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=117; i<=124; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=117; i<=124; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#DEW POINT
echo "\${color ffe595}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether16
echo "DEW POINT\${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=126; i<=133; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=126; i<=133; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
kill -CONT $(pidof conky)
fi
I have merged the 1a, 1b and 1c scripts.
Name the new script 1_accuweather and use it with the argument -f, -h, or both.
-f downloads info about current conditions and a 10 days forecast, what the 1a and 1b scripts used to do
-h downloads hourly weather for the next 16 hours (unfortunately I can't find the previous 8 hours), i.e. the old 1c script
namely:
./1_accuweather -f -h
or
./1_accuweather -h -f
Download everything, 10days' and 16hours' forecast
./1_accuweather -f
Download only the 10days' forecast
./1_accuweather -h
Download only the 16hours' forecast
If you pass no arguments to the script, it will exit without doing anything.
The hourly forecast will create a file called altogether16, ready to be called by a single execpi command.
Conky for the hourly forecast, what used to be known as 1c:
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- fiddle with window
use_spacer = 'yes',
use_xft = true,
-- Update interval in seconds
update_interval = 3,
-- Minimum size of text area
minimum_width = 1030, minimum_height = 300,
maximum_width = 1030,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,-- amplifies text if yes
draw_borders = false,
--font freesans -12
font = 'Arial:size=9',
uppercase = false,-- set to yes if you want all text to be in uppercase
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_margin = '9',
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
own_window_colour = 'brown',
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 10,
gap_y = 30,
imlib_cache_size = 0,
text_buffer_size = 4096,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${font Arial:size=11}${color ffe595}HOURLY WEATHER ${font}${hr 2}${texeci 600 bash $HOME/1_accuweather/1_accuweather -h}
${execpi 600 sed -n '1,26p' $HOME/1_accuweather/altogether16}
]];
What used to be the 1a conkyrc:
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
own_window_colour = 'brown',
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- fiddle with window
use_spacer = 'right',
use_xft = true,
-- Update interval in seconds
update_interval = 3.0,
-- Minimum size of text area
minimum_width = 280, minimum_height = 500,
maximum_width = 230,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,-- amplifies text if yes
draw_borders = false,
--font freesans -12
font = 'Arial:size=9',
uppercase = false,-- set to yes if you want all text to be in uppercase
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_inner_margin = 9,
border_outer_margin = 0,
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 10,
gap_y = 30,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${color 8e8e8e}WEATHER ${hr 2}$color${execi 600 bash $HOME/1_accuweather/1_accuweather -f}
${font conkyweather:size=40}${execi 600 sed -n '22p' ~/1_accuweather/curr_cond}${font}${goto 75}${voffset -40}CURRENTLY: ${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°
${goto 75}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '26p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '27p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '28p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '29p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '30p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '26p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '27p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '28p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '29p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|fold -w30}
${font conkyweather:size=40}${execi 600 sed -n '30p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '21p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather/last_days|fold -w30}
]];
What used to be known as 1b1:
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- fiddle with window
use_spacer = 'yes',
use_xft = true,
-- Update interval in seconds
update_interval = 3,
-- Minimum size of text area
minimum_width = 360, minimum_height = 500,
maximum_width = 360,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,-- amplifies text if yes
draw_borders = false,
--font freesans -12
font = 'Arial:size=9',
uppercase = false,-- set to yes if you want all text to be in uppercase
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_margin = '9',
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
own_window_colour = 'brown',
own_window_transparent = true,
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 10,
gap_y = 30,
imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1_accuweather/1_accuweather -f}
${image $HOME/1_accuweather/0.png -p 0,40 -s 170x170}
${font Arial:size=10}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond}${font}${goto 200}${color ffe595}TEMPERATURE: $color${alignr}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° (${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°)
${goto 200}${color ffe595}WIND SPEED: $color${alignr}${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}CLOUC COVER: $color${alignr}${execpi 600 sed -n '10p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}CEILING: $color${alignr}${execpi 600 sed -n '11p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '12p' $HOME/1_accuweather/curr_cond}°
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '13p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN R/S: $color${alignr}${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN DUR: $color${alignr}${execpi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON R/S: $color${alignr}${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON DUR: $color${alignr}${execpi 600 sed -n '20p' $HOME/1_accuweather/curr_cond}
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}$color$font${image $HOME/1_accuweather/1.png -p 0,245 -s 80x80}${image $HOME/1_accuweather/2.png -p 110,245 -s 80x80}${image $HOME/1_accuweather/3.png -p 230,245 -s 80x80}
${goto 100}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°
${goto 100}/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°
${font Arial:size=8}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c1-20}
${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}$color$font${image $HOME/1_accuweather/4.png -p 0,385 -s 80x80}${image $HOME/1_accuweather/5.png -p 110,385 -s 80x80}${image $HOME/1_accuweather/6.png -p 230,385 -s 80x80}
${goto 100}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°
${font Arial:size=8}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}${goto 145}${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days}${goto 270}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days}$color$font${image $HOME/1_accuweather/7.png -p 0,525 -s 80x80}${image $HOME/1_accuweather/8.png -p 110,525 -s 80x80}${image $HOME/1_accuweather/9.png -p 230,525 -s 80x80}
${goto 100}${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°${goto 210}${execpi 600 sed -n '13p' $HOME/1_accuweather/last_days}°${goto 330}${execpi 600 sed -n '18p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°${goto 210}/${execpi 600 sed -n '14p' $HOME/1_accuweather/last_days}°${goto 330}/${execpi 600 sed -n '19p' $HOME/1_accuweather/last_days}°
${font Arial:size=8}${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c21-40}$font
]];
What was formerly known as 1b2:
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- fiddle with window
use_spacer = 'yes',
use_xft = true,
-- Update interval in seconds
update_interval = 3,
-- Minimum size of text area
minimum_width = 360, minimum_height = 500,
maximum_width = 360,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,-- amplifies text if yes
draw_borders = false,
--font freesans -12
font = 'Arial:size=9',
uppercase = false,-- set to yes if you want all text to be in uppercase
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_margin = '9',
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
own_window_colour = 'brown',
own_window_transparent = true,
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 10,
gap_y = 30,
imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1_accuweather/1_accuweather -f}
${font Arial:size=10}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond}
${font conkyweather:size=130}${execi 600 sed -n '22p' $HOME/1_accuweather/curr_cond}${font}
${voffset -170}${font}${goto 200}${color ffe595}TEMPERATURE: $color${alignr}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° (${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°)
${goto 200}${color ffe595}WIND SPEED: $color${alignr}${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}CLOUC COVER: $color${alignr}${execpi 600 sed -n '10p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}CEILING: $color${alignr}${execpi 600 sed -n '11p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '12p' $HOME/1_accuweather/curr_cond}°
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '13p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN R/S: $color${alignr}${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN DUR: $color${alignr}${execpi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON R/S: $color${alignr}${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON DUR: $color${alignr}${execpi 600 sed -n '20p' $HOME/1_accuweather/curr_cond}
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}$color$font
${font conkyweather:size=50}${execi 600 sed -n '26p' $HOME/1_accuweather/first_days}${goto 135}${execi 600 sed -n '27p' $HOME/1_accuweather/first_days}${goto 255}${execi 600 sed -n '28p' $HOME/1_accuweather/first_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°
${goto 100}/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°
${font Arial:size=8}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c1-20}
${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600 sed -n '29p' $HOME/1_accuweather/first_days}${goto 135}${execi 600 sed -n '30p' $HOME/1_accuweather/first_days}${goto 255}${execi 600 sed -n '26p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°
${font Arial:size=8}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}${goto 145}${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days}${goto 270}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600 sed -n '27p' $HOME/1_accuweather/last_days}${goto 135}${execi 600 sed -n '28p' $HOME/1_accuweather/last_days}${goto 255}${execi 600 sed -n '29p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°${goto 210}${execpi 600 sed -n '13p' $HOME/1_accuweather/last_days}°${goto 330}${execpi 600 sed -n '18p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°${goto 210}/${execpi 600 sed -n '14p' $HOME/1_accuweather/last_days}°${goto 330}/${execpi 600 sed -n '19p' $HOME/1_accuweather/last_days}°
${font Arial:size=8}${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c21-40}$font
]];
Last edited by TeoBigusGeekus (2016-09-12 12:33:33)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
I'll wait for a couple of days and then the new script will be tarballed and posted on the 1rst page.
Any feedback is more than welcome.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
No TONIGHT info with the new script I'm afraid.
It's just current conditions and 10 future forecasts (it could be a day of the week, tonight, early am, today, etc.)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
I can see that it changes TODAY/TONIGHT. Dammn. I really wanted the two separate objects.
Offline
Yeah, I know, it's frustrating.
TODAY/TONIGHT is not consistent in Accuweather's page.
Many times it's TONIGHT/TOMORROW.
If you download info for TOMORROW, you'll repeat the same info later when you download the forecast for the 1rst day.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
In looking back at my .conkyrc, I was not using the images but rather was using the ConkyWeather font with the 1a script. Also, my Conky was set up to pull current conditions, the forecast for today/tonight, the forecast for tomorrow, and the forecast for the day after. That was all I wanted or needed, as ten day forecasts are notoriously inaccurate. Am I correct in thinking there is no longer a way to keep the information to this (without knowing a great deal about scripting myself, which I don't)?
Offline
The TODAY/TONIGHT part is not always there in Accuweather's forecast page.
Have a look at this
No today info: if I pulled the weather for TONIGHT and TOMORROW, the info for tomorrow would be repeated later on when I would download the forecast for the first 5 days.
The above is redundant IMO: the forecast would be for Current Conditions, Tonight, Tomorrow(Saturday), Saturday(again), Sunday,etc.
You get the idea...
New York, for example, has TODAY/TONIGHT at this particular moment
but later on, in the evening, it will become TONIGHT and TOMORROW.
I hope I don't confuse you too much.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline