@ Didier-T
Bonjour,
J'ai essayé de modifier ton conky météo afin de l'adapter aux désirs de ma moitié qui ne souhaite qu'un conky plus simple et plus "basique" (elle utilise Voyager 11.10). En démarrant ma session avec ton conky puis en éditant le fichier conkyrc_meteo_lua et en le modifiant petit à petit, je suis arrivé à ceci qui me convient à peu près :
http://pix.toile-libre.org/?img=1336408235.png
Le problème est que dès que j'éteins le PC et que je le rallume, le conky météo se résume à l'affichage de l'heure, comme ceci:
http://pix.toile-libre.org/?img=1336408381.png
Je n'obtiens pas mieux si je lance le conky dans un terminal :
┌─( voyager ) - ( 3.0.0-19-generic ) - ( ~ )
└─> conky -c ~/conky/conkyrc_meteo_lua
Conky: forked to background, pid is 13366
┌─( voyager ) - ( 3.0.0-19-generic ) - ( ~ )
└─>
Conky: desktop window (1400003) is subwindow of root window (152)
Conky: window type - desktop
Conky: drawing to created window (0x3000001)
Conky: drawing to double buffer
version = v4
web = http://www.accuweather.com/fr/fr/plougonvelin/158035/weather-forecast/158035
Pévision Nb jours = 5
Pévision Matin = non
Pévision Après Midi = oui
Pévision Soirée = non
Pévision Nuit = oui
Délais = 300
Chemin de travail = /tmp
Palier = 20
Chemin de sauvegarde = /home/voyager/conky/meteo/
Accepterai-tu, s'il-te-plait, lorsque tu auras un peu de temps (aucune urgence ! ) et si cela ne t'ennuie pas, de regarder mon fichier conkyrc_meteo_lua et de me dire où ai-je commis une erreur ?
Voici mon conkyrc_meteo_lua:
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
# -- Window specifications -- #
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 280 100
maximum_width 310
alignment tl
gap_x 0
gap_y 40
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Text settings -- #
use_xft yes
xftfont MaiandraGD:size=24
xftalpha 0.4
uppercase no
default_color 8b8b8b
# -- Déclaration template -- #
template0 ${image ~/conky/script/images/\1 -p \2 -s \3} # -- images fond -- #
template1 ${lua Meteo_\1 \2 \3 \4 \5 \6} # -- gestion météo --#
template2 ${lua_parse Meteo_\1 \2 \3 \4 60 \5} # -- icônes météo -- \2=répertoire icônes \3=position \4=taille \5=jour (pour les prévisions) #
template3 ${lua Lune_\1}
template4 ${lua_parse Images_\1 \2 \3 60 \4} # -- Appelle image -- \2=position \3=taille \4=jour (pour les prévisions) #
lua_load ~/conky/script/meteo.lua
lua_startup_hook init ~/conky/script/meteo.cfg
TEXT
#### Lancement du script récupérant les données météo ####
${template1 Maj}
#### Premier cadre ####
##### Heure #####
${voffset -16}${font LED_mono :style=Medium:size=60}${color 434343}${goto 30}${time %H}${goto 140}${time %M}${font LED_mono :size=25:style=Medium}${color 808080}${goto 235}${time %S}
##### Date #####
${voffset 8}${color yellow}${font URW Chancery L:style=Bold:size=18}${alignc}${exec date "+%A %d %B %Y"|sed 's/^.\| [a-z]/\U&/g'}
##### ville #####
${voffset -10}${goto 5}${color ffe595}${template1 Ville}
##### température actuelle #####
${voffset -10}${goto 15}${font URW Chancery L:style=Bold:size=30}${if_match ${template1 TempAct}<5}${color lightblue}${blink ${template1 TempAct}°}${else}${color white}${template1 TempAct}°${endif}
##### Affichage conditions météo #####
${voffset -25}${font URW Chancery L:style=Bold:size=12}${color white}${alignc}${template1 CondMeteo}
##### Affichage infos vent ######
${voffset -45}${color ffe595}${font Helvetica LT Std:style=Bold:size=10}${alignr}${template1 VentDirP}
${color ffe595}${font Helvetica LT Std:style=Bold:size=10}${goto 210}${template1 VentForce} km/h
#### Second cadre ####
##### Affichage temperature #####
${voffset 74}${goto 27}${font Ubuntu :size=10:style=bold}${color red}${template1 Jour_Temp 2}°${color white}/${color lightblue}${template1 Nuit_Temp 2}°${goto 97}${color red}${template1 Jour_Temp 3}°${color white}/${color lightblue}${template1 Nuit_Temp 3}°${goto 167}${color red}${template1 Jour_Temp 4}°${color white}/${color lightblue}${template1 Nuit_Temp 4}°${goto 237}${color red}${template1 Jour_Temp 5}°${color white}/${color lightblue}${template1 Nuit_Temp 5}°
##### Affichage vitesse du vent #####
${voffset -1}${font Ubuntu :size=9:style=bold}${color ffe595}${goto 27}${template1 Jour_VentForce 2}${font Ubuntu :size=6:style=bold} km/h${goto 97}${voffset -4}${font Ubuntu :size=9:style=bold}${template1 Jour_VentForce 3}${font Ubuntu :size=6:style=bold} km/h${goto 167}${voffset -4}${font Ubuntu :size=9:style=bold}${template1 Jour_VentForce 4}${font Ubuntu :size=6:style=bold} km/h${goto 237}${voffset -4}${font Ubuntu :size=9:style=bold}${template1 Jour_VentForce 5}${font Ubuntu :size=6:style=bold} km/h
##### Affichage Date #####
${voffset 1}${font Ubuntu :size=8:style=bold}${color white}${goto 28}${template1 Jour %a_%d 2}${goto 95}${template1 Jour %a_%d 3}${goto 168}${template1 Jour %a_%d 4}${goto 235}${template1 Jour %a_%d 5}
#### Affichage des cadres utilisés dans le conky ####
${voffset -935}
#### premier cadre ####
${template0 base.png 0,40 280x170}
${template0 flip_bg.png 24,10 100x100}
${template0 flip_bg.png 134,10 100x100}
#### Second cadre ####
${template0 base.png 0,245 280x50}
#### icônes premier cadre ####
${template2 IconeM ~/conky/meteo/icones 74,120 132x79}
${template2 IconeV ~/conky/meteo/icones/vent 235,130 44x44}
#### icônes Second cadre ####
${template2 AM_IconeM ~/conky/meteo/icones 0,225 86x52 2}
${template2 AM_IconeM ~/conky/meteo/icones 70,225 86x52 3}
${template2 AM_IconeM ~/conky/meteo/icones 140,225 86x52 4}
${template2 AM_IconeM ~/conky/meteo/icones 210,225 86x52 5}
Je te remercie vivement par avance 🙂