Salutation matinale
Dit seelord Ta Xenia elle aurait pas conky dans sa version 1.10 ???
Si c'est cela c'est un peu le "caca" avec les scripts lua .
Conky en version 1.10 à vraiment changer j'ai essayer d'en changer un sur mint 18 mais certains lua ne sont plus pris en compte (peu-être quelques modifications à faire aussi dans les lua ,qui sait.)
je te mets une copie du mien en exemple pour que tu puisse modifier les tiens.
conky.config = {
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'skip_taskbar,skip_pager,undecorated,below',
own_window_colour = '#000000',
minimum_width = 650, minimum_height = 450,
maximum_width = 655,
gap_x = 00,--# l|r
gap_y = 200,--# u|d
alignment = 'top_left',
use_xft = true,
font = 'Ubuntu:size=8',
xftalpha = 1.0,
override_utf8_locale = true,
draw_shades = false,
default_shade_color = '#000000',
draw_outline = false,
default_outline_color = '#000000',
default_color = '#ffffff',--# MintCream
color1 = '#778899',--# LightSlateGray
color2 = '#FFA07A',--# LightSalmon
color3 = '#87CEFA',--# LightSkyBlue
color4 = '#48D1CC',--# MediumTurquoise
color5 = '#FFDEAD',--# NavajoWhite
color6 = '#00BFFF',--# DeepSkyBlue
color7 = '#B0E0E6',--# PowderBlue
color8 = '#FFD700',--# Gold
color9 = '#CD5C5C',--# IndianRed
draw_borders = false,
stippled_borders = 5,
border_inner_margin = 5,
border_outer_margin = 0,
border_width = 2,
draw_graph_borders = false,
background = false,
use_spacer = 'none',
no_buffers = true,
double_buffer = true,
update_interval = 1,
lua_load = '~/.conky/lua/image.lua',
--lua_load = '~/2b_Wunderground_API/scripts/barow.lua,
--lua_draw_hook_pre = 'main',
-- lua_load = '~/2b_Wunderground_API/scripts/textwritingw.lua',
--lua_draw_hook_post = 'draw_text'
};
conky.text = [[
#### Lancement du script récupérant les données météo ####
${execi 1800 bash $HOME/2b_Wunderground_API/2b}
##### Heure #####
${voffset -35}${font GE Inspira:size=55}${time %H}:${time %M}${font GE Inspira:size=20}${color 808080}${goto 180}${time %S}$color$font
##### Heure de mise à jour #####
${voffset 07}${goto 25}Dernière mise à jour : ${execi 600 sed -n '53p' $HOME/2b_Wunderground_API/Conditions-fr | cut -c18-22}
#### Date ####
${voffset -80}${font GE Inspira:size=14}${alignc -50}${time %A, %d %B %Y}$font
${goto 320}Saint(e): ${execi 1000 wget -O - -q http://fetedujour.fr/ --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep h2 | head -1 | cut -d">" -f2 | cut -d"<" -f1 | cut -d":" -f2 }
##### Affichage infos vent ######
${voffset 6}${goto 310}${font GE Inspira:size=12}Vent : ${execi 600 sed -n '73p' $HOME/2b_Wunderground_API/Conditions-fr}
${goto 310}Vit. : ${execi 600 sed -n '81p' $HOME/2b_Wunderground_API/Conditions} km/h
${goto 310}Pluie : ${execi 600 sed -n '57p' $HOME/2b_Wunderground_API/Simple_Forecast} mm
##### ville #####
${voffset -10}${goto 15}${font GE Inspira:size=14:}Sarreguemines : ${font}${execi 600 sed -n '63p' $HOME/2b_Wunderground_API/Conditions-fr}
#### Affichage rose des vents ####
${goto 555}${voffset -100}${font GE Inspira:size=11}N $font
${goto 522}${voffset 10}${font GE Inspira:size=6}NNO ${goto 583}NNE$font
${goto 493}${voffset -6}${font GE Inspira:size=9}NO ${goto 611}NE$font
${goto 486}${voffset 10}${font GE Inspira:size=6}ONO ${goto 618}ENE$font
${goto 468}${voffset 8}${font GE Inspira:size=11}O ${goto 641}E$font
${goto 486}${voffset 9}${font GE Inspira:size=6}OSO ${goto 618}ESE
${goto 493}${voffset 16}${font GE Inspira:size=9}SO ${goto 611}SE$font
${goto 522}${voffset -4}${font GE Inspira:size=6}SSO ${goto 583}SSE
${goto 555}${voffset 4}${font GE Inspira:size=11}S $font
#### Affichage trois prochaines heures et trois prochains jours ####
${voffset -65}${goto 25}${execi 600 sed -n '4p' $HOME/2b_Wunderground_API/Hourly}h\
${goto 105}${execi 600 sed -n '121p' $HOME/2b_Wunderground_API/Hourly}h\
${goto 180}${execi 600 sed -n '236p' $HOME/2b_Wunderground_API/Hourly}h\
${goto 245}${execi 600 echo `date --date="1 day" | awk '{print $1" "$2} {}'`}\
${goto 310}${execi 600 echo `date --date="2 day" | awk '{print $1" "$2} {}'`}\
${alignc -90}${execi 600 echo `date --date="3 day" | awk '{print $1" "$2} {}'`}
##### Affichage temperatures #####
${voffset 38}T${goto 25}${execi 600 sed -n '172p' $HOME/2b_Wunderground_API/Hourly}°\
${goto 105}${execi 600 sed -n '289p' $HOME/2b_Wunderground_API/Hourly}°\
${goto 175}${execi 600 sed -n '406p' $HOME/2b_Wunderground_API/Hourly}°\
${alignc 40}${color9}${execi 600 sed -n '145p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '150p' $HOME/2b_Wunderground_API/Simple_Forecast}°\
${alignc -20}${color9}${execi 600 sed -n '251p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '256p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${alignc -90}${color9}${execi 600 sed -n '357p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '362p' $HOME/2b_Wunderground_API/Simple_Forecast} $color
#### Affichage vitesse du vent ####
V${goto 25}${execi 600 sed -n '74p' $HOME/2b_Wunderground_API/Hourly}km/h\
${goto 105}${execi 600 sed -n '191p' $HOME/2b_Wunderground_API/Hourly}km/h\
${goto 175}${execi 600 sed -n '308p' $HOME/2b_Wunderground_API/Hourly}km/h\
${goto 245}${execi 90 sed -n '96p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 320}${execi 90 sed -n '202p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 400}${execi 90 sed -n '308p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h
#### Affichage direction vent ####
D${goto 25}${execi 600 sed -n '77p' $HOME/2b_Wunderground_API/Hourly}\
${goto 105}${execi 600 sed -n '194p' $HOME/2b_Wunderground_API/Hourly}\
${goto 175}${execi 600 sed -n '311p' $HOME/2b_Wunderground_API/Hourly}\
${goto 245}${execi 90 sed -n '195p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 320}${execi 90 sed -n '301p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 400}${execi 90 sed -n '407p' $HOME/2b_Wunderground_API/Simple_Forecast}
#### Affichage pluie ####
P${goto 25}${execi 600 sed -n '105p' $HOME/2b_Wunderground_API/Hourly} mm\
${goto 105}${execi 600 sed -n '222p' $HOME/2b_Wunderground_API/Hourly} mm\
${goto 175}${execi 600 sed -n '339p' $HOME/2b_Wunderground_API/Hourly} mm\
${goto 245}${execi 90 sed -n '57p' $HOME/2b_Wunderground_API/Simple_Forecast} mm\
${goto 320}${execi 90 sed -n '163p' $HOME/2b_Wunderground_API/Simple_Forecast} mm\
${goto 400}${execi 90 sed -n '269p' $HOME/2b_Wunderground_API/Simple_Forecast} mm
#### Divers ####
${voffset 10}${goto 60}Aujourd'hui le jour se lève à ${execi 600 sed -n '16p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '18p' $HOME/2b_Wunderground_API/Moon_Sun}\
et la nuit tombe à ${execi 600 sed -n '21p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '23p' $HOME/2b_Wunderground_API/Moon_Sun}
${goto 60}En ce moment l'indice d'UV est de : ${execi 600 sed -n '121p' $HOME/2b_Wunderground_API/Conditions}\
et la visibilitée de ${execi 600 sed -n '117p' $HOME/2b_Wunderground_API/Conditions} kms
#### lunaison ####
${voffset 10}${goto 35}Phase : ${execi 600 sed -n '6p' $HOME/2b_Wunderground_API/Moon_Sun}
${goto 35}Visibilitée : ${execi 600 sed -n '2p' $HOME/2b_Wunderground_API/Moon_Sun} %
${goto 35}La lune se léve à : ${execi 600 sed -n '26p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '28p' $HOME/2b_Wunderground_API/Moon_Sun} et se couche à : ${execi 600 sed -n '31p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '33p' $HOME/2b_Wunderground_API/Moon_Sun}
${goto 35}Elle à ${execi 600 sed -n '4p' $HOME/2b_Wunderground_API/Moon_Sun} jour (s)
#### barometre ####
${voffset -115}${goto 505}Pression :${execi 600 sed -n '85p' $HOME/2b_Wunderground_API/Conditions} mb
${voffset 10}${goto 480}Temp ${goto 610}Res
${goto 480}${font GE Inspira:size=18}${execi 600 sed -n '67p' $HOME/2b_Wunderground_API/Conditions}${goto 610}${execi 600 sed -n '113p' $HOME/2b_Wunderground_API/Conditions} ° $font
#### système ####
${voffset 60}${goto 80}CPU ${goto 520}INTERNET
${goto 30}${cpu cpu}% ${freq_g} GHz ${exec expr `cat /sys/class/hwmon/hwmon2/temp1_input` / 1000}°C ${goto 490}Entrant : ${downspeedf wlp2s0}k/s ${totaldown wlp2s0} ${alignc -500}
${goto 25}RAM${goto 70}DISQUE${goto 130}CARTE ${goto 490}Sortant : ${upspeedf wlp2s0}k/s ${totalup wlp2s0}
${goto 25}$memperc% ${goto 75}${execi 120 hddtemp -n /dev/sda} °C ${goto 135}${hwmon 0 temp 1} °C ${goto 490}Signal : ${wireless_link_qual wlp2s0} %
#### alerte ####
${voffset 10}${alignc}${execi 600 sed -n '1p' $HOME/2b_Wunderground_API/Alertes| fold -s -w100 }
${alignc}${execi 600 sed -n '2p' $HOME/2b_Wunderground_API/Alertes| fold -s -w100 }
#### icone condition actuelle ####
${lua fDrawImage $HOME/2b_Wunderground_API/Now.png 205 10 115 70 0}\
#### icone direction vent ####
${lua fDrawImage $HOME/2b_Wunderground_API/Wind1.png 460 0 200 200 0}\
#### icones 3 prochaines heures ####
${lua fDrawImage $HOME/2b_Wunderground_API/h2.png 0 132 75 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/h3.png 75 132 75 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/h4.png 150 132 75 45 0}\
#### icones 3 prochains jours ####
${lua fDrawImage $HOME/2b_Wunderground_API/d2.png 225 132 75 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/d3.png 300 132 75 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/d4.png 380 132 75 45 0}
#### icone lune ####
${lua fDrawImage $HOME/2b_Wunderground_API/Moon_phase.png 315 280 60 60 0}
${voffset -50}
]];
Comme tu peut le voir les scripts lua qui ne fonctionne pas sont commentés avec --
Voila
@+