You are not logged in.
You're welcome unklar. Just monitor it, especially later tonight, as I haven't tested it for tonight/early am conditions.
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
@ Teo
Hello Teo ,
when I told you of conky radar these mean that you place the first recovers images of satellite with the height of the clouds , the second weather satellite images . These have taken them on the web , I have some problem in outputting images , I'll explain:
the images displayed, I come apart , surely you who are more experienced than me can check scripts and conky . As a version of Linux use bunsenlab . Let me know if it is feasible
-------------conky1 conkyradar--------------
background yes
use_xft yes
xftfont URW Chancery L:style=Bold:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_color 000000
#own_window_argb_value 180
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 250
maximum_width 300
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
border_width 1
draw_graph_borders no
default_color ffffff
default_outline_color cacaca
alignment top_left
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 ffff00
lua_load ~/.conky/LUA/draw_bg.lua
own_window_argb_value 0
own_window_colour 000000
TEXT
${lua conky_draw_bg 0 5 5 0 0 0x000000 0.99}
${texeci 300 $HOME/conkyradar/sat-round.sh}
${image $HOME/conkyradar/radar.gif -p 0,0 -s 300x250 -f 100}
----script1 conkyradar---------------
# Crée par JPDipsy
# script de recupération imagesat couverture nuageuse http://www.sat24.com
# et mise en forme polaroïd imagemagick et pagecurl doivent être installés
# ce script et le script pagecurl doivent être dans le même rep.
#----------------------------------------------------------------------------------
path=`dirname $0`
heuremodif=`date +%H`; minmodif=`date +%M`
# ce que vous voulez
fonte=Norasi
nomimage=radar
tailleimage=80 # ceci est en pourcentage
tailledecoupe=450x450
rotation=0
libelle="Report: "
wget -q -O $HOME/conkyradar/$nomimage.gif "http://www.meteo-mc.fr/dedie/Images/sat/satireu1.gif"
function mise_en_forme_image {
convert $HOME/conkyradar/$nomimage.png -gravity South -density 150 \
-fill white -font $fonte -pointsize 14 -annotate 0x10+105+5 "$libelle $heuremodif h $minmodif" $HOME/conkyradar/$nomimage.png
convert $HOME/conkyradar/$nomimage.png \
\( +clone -alpha extract \
-draw 'fill black polygon 0,0 0,15 15,0 fill white circle 0,15 15,0' \
\( +clone -flip \) -compose Multiply -composite \
\( +clone -flop \) -compose Multiply -composite \
\) -alpha off -compose CopyOpacity -composite $HOME/conkyradar/$nomimage.png
}
function ombre {
convert $HOME/conkyradar/$nomimage.png -background black \( +clone -shadow 60x4+2+2 \) +swap -background none -flatten $HOME/conkyradar/$nomimage.png
}
if [[ -e $HOME/conkyradar/$nomimage.gif ]] ; then
# decoupage de la partie utile
convert $HOME/conkyradar/$nomimage.gif -filter Lanczos -crop $tailledecoupe+140+110\! $HOME/conkyradar/$nomimage.png
mise_en_forme_image ; ombre ; rm $HOME/conkyradar/$nomimage.gif
else
# comme ça votre conky aura toujours une image au cas ou
convert -size $tailledecoupe plasma: $HOME/conkyradar/$nomimage.png
libelle="Désolé pas d'image radar à "
mise_en_forme_image ; ombre
fi
--------------conky2 imagesat------------------
background yes
use_xft yes
xftfont URW Chancery L:style=Bold:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_color 000000
#own_window_argb_value 180
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 220
maximum_width 300
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
border_width 1
draw_graph_borders no
default_color ffffff
default_outline_color cacaca
alignment top_left
gap_x 10
gap_y 260
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 ffff00
lua_load ~/.conky/LUA/draw_bg.lua
own_window_argb_value 0
own_window_colour 000000
TEXT
${lua conky_draw_bg 0 5 5 0 0 0x000000 0.99}
${texeci 300 $HOME/imagesat/sat.sh}
${image $HOME/imagesat/imagesat-couvnuage.gif -p 0,0 -s 300x220 -f 100}
-------------script2 conky imagesat-----------------------
#!/bin/bash
# Crée par JPDipsy
# script de recupération imagesat couverture nuageuse http://www.sat24.com
# et mise en forme polaroïd .imagemagick doit être installé
# pas touche ----------------------------------------------------------------------
heuremodif=`date +%H`; minmodif=`date +%M`
#----------------------------------------------------------------------------------
# ce que vous voulez
fonte=Times-Bold
nomimage=imagesat-couvnuage
tailleimage=80 # ceci est en pourcentage
# recup image sat
wget -q -O $HOME/imagesat/$nomimage.gif "http://www.sat24.com/image.ashx?country=it&type=zoom&format=640x480001001&rnd=610703"
#if [[ -e ~/.conky/imagesat/$nomimage.gif ]] ; then
# decoupage de la partie utile
#convert ~/.conky/imagesat/$nomimage.gif -filter Lanczos -crop 350x350+100+200\! ~/.conky/imagesat/imagesat-couvnuage.png
#libelle="Couverture nuageuse à "
#else
# comme ça votre conky aura toujours une image au cas ou
#convert -size 550x550 plasma: ~/.conky/imagesat/$nomimage.png
#libelle="Désolé pas d'image radar à "
#fi
Nothing happens by chance
Offline
What do you mean the images come apart?
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 apart and pieces and then disappear .... you can do something for you? scripts do not know the conky
Nothing happens by chance
Offline
I can't efficiently run the conky files as I don't have a lua supporting conky installed, but in the first one, conky is asking for a radar.gif imgae, whereas the script produces a radar.png one.
The second one works OK, provided I comment out the lua lines:
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
Try with this
#!/bin/bash
#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
#put your Accuweather address here
address="http://www.accuweather.com/de/de/berlin/10178/weather-forecast/178087"
#address="http://www.accuweather.com/en/us/los-angeles-ca/90012/weather-forecast/347625"
loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw "$curr_addr"
addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw "$addr1"
addr2="$addr1"?day=6
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw "$addr2"
#current conditions
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw ]]; then
sed -i '/detail-now/,/#details/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw
egrep -i '"cond"|icon i-|detail-tab-panel' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw > $HOME/1a_accuweather_conkyweather_font_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/1a_accuweather_conkyweather_font_Deutsch/curr_cond
sed -i -e 's/^.*detail-tab-panel //g' -e 's/^.*icon i-//g' -e 's/"><\/div>.*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
sed -i -e 's/^.*"cond">//g' -e 's/°/\n/g' -e 's/<\/span>.*"temp">/\n/g' -e 's/<.*>//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
sed -i -e 's/">//g' -e 's/-->//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' -e 's/-[a-z].*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
image=$(sed -n 2p $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond)
sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
fi
#First 5 days
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw ]]; then
sed -i '/feed-tabs/,/\.feed-tabs/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw
egrep -i 'Abend|Heute|H abd|Nacht|icon i-|cond|temp|>Mo<|>Di<|>Mi<|>Do<|>Fr<|>Sa<|>So<' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw > $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/TT<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/Heute/HEUTE/' -e 's/H abd/HEUTE ABEND/' -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/' -e 's/-[a-z]$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
time=$(sed -n 1p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
image=$(sed -n 2p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
if [[ $time == HEUTE ]]; then
sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
elif [[ $time == ABEND || $time == NACHT || $time == "HEUTE ABEND" ]]; then
sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i 3a- $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
fi
for (( i=7; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
sed -i ${i}s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
done
fi
#Next 5 days
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw ]]; then
sed -i '/feed-tabs/,/\.feed-tabs/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw
egrep -i 'icon i-|cond|temp|>Mo<|>Di<|>Mi<|>Do<|>Fr<|>Sa<|>So<' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw > $HOME/1a_accuweather_conkyweather_font_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/1a_accuweather_conkyweather_font_Deutsch/last_days
sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
sed -i -e 's/TT<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' $HOME/1a_accuweather_conkyweather_font_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/' -e 's/-[a-z]$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days)
sed -i ${i}s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
done
fi
kill -CONT $(pidof conky)
and keep monitoring.
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
I can't efficiently run the conky files as I don't have a lua supporting conky installed, but in the first one, conky is asking for a radar.gif imgae, whereas the script produces a radar.png one.
The second one works OK, provided I comment out the lua lines:
http://i.imgur.com/THIXbq2t.jpg
But do you think it's worth ? or work on another conky ?
Nothing happens by chance
Offline
If you make the first conky to show the radar.png image, then why not?
...if it suits your needs...
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
If you make the first conky to show the radar.png image, then why not?
...if it suits your needs...
But you when the radar is not active conky part ?
Nothing happens by chance
Offline
RE: unklar testing the conky at different times of the day.
My first thought was to use "faketime" as I have with calendar conkys ... but that won't work well to get future weather. DUH!
If it did I'd use it for an RSS feed on next weeks loto!
OffTopic
We now return you to our regularly scheduled Teo's weather scripts.
Teo, you are awesome. You just can't help helping people.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
But you when the radar is not active conky part ?
Can you explain your question a bit more?
Teo, you are awesome. You just can't help helping people.
Just an exception for unklar, I won't do other translations any time soon.
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
Hm, to switch again Broken
[ <=> ] 85.181 --.-K/s in 0,07s
2015-12-07 00:06:48 (1,12 MB/s) - »/home/unklar/1a_accuweather_conkyweather_font_Deutsch/last_days_raw« gespeichert [85181]
sed: -e Ausdruck #1, Zeichen 9: Nicht beendeter `s'-Befehl
sed: -e Ausdruck #1, Zeichen 16: Nicht beendeter `s'-Befehl
sed: -e Ausdruck #1, Zeichen 6: Nicht beendeter `s'-Befehl
sed: -e Ausdruck #1, Zeichen 10: Nicht beendeter `s'-Befehl
Last edited by unklar (2015-12-06 23:26:46)
Offline
I can't efficiently run the conky files as I don't have a lua supporting conky installed, but in the first one, conky is asking for a radar.gif imgae, whereas the script produces a radar.png one.
The second one works OK, provided I comment out the lua lines:
http://i.imgur.com/THIXbq2t.jpg
I'm going to play with it as well Teo ... just so you know.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hello Sector11, Good Morning
# pkill -xf "conky -q -c /home/unklar/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11_thin" &
# works perfect - Mon 24 Nov 2014 23:32 - by sector11
# works perfect - Sun 04 Jan 2015 14:31
# works perfect - Fri 01 May 2015 18:37
# works perfect - Wed 06 May 2015 too - by sector11
# works perfect - Sam 05 Dez 2015 23:00 - adapted with new script
### Begin Window Settings ########################################
own_window yes
own_window_type normal
own_window_transparent no ##yes
own_window_hints below,skip_taskbar,skip_pager ##,sticky
own_window_colour 000000
own_window_class Conky
own_window_title conkyrc 1b2 Int s11 thin
### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
own_window_argb_visual yes # Options: yes or no
### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 75
minimum_size 110 0 ## w|h
maximum_width 75
gap_x 10 # l|r
gap_y 10 # u|d
alignment tl
########################################## End Window Settings ###
### Font Settings ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont monofur:bold:size=12
xftfont Fantasque Sans Mono:bold:size=10
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
############################################ End Font Settings ###
### Color Settings ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC #220 220 220 Gainsboro
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
########################################### End Color Settings ###
### Borders Section ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
########################################### End Borders Secton ###
### 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
# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256
# Subtract (file slystem) buffers from used memory?
no_buffers yes
# change GiB to G and MiB to M
short_units yes
# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2
# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0
#default_bar_size 0 10
# 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
### ${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
TEXT
Jetzt${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
${execpi 600 sed -n '29p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°
±${execpi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${font}${color}
${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
UVI ${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
Wind ${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
@ ${execpi 600 sed -n '38p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
Vis ${execpi 600 sed -n '37p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
CC ${execpi 600 sed -n '36p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
Hum ${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
DP ${execpi 600 sed -n '35p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°
S ${execpi 600 sed -n '39p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
↓ ${execpi 600 sed -n '40p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
M ${execpi 600 sed -n '41p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
↓ ${execpi 600 sed -n '42p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${execi 3600 echo `date --date="0 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '26p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
CoP ${execpi 600 sed -n '28p' $HOME/1b2_accuweather_conkyweather_font/first_days}
Nachts
${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
CoP ${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/first_days}
${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '13p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '18p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '23p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="7 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="8 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '17p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="9 day" | awk '{print $1" "$2" "$3}'`}
${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600 sed -n '22p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${membar 0}${voffset -300}
${voffset 300}${alignc}${execpi 600 sed -n '43p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
Last edited by unklar (2015-12-07 09:00:50)
Offline
Ahhh, so Early AM is Nachts in German, I didn't know this.
There you go
#!/bin/bash
#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
#put your Accuweather address here
address="http://www.accuweather.com/de/us/anchorage-ak/99501/weather-forecast/346835"
#address="http://www.accuweather.com/en/us/los-angeles-ca/90012/weather-forecast/347625"
loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw "$curr_addr"
addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw "$addr1"
addr2="$addr1"?day=6
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw "$addr2"
#current conditions
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw ]]; then
sed -i '/detail-now/,/#details/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw
egrep -i '"cond"|icon i-|detail-tab-panel' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw > $HOME/1a_accuweather_conkyweather_font_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/1a_accuweather_conkyweather_font_Deutsch/curr_cond
sed -i -e 's/^.*detail-tab-panel //g' -e 's/^.*icon i-//g' -e 's/"><\/div>.*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
sed -i -e 's/^.*"cond">//g' -e 's/°/\n/g' -e 's/<\/span>.*"temp">/\n/g' -e 's/<.*>//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
sed -i -e 's/">//g' -e 's/-->//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' -e 's/-[a-z].*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
image=$(sed -n 2p $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond)
sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
fi
#First 5 days
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw ]]; then
sed -i '/feed-tabs/,/\.feed-tabs/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw
egrep -i 'Abend|Heute|H abd|Nacht|icon i-|cond|temp|>Mo<|>Di<|>Mi<|>Do<|>Fr<|>Sa<|>So<' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw > $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/TT<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i -e 's/Nachts/NACHTS/' -e 's/Heute/HEUTE/' -e 's/H abd/HEUTE ABEND/' -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/' -e 's/-[a-z]$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
time=$(sed -n 1p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
image=$(sed -n 2p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
if [[ $time == HEUTE ]]; then
sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
elif [[ $time == ABEND || $time == NACHT || $time == "HEUTE ABEND" || $time == NACHTS ]]; then
sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
sed -i 3a- $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
fi
for (( i=7; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
sed -i ${i}s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
done
fi
#Next 5 days
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw ]]; then
sed -i '/feed-tabs/,/\.feed-tabs/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw
egrep -i 'icon i-|cond|temp|>Mo<|>Di<|>Mi<|>Do<|>Fr<|>Sa<|>So<' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw > $HOME/1a_accuweather_conkyweather_font_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/1a_accuweather_conkyweather_font_Deutsch/last_days
sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
sed -i -e 's/TT<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' $HOME/1a_accuweather_conkyweather_font_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/' -e 's/-[a-z]$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days)
sed -i ${i}s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
done
fi
kill -CONT $(pidof conky)
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 Sector11, Good Morning
repaired
Guten morgan unklar
It was broken?
@Teo
Nacht = night
Mien Deutche ist 'bad'
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
When the time of the exchange
TODAY> TONIGHT> NIGHT is
(in German)
6.00> 12:00> 18:00> 24.00 / 0.00 clock
then Teo, the AC 12:00 worked!
Thank you!
Offline