Hello,
Je n'étais pas revenu depuis un bail, tout simplement parce que ca marchait :-)
Et comme d'autres avant moi, d'après ce que j'ai vu, j'ai eu un bloquage cette fin de semaine. J'ai installé la version 4.4 du Meteo_lua, et tout est reparti dans l'ordre... sauf la pression atmosphérique qui est sur 2 digits.
Voilà mon meteo.cfg
# Créé par jpdipsy (forum.ubuntu-fr.org)
#Répertoire de sauvegarde
repsauv=~/.conky/openbox/weather/meteo
#Répertoire temporaire
TempShell=~/.conky/openbox/weather/tmp
#Copier votre adresse Accuweather ici
web=http://www.accuweather.com/fr/ca/montreal/h2y/current-weather/56186
#Prévision sur n jour (de 1 à 15) moyenne pour la journée
periode=4
#Prévision infos sur la matinée (oui, non)
matinée=non
#Prévision infos sur la Après Midi (oui, non)
am=oui
#Prévision infos sur la Soirée (oui, non)
soiree=non
#Prévision infos sur la Nuit (oui, non)
nuit=oui
#Palier changement de couleur rose des vents (Km/h)
Palier=20
#Temps entre les mises à jour prévision (secondes)
update=900
Et voilà mon conkyrc_meteo_lua
# -- Paramètres Conky Météo -- #
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right
background no
# border width
border_width 1
border_inner_margin 0
border_outer_margin 0
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1
# -- Couleurs -- #
default_color 888880 # 645D5D
color0 D3054D # rouge clair debian
#3B6702 # vert
color1 888880 # gris clair
#645D5D # gris foncé
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# -- Graphics settings -- #
# Draw borders around text
draw_borders no
draw_graph_borders no
# Draw outlines?
draw_outline no
# Draw shades?
draw_shades no
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 15
gap_y 5
# Minimum size of text area
minimum_size 500 150 #Taille minimum (px) ; largeur / hauteur
maximum_width 500 #Largeur maximum (px)
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Subtract file system buffers from used memory?
no_buffers yes
out_to_console no
# Force UTF8? note that UTF8 support required XFT
#override_utf8_locale yes
# -- Window specifications -- #
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type desktop #normal
#own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
show_graph_range no
show_graph_scale no
short_units yes
# Stippled borders?
stippled_borders 0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Update interval in seconds
update_interval 60
# set to yes if you want all text to be in uppercase
uppercase no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
# -- Text settings -- #
# Use Xft?
use_xft yes
xftalpha 0.8 #0.4
xftfont Bitstream Vera Sans Mono:size=8 #Helvetica LT Std:size=10
#Parametres supp pour la meteo
text_buffer_size 1024 #2048
imlib_cache_size 0
# -- Déclaration template -- #
template0 ${image ~/.conky/openbox/weather/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}
lua_load ~/.conky/openbox/weather/script/meteo.lua
lua_startup_hook init ~/.conky/openbox/weather/script/meteo.cfg
######################################################################################
TEXT
${font DejaVu Sans:size=12}
## Lancement du script récupérant les données météo ##################################
${template1 Maj}
## Affichage nom de la ville #########################################################
${font :bold:size=12}${color1}${template1 Ville}
${font :italic:size=10}${color1}Dernier relevé: ${color0}${template1 Heure}:${template1 Minute}
## Affichage température actuelle ####################################################
${goto 30}${font :bold:size=14}${color0}${template1 TempAct}° ${font :size=12}(ress.: ${template1 TempRes}°)
## Affichage conditions météo actuelle et phase lunaire ##############################
${voffset -15}${offset 30}${font}${color0}${template1 CondMeteo}${goto 300}${font}${color0}${template3 ephemerides}
## Affichage différents paramètres ###################################################
${font}${color1}Soleil: ${color0}${template1 HLeverSoleil 1}:${template1 MLeverSoleil 1} ${color1}/ ${color0}${template1 HCoucherSoleil 1}:${template1 MCoucherSoleil 1} (${template1 HDureeJour 1}h ${template1 MDureeJour 1})
${voffset 4}${color1}Humidité: ${color0}${template1 Humidite} ${color1}%${goto 105}${color1}Pluie : ${color0}${template1 Jour_QPluie 1} ${color1}mm
${voffset 4}${font}${color1}Verglas: ${color0}${template1 Jour_EVerglas 1} ${color1}mm ${goto 105}${font}${color1}Neige: ${color0}${template1 Jour_QNeige 1} / ${template1 Nuit_QNeige 1} ${color1}cm
${voffset 4}${font}${color1}Vent: ${color0}${template1 VentDirP} ${template1 VentForce} ${color1}km/h${goto 113}${color1}Pression: ${color0}${template1 Pression} ${color1}mbar
## Températures prévisionnelles sur 4 jours journée/nuit #############################
${voffset -45}${font}${color0}${goto 246}${template1 AM_TempMax 1}°/${template1 AM_TempMin 1}°${goto 300}${template1 AM_TempMax 2}°/${template1 AM_TempMin 2}°${goto 356}${template1 AM_TempMax 3}°/${template1 AM_TempMin 3}°${goto 420}${template1 AM_TempMax 4}°/${template1 AM_TempMin 4}°
## Affichage Date ####################################################################
${voffset -10}${font}${color1}${goto 255}${template1 Jour %a 1}${goto 306}${template1 Jour %a 2}${goto 366}${template1 Jour %a 3}${goto 425}${template1 Jour %a 4}
## Icônes ############################################################################
########## Météo du jour #############################################################
${template2 IconeM ~/.conky/openbox/weather/meteo/icones 152,83 120x70}
########## Lune ######################################################################
${image ~/.conky/openbox/weather/tmp/lune.png -p 340,108 -s 40x40}
########## Météo prévisions sur 4 jours : icones #####################################
${template2 Jour_IconeM ~/.conky/openbox/weather/meteo/icones 236,175 60x35 1} #Jcourant#
${template2 Jour_IconeM ~/.conky/openbox/weather/meteo/icones 288,175 60x35 2} #J1#
${template2 Jour_IconeM ~/.conky/openbox/weather/meteo/icones 348,175 60x35 3} #J2#
${template2 Jour_IconeM ~/.conky/openbox/weather/meteo/icones 405,175 60x35 4} #J3#
#### fonds ? ####
#${template0 base.png 0,10 415x125}
## Offset vertical pour tout caler ? ##
${voffset -175}
Il s'agit d'une modif à faire dans le meteo.lua ? Laquelle, je n'ai pas compris s'il vous plait... :-\ ?
Merci beaucoup pour votre travail à tous... vous ne vous arrêtez jamais ? :-D