You are not logged in.
Offline
H abd:18°/TT°
TeoBigusGeekus wrote:In English, it would be 18/Lo, in German it's 18/TT.
Though a good question would be what TT means...
Please tell me if you know, it must have something to do with Low, or whatever.
it means
Low of --> Tiefsttemperatur
irritating was the sign for me °
I have removed it.
Offline
it means
Low of --> Tiefsttemperatur
Ah, right, it makes sense now, although a bit obscure...
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
Use whichever message you like
#!/bin/bash
wget -O $HOME/Desktop/loutch http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050
message1=$(sed -n '/<span>Perspectives<\/span>/ { n;p; }' $HOME/Desktop/loutch)
message2=$(sed -n '/<em>.*<\/em>/p' $HOME/Desktop/loutch)
echo $message1 > $HOME/Desktop/loutch
echo $message2 >> $HOME/Desktop/loutch
sed -i -e 's/<p>//' -e 's/<\/p>.*$//' -e 's/<em>//' -e 's/<\/em>//' $HOME/Desktop/loutch
char_1rst_line=$(sed -n 1p $HOME/Desktop/loutch|wc -c)
if (( $char_1rst_line <= 1 )); then
sed -i '1s/^$/RAS/' $HOME/Desktop/loutch
fi
char_2nd_line=$(sed -n 2p $HOME/Desktop/loutch|wc -c)
if (( $char_2nd_line <= 1 )); then
sed -i '2s/^$/RAS/' $HOME/Desktop/loutch
fi
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
Hello
Théo great job but i have any error. have this in file alertes
RAS
Vigilance jaune pour les orages
<td><em> </em></td>
& this on conky the same line into two []
@+
Last edited by loutch (2016-09-16 07:08:55)
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
Damn those carriage returns!
Try with this:
#!/bin/bash
wget -O $HOME/Desktop/loutch http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050
sed -i 's/\r//' $HOME/Desktop/loutch
message1=$(sed -n '/<span>Perspectives<\/span>/ { n;p; }' $HOME/Desktop/loutch)
message2=$(sed -n '/^[ \t]*<em>.*<\/em>$/p' $HOME/Desktop/loutch)
echo $message1 > $HOME/Desktop/loutch
echo $message2 >> $HOME/Desktop/loutch
sed -i -e 's/<p>//' -e 's/<\/p>.*$//' -e 's/<em>//' -e 's/<\/em>//' $HOME/Desktop/loutch
char_1rst_line=$(sed -n 1p $HOME/Desktop/loutch|wc -c)
if (( $char_1rst_line <= 1 )); then
sed -i '1s/^$/RAS/' $HOME/Desktop/loutch
fi
char_2nd_line=$(sed -n 2p $HOME/Desktop/loutch|wc -c)
if (( $char_2nd_line <= 1 )); then
sed -i '2s/^$/RAS/' $HOME/Desktop/loutch
fi
Last edited by TeoBigusGeekus (2016-09-16 09:01:53)
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 guess 'CLOUC COVER' should be 'CLOUD COVER' in .conkyrc_1_images:72 and .conkyrc_1_weatherfont:73.
Offline
I guess 'CLOUC COVER' should be 'CLOUD COVER' in .conkyrc_1_images:72 and .conkyrc_1_weatherfont:73.
Oh crap, well spotted ghorvath, thanks for the feedback.
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
ANNOUNCEMENT
Tiny errors on two of the new .conkyrc files, see here. I corrected them and rebundled the package.
Thanks to ghorvath for the sharp eye.
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
Offline
Wunderbar unklar, vielen Danke auf ihre Unterstuzung.
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
RE
I repeat me but Théo you are the KING
@+
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
merci beaucoup!
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
Offline
Beautiful my friend, congratulations!
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 am 'finally' getting round to playing with this. .. I caught the 'Cloud Cover" thing and fixed it - and see it was addressed.
I also see the "Today/Tonight OOPSIE by accuweather" - dumb bunnies - and it looks like they dropped the "Chance of Precipitation' call as well.
Finally got my top and bottom bars fixed and my wife's combo-wunderground-accuweather script fixed as well.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Welcome back S11, we missed you.
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
Have a LOT of conkys here that need fixing.
I've already started with one of your most beautiful and adapted the paths.
But Distrust if I have pictures taken right ...
Can you consider at the opportunity.
Welcome back
1_accuweather
#!/bin/bash
if (( $# < 1 )); then
exit
fi
#put your Accuweather address here
address="http://www.accuweather.com/en/de/lichtenstein/09350/weather-forecast/171261"
#address="http://www.accuweather.com/en/us/new-york-ny/10017/weather-forecast/349727"
#address="http://www.accuweather.com/en/us/los-angeles-ca/90012/weather-forecast/347625"
#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/$(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/' $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/$(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/$(sed -n ${i}p $HOME/1_accuweather/last_days).png $HOME/1_accuweather/$j.png
((j++))
done
fi
if [[ $1 != -h && $2 != -h ]]; then
date +%T > $HOME/1_accuweather/aktualisiert
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/$(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/$(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
conkyrc
# pkill -xf "conky -q -c /home/unklar/S11/ConkyHTCSpill/conkyrc" &
# Original von sector11 Mai 2016
# modifiziert von unklar Juni 2016 und September 2016
# Idee von HTC Januar 2012 http://grynays.deviantart.com/art/Conky-HTC-Home-Spill-290958248
## ---------- Begin Window Settings
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,undecorated,below #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title HTCSpill
## ARGB can be used for real transparency
own_window_argb_visual yes ## Options: yes or no
## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 100
# fold -sw36 requires this as a minimum:
#minimum_size 245 0
#maximum_width 245
minimum_size 235 240
maximum_width 235
gap_x 15 ## l|r
gap_y 15 ## u|d
alignment tl
## ---------- End Window Settings
## ---------- Font Settings
## Force UTF8? requires XFT
override_utf8_locale yes
## Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Liberation Mono:bold:size=9
#xftfont Fantasque Sans Mono:bold:size=9
#xftfont Monofur:bold:size=9
#xftfont DejaVu Sans Mono:bold:size=9
## Alpha of Xft font. Must be a value at or between 1 and 0
xftalpha 1.0
## --------- End Font Settings
## --------- Color Settings
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC #Gainsboro
color0 98FB98 #PaleGreen
color1 778899 #LightSlateGray
color2 FFD700 #Gold
color3 B0E0E6 #PowderBlue
color4 F4A460 #SandyBrown
color5 DEB887 #BurlyWood
color6 00BFFF #DeepSkyBlue
color7 5F9EA0 #CadetBlue
color8 FFA500 #Orange
color9 FF4500 #OrangeRed
## ---------- End Color Settings
## ---------- Begin Borders Section
#draw_borders yes
## Stippled borders?
#stippled_borders 5
## border margins
border_inner_margin 0
border_outer_margin 0
## border width
#border_width 2
## graph borders
#draw_graph_borders yes ## no
## default_graph_size 15 40
## ---------- End Borders Secton
## ---------- Begin Miscellaneous Section
## Boolean value, if true, Conky will be forked to background when started.
background yes
## Adds spaces around certain objects to stop them from moving other things
## around, this only helps if you are using a mono font
## Options: right, left or none
use_spacer none
## Subtract (file slystem) buffers from used memory?
no_buffers yes
# Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value if
# you use $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0
# Interval (in seconds) to flush Imlib2 cache.
#imlib_cache_flush_interval 900
## Use the Xdbe extension? (eliminates flicker)
## It is highly reco${color}mmended to use own window with this one
## so double buffer won't be so big.
double_buffer yes
## ---------- End Miscellaneous Section
update_interval 1
#
TEXT
${execi 500 bash $HOME/1_accuweather/1_accuweather -f}\
${image $HOME/S11/ConkyHTCSpill/images/base2.png -p -12,30 -s 260x145}\
${image $HOME/S11/ConkyHTCSpill/images/base2.png -p -12,180 -s 260x62}\
${image $HOME/S11/ConkyHTCSpill/images/flip_bg.png -p 18,7 -s 100x110}\
${image $HOME/S11/ConkyHTCSpill/images/flip_bg.png -p 118,7 -s 100x110}\
${font LED_Mono:size=60}${color1}${goto 26}${time %H}${goto 126}${time %M}${font}
${goto 28}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|cut -c-5}\
${goto 135}${time %a.}${time %e.}${time %b}${color}
${color0}${execpi 600 sed -n '1p' $HOME/1_accuweather/aktualisiert}${color}
Wind ${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° \
${color2}±${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°${color}
@ ${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}\
${alignr 10}H ${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${color9}${execpi 600 sed -n '2p' $HOME/1_accuweather/first_days}° \
${color7}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${color}
${image $HOME/1_accuweather/0.png -p 55,103 -s 125x75}\
${image $HOME/1_accuweather/1.png -p 5,175 -s 46x27}\
${image $HOME/1_accuweather/2.png -p 51,175 -s 46x27}\
${image $HOME/1_accuweather/3.png -p 97,175 -s 46x27}\
${image $HOME/1_accuweather/4.png -p 143,175 -s 46x27}\
${image $HOME/1_accuweather/10.png -p 188,175 -s 46x27}\
${alignc}Lichtenstein, Saxony
${goto 6}${font Liberation Mono:bold:size=8}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°\
${goto 52}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°\
${goto 99}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°\
${goto 144}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°\
${goto 190}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°/\
${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}° ${font}
${goto 12}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 58}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 105}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 150}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 196}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days|cut -c-3}
Offline
Thanks Teo ... I guess for my top bar I'll fave to add "Today" on the left and drop everything to the right of the volume icon and use Sunrise/set Hrs and MoonRise/Set Hrs - if I can get it to fit.
But Today - Tonight was so convenient. Wonder what dumb bunny over at accuweather decided to drop "Tonight" - maybe he has two jobs - and is responsible for 'wunderground' not having the UV Index. ]:D
If wunderground had UVI and 'font' icons it would be the cats as meow.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline