@ michel ruiz et nc2011
Les symptômes décrits laissent supposer que le script tourne, mais que les données ne s'affichent pas.
Pour être sûr que le script tourne :
Le lancer en terminal et voir les messages d'erreur éventuels
Vérifier que dans le répertoire où il est placé, les fichiers générés par ce script apparaissent bien : curr_cond, messages...
Si tel est bien le cas, le diagnostic est simple :
Les données sont extraites mais le conky ne trouve pas le chemin pour aller les chercher et les faire afficher.
Pour vous aider, voici mon conkyrc :
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft yes
# Update interval in seconds
update_interval 3
# Minimum size of text area
minimum_size 355 850
maximum_width 355
override_utf8_locale yes
# Draw shades?
draw_shades yes
# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # 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 yes
# 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 80
gap_y 30
#Rafraichissement images
imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen
TEXT
${font Arial:size=12}${color ffe595}METEO ${font}${hr 2}$color${texeci 500 bash /home/gilles/Accuweather_Conky_Int_Images/acc_int_images}
${image /home/gilles/Accuweather_Conky_Int_Images/cc.png -p 0,60 -s 180x108}
${font Arial:size=14:style=bold}${execpi 600 sed -n '3p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}${font}
${goto 200}${color ffe595}Température: $color${alignr}${execpi 600 sed -n '2p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}°C (${execpi 600 sed -n '4p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}°C)
${goto 200}${color ffe595}Vent : $color${alignr}${execpi 600 sed -n '5p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}Humidité : $color${alignr}${execpi 600 sed -n '6p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}Point de Rosée : $color${alignr}${execpi 600 sed -n '7p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}°C
${goto 200}${color ffe595}Pression : $color${alignr}${execpi 600 sed -n '8p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}Tendance : $color${alignr}${execpi 600 sed -n '9p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}Visibilité : $color${alignr}${execpi 600 sed -n '10p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}Lever Soleil : $color${alignr}${execpi 600 sed -n '11p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}Coucher Soleil : $color${alignr}${execpi 600 sed -n '12p' /home/gilles/Accuweather_Conky_Int_Images/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}AUJOURD'HUI$color$font${goto 230}${font Arial:size=10}${color ffe595}CETTE NUIT$color$font${image /home/gilles/Accuweather_Conky_Int_Images/1.png -p 0,215 -s 120x72}${image /home/gilles/Accuweather_Conky_Int_Images/36.png -p 190,215 -s 120x72}
${font Arial:size=8}${execpi 600 sed -n '1p' /home/gilles/Accuweather_Conky_Int_Images/messages_curr}${goto 195}${execpi 600 sed -n '3p' /home/gilles/Accuweather_Conky_Int_Images/messages_curr}$font
${font Arial:size=8}${execpi 600 sed -n '2p' /home/gilles/Accuweather_Conky_Int_Images/messages_curr}${goto 195}${execpi 600 sed -n '4p' /home/gilles/Accuweather_Conky_Int_Images/messages_curr}$font
${color ffe595}TEMP MAXI: $color${execpi 600 sed -n '4p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 195}${color ffe595}TEMP MINI: $color${execpi 600 sed -n '39p' /home/gilles/Accuweather_Conky_Int_Images/week}°C
${color ffe595}RESSENTIE: $color${execpi 600 sed -n '5p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 195}${color ffe595}RESSENTIE: $color${execpi 600 sed -n '40p' /home/gilles/Accuweather_Conky_Int_Images/week}°C
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '7p' /home/gilles/Accuweather_Conky_Int_Images/week}${goto 155}${execpi 600 sed -n '12p' /home/gilles/Accuweather_Conky_Int_Images/week}${goto 270}${execpi 600 sed -n '17p' /home/gilles/Accuweather_Conky_Int_Images/week}$color${font}
${image /home/gilles/Accuweather_Conky_Int_Images/6.png -p 0,340 -s 90x54}
${font Arial:size=8}${goto 90}${execpi 600 sed -n '9p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 210}${execpi 600 sed -n '14p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 330}${execpi 600 sed -n '19p' /home/gilles/Accuweather_Conky_Int_Images/week}°C
${goto 90}(${execpi 600 sed -n '10p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 210}(${execpi 600 sed -n '15p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 330}(${execpi 600 sed -n '20p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)
${execpi 600 sed -n '3p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '5p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '7p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${execpi 600 sed -n '4p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '6p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '8p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${image /home/gilles/Accuweather_Conky_Int_Images/41.png -p 0,425 -s 90x54}
${font Arial:size=8}${goto 90}${execpi 600 sed -n '44p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 210}${execpi 600 sed -n '49p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 330}${execpi 600 sed -n '54p' /home/gilles/Accuweather_Conky_Int_Images/week}°C
${goto 90}(${execpi 600 sed -n '45p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 210}(${execpi 600 sed -n '50p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 330}(${execpi 600 sed -n '55p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)
${execpi 600 sed -n '17p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '19p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '21p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${execpi 600 sed -n '18p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '20p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '22p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${image /home/gilles/Accuweather_Conky_Int_Images/11.png -p 115,340 -s 90x54}${image /home/gilles/Accuweather_Conky_Int_Images/46.png -p 115,425 -s 90x54}
${image /home/gilles/Accuweather_Conky_Int_Images/16.png -p 230,340 -s 90x54}${image /home/gilles/Accuweather_Conky_Int_Images/51.png -p 230,425 -s 90x54}
${voffset -15}${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '22p' /home/gilles/Accuweather_Conky_Int_Images/week}${goto 155}${execpi 600 sed -n '27p' /home/gilles/Accuweather_Conky_Int_Images/week}${font}${goto 270}${execpi 600 sed -n '32p' /home/gilles/Accuweather_Conky_Int_Images/week}$color${font}
${image /home/gilles/Accuweather_Conky_Int_Images/21.png -p 0,535 -s 90x54}
${font Arial:size=8}${goto 90}${execpi 600 sed -n '24p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 210}${execpi 600 sed -n '29p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 330}${execpi 600 sed -n '34p' /home/gilles/Accuweather_Conky_Int_Images/week}°C
${goto 90}(${execpi 600 sed -n '25p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 210}(${execpi 600 sed -n '30p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 330}(${execpi 600 sed -n '35p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)
${execpi 600 sed -n '9p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '11p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '13p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${execpi 600 sed -n '10p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '12p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '14p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${image /home/gilles/Accuweather_Conky_Int_Images/56.png -p 0,620 -s 90x54}
${font Arial:size=8}${goto 90}${execpi 600 sed -n '59p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 210}${execpi 600 sed -n '64p' /home/gilles/Accuweather_Conky_Int_Images/week}°C${goto 330}${execpi 600 sed -n '69p' /home/gilles/Accuweather_Conky_Int_Images/week}°C
${goto 90}(${execpi 600 sed -n '60p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 210}(${execpi 600 sed -n '65p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)${goto 330}(${execpi 600 sed -n '70p' /home/gilles/Accuweather_Conky_Int_Images/week}°C)
${execpi 600 sed -n '23p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '25p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '27p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${execpi 600 sed -n '24p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 145}${execpi 600 sed -n '26p' /home/gilles/Accuweather_Conky_Int_Images/messages}${goto 250}${execpi 600 sed -n '28p' /home/gilles/Accuweather_Conky_Int_Images/messages}
${voffset -10}${hr 1}
${image /home/gilles/Accuweather_Conky_Int_Images/26.png -p 115,535 -s 90x54}${image /home/gilles/Accuweather_Conky_Int_Images/61.png -p 115,620 -s 90x54}
${image /home/gilles/Accuweather_Conky_Int_Images/31.png -p 230,535 -s 90x54}${image /home/gilles/Accuweather_Conky_Int_Images/66.png -p 230,620 -s 90x54}
A enregistrer sous le nom que vous voulez, dans le répertoire où se trouve tout le reste du conky (script, répertoire d'images, etc...)
Inutile de l'enregistrer en fichier caché (pas de point devant le nom)
Pour que cela fonctionne, il faut
IMPERATIVEMENT que le chemin déclaré dans le conkyrc soit le bon.
Pour cela : Vérifier que ce chemin, utilisé dans le conky correspond bien à votre arborescence :
/home/nom d'utilisateur/Accuweather_Conky_Int_Images/
Si c'est bien le cas, alors ouvrez le fichier conkyrc ci dessus avec GEDIT,
Utiliser l'icône 'recherche un texte et le remplace
Dans la case rechercher, rentrer 'gilles' (sans les apostrophes)
Dans la case remplacer par, rentrer votre nom d'utilisateur
Enregistrer,et lancer le conky. Cela doit fonctionner, car c'est le conky que j'utilise actuellement, avec le script déjà fourni dans un post précédent.
La mise en forme laisse un peu de place en bas du conky, car j'affiche également une carte satellite qui s'actualise automatiquement.
Si vous êtes intéressé, je pourrais également voir fournir les fichiers et les lignes de codes à rajouter dans le conkyrc 😛