A tous bien le bonjour,
Excusez mon intrusion, mais cela fait quelques temps que je suis ce forum avec le plus grand intéret.
Un merveille et que dire des animateurs... dans la guerre des étoiles il n'y a qu'un seul maître YODA, ici ils se bousculent 😉. Bravo les artistes.
J'ai appris beaucoup de choses en vous lisant.
A mon tour j'ai aussi adapté un modeste petit conky, que je veux partager avec vous.
background yes
use_xft yes
xftfont MaiandraGD:size=24
xftalpha 0.9
update_interval 2.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
### alignment can be:
# top_left, top_right, top_middle
# bottom_left, bottom_right, bottom_middle
# middle_left, middle_middle, middle_right ######### or none
# can be abreviated as: tl, tr, tm, bl, br, bm, ml, mm, mr
alignment bl
gap_x 50 # left-right
gap_y 40 # up-down
minimum_size 280 20 # width, height
maximum_width 280 # width, usually a good idea to equal minimum width
draw_shades no
draw_outline no
draw_borders no
border_width 0
default_color white
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
# -- Déclaration template -- #
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 ~/conkyrc/scripts/meteo2.lua
lua_startup_hook init ~/conkyrc/scripts/meteo.cfg
TEXT
#### Lancement du script récupérant les données météo ####
${template1 Maj}
#### Premier cadre ############################################################################################################
${voffset -48}${alignc}${color ffe595}${template1 Ville}
#
#### Lever et Coucher du Soleil ####
${voffset -14}${goto 90}${font Ubuntu:style=condensed:size=8}${color yellow}${template1 HLeverSoleil}h${template1 MLeverSoleil}${goto 180}${template1 HCoucherSoleil}h${template1 MCoucherSoleil}
#
#### température actuelle #####
${goto 20}${font Ubuntu :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 #####
${alignc}${voffset -7}${font Ubuntu :style=Bold:size=10}${color ffe595}${alignc}${template1 CondMeteo}
#
#### Affichage infos vent ######
${voffset -50}${goto 218}${color ffe595}${font Helvetica LT Std:style=Bold:size=10}${template1 VentDirP}
${color ffe595}${font Helvetica LT Std:style=Bold:size=10}${goto 218}${template1 VentForce} ${font Helvetica LT Std:size=8}km/h
#
### Second cadre ################################################################################################################
#
#### Affichage temperature #####
${voffset 8}${color yellow}${goto 42}${template1 Jour_Temp 1}°${goto 232}${template1 Nuit_Temp 1}°
#
#### Affichage conditions météo #####
${voffset 50}${font Ubuntu:style=condensed:size=8}${color ffe595}
${goto 1} ${template1 AM_CondMeteo1 1}${goto 200} ${template1 Noct_CondMeteo1 1}
${goto 1} ${template1 AM_CondMeteo2 1}${goto 200} ${template1 Noct_CondMeteo2 1}
#
#### Affichage lunaison #####
${voffset -70}${goto 120}${font Ubuntu:style=Bold:size=8}${color black}${template3 ephemerides1}
${voffset -3}${goto 115}${template3 ephemerides2}
#
### troisieme cadre ###########################################################################################################
#
##### Affichage temperature #####
${voffset 105}${goto 30}${font Ubuntu :size=10:style=bold}${color red}${template1 Jour_Temp 2}°${color white}/${color lightblue}${template1 Nuit_Temp 2}°${goto 105}${color red}${template1 Jour_Temp 3}°${color white}/${color lightblue}${template1 Nuit_Temp 3}°${goto 175}${color red}${template1 Jour_Temp 4}°${color white}/${color lightblue}${template1 Nuit_Temp 4}°${goto 245}${color red}${template1 Jour_Temp 5}°${color white}/${color lightblue}${template1 Nuit_Temp 5}°
#
#### Affichage vitesse du vent #####
${voffset 5}${font Ubuntu :size=9}${color ffe595}${goto 30}${template1 Jour_VentForce 2}${font Ubuntu :size=6:style=bold} km/h${goto 100}${voffset -4}${font Ubuntu :size=9:style=bold}${template1 Jour_VentForce 3}${font Ubuntu :size=6:style=bold} km/h${goto 170}${voffset -4}${font Ubuntu :size=9:style=bold}${template1 Jour_VentForce 4}${font Ubuntu :size=6:style=bold} km/h${goto 240}${voffset -4}${font Ubuntu :size=9:style=bold}${template1 Jour_VentForce 5}${font Ubuntu :size=6:style=bold} km/h
#
#### Affichage Date #####
${voffset 8}${font Ubuntu :size=10:style=bold}${color yellow}${goto 8}${template1 Jour %a_%d 2}${goto 85}${template1 Jour %a_%d 3}${goto 155}${template1 Jour %a_%d 4}${goto 225}${template1 Jour %a_%d 5}
#
### quatrième cadre ###########################################################################################################
#
##### Heure mise à jour #####
${voffset 5}${color ffe595}${font Ubuntu :size=8:style=bold}${alignc}Dernière mise à jour : ${template1 Heure}h${template1 Minute}
#
### icônes premier cadre #######################################################################################################
#
${template2 IconeM ~/conkyrc/meteo/icones 85,45 132x79}
${template2 IconeV ~/conkyrc/meteo/icones/vent 230,30 44x44}
#
### icônes Second cadre #######################################################################################################
#
${template2 AM_IconeM ~/conkyrc/meteo/icones -15,130 132x79 1}
${template2 Noct_IconeM ~/conkyrc/meteo/icones 170,130 132x79 1}
${image ~/conkyrc/lune.png -p 111,140 -s 63x63 -f 60}
#
### icônes troisième cadre ###################################################################################################
#
${template2 AM_IconeM ~/conkyrc/meteo/icones 0,230 86x52 2}
${template2 AM_IconeM ~/conkyrc/meteo/icones 70,230 86x52 3}
${template2 AM_IconeM ~/conkyrc/meteo/icones 140,230 86x52 4}
${template2 AM_IconeM ~/conkyrc/meteo/icones 210,230 86x52 5}
${template2 Jour_IconeR ~/conkyrc/meteo/icones/vent 0,285 30x30 2}
${template2 Jour_IconeR ~/conkyrc/meteo/icones/vent 70,285 30x30 3}
${template2 Jour_IconeR ~/conkyrc/meteo/icones/vent 140,285 30x30 4}
${template2 Jour_IconeR ~/conkyrc/meteo/icones/vent 210,285 30x30 5}
${execi 30 sh ~/conkyrc/imagesat.sh}
${image ~/conkyrc/image_sat/image.jpg -p 0,363 -f 30}
Il me reste encore beaucoup d'améliorations, mais acceptable est le résultat Maitre.