Bonjour à tous,
Même si je ne suis plus très actif sur le forum (pour des raisons professionnelles...), je reste toujours en 'veille', et je suis toujours les évolutions des différents conkys.
Une petite question /
Y a t'il eu sur le site d'Accuweather des changements ?
En effet, les données extraites pour la partie 'Alertes' ne sont pas valides.
Je m'en suis rendu compte aujourd'hui, en recevant sur mon smartphone une alerte météo, pour 'Alerte intempéries Orange, pour forte pluie pour les prochaines 48H'
En me rendant sur le site d'Accuweather, je vois effectivement marqué 'Pluie prévue mardi matin à mercredi après-midi'
Or, sur mon conky, dans la zone Alertes, j'ai 'RAS'. Donc les données ne sont pas extraites ou bien mal interprétées... Et aucun message d'erreur.
Suis je le seul à avoir ce problème ?
Sortie du terminal :
phyllinux @ Voyager14 ~
└─ $ ▶ conky -c ~/.conky/conky-perso/Navette/conkyrcmeteo_navette
Conky: forked to background, pid is 17473
phyllinux @ Voyager14 ~
└─ $ ▶
Conky: desktop window (1200003) is subwindow of root window (9e)
Conky: window type - override
Conky: drawing to created window (0x7200001)
Conky: drawing to double buffer
~/.conky/conky-meteo/meteo/meteo.cfg
version = v1.11
web = http://www.accuweather.com/fr/fr/marseille/170960/weather-forecast/170960
Pévision Nb jours = 7
Pévision Matin = oui
Pévision Après Midi = non
Pévision Soirée = non
Pévision Nuit = oui
Prévision sur 8 heures = oui
nbFoisHuit= 1
Délais = 15
Chemin de travail = /tmp
Palier = 16
Chemin de sauvegarde = /home/phyllinux/.conky/conky-meteo/meteo/reptravail
Chemin script = /home/phyllinux/.conky/conky-meteo/meteo_lua_2/scripts
Notification = non
ID = 17473
Condition courante Ok
Prévision 1 Ok
Matin 1 Ok
Nuit 1 Ok
Prévision 2 Ok
Matin 2 Ok
Nuit 2 Ok
Prévision 3 Ok
Matin 3 Ok
Nuit 3 Ok
Prévision 4 Ok
Matin 4 Ok
Nuit 4 Ok
Prévision 5 Ok
Matin 5 Ok
Nuit 5 Ok
Prévision 6 Ok
Matin 6 Ok
Nuit 6 Ok
Prévision 7 Ok
Matin 7 Ok
Nuit 7 Ok
huit heures Ok
oui
Version = 1.31b
lunaison Ok
huitHeures 1 Ok
Jour 1 Ok
Matin 1 Ok
Nuit 1 Ok
Jour 2 Ok
Matin 2 Ok
Nuit 2 Ok
Jour 3 Ok
Matin 3 Ok
Nuit 3 Ok
Jour 4 Ok
Matin 4 Ok
Nuit 4 Ok
Jour 5 Ok
Matin 5 Ok
Nuit 5 Ok
Jour 6 Ok
Matin 6 Ok
Nuit 6 Ok
Jour 7 Ok
Matin 7 Ok
Nuit 7 Ok
CC Ok
mise a jour en : 14.264830350875854
Condition courante Ok
Prévision 1 Ok
Matin 1 Ok
Nuit 1 Ok
Prévision 2 Ok
Matin 2 Ok
Nuit 2 Ok
Prévision 3 Ok
Matin 3 Ok
Nuit 3 Ok
Prévision 4 Ok
Matin 4 Ok
Nuit 4 Ok
Prévision 5 Ok
Matin 5 Ok
Nuit 5 Ok
Prévision 6 Ok
Matin 6 Ok
Nuit 6 Ok
Prévision 7 Ok
Matin 7 Ok
Nuit 7 Ok
huit heures Ok
Conky concerné qui englobe l'affichage des alertes :
background yes
# 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,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer right
use_xft yes
# Update interval in seconds
update_interval 1
# Minimum size of text area
minimum_size 700 330
maximum_width 700
override_utf8_locale yes
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # 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_inner_margin 4
# border width
border_width 10
# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb
# Text alignment, other possible values are commented
#alignment top_middle
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
#alignment middle_middle
# Gap between borders of screen and text
gap_x -10
gap_y 17
#Rafraichissement images
imlib_cache_size 0
# Couleurs
default_color FFFFFF #blanc
default_shade_color 333333
default_outline_color black
default_color 56b08d
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 C6FF8E #a light green #FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
# -- Declaration template -- #
template0 ${lua Meteo_\1 \2 \3 \4 \5 \6} # -- gestion météo --#
template1 ${lua_parse Images_\1 \2 \3 60 \4 \5 \6 \7 \8 \9} # -- Appelle image -- \2=position \3=taille \4=jour (pour les prévisions) #
template2 ${lua Meteo_\1 \2 \3 \4 \5 \6 \7} # -- 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 ${font}${color}\1 \2 \3 :\ \ # -- titre conditions actuelles, pos, coul
template5 ${image ~/.conky/conky-perso/Navette/images/\1 -p \2 -s \3} # -- images fond -- #
# scripts lua à charger ###############################
lua_load ~/.conky/conky-meteo/meteo_lua_2/scripts/meteo2.lua
lua_startup_hook init ~/.conky/conky-meteo/meteo/meteo.cfg
#######################################################
TEXT
#### Lancement des scripts récupérant les données météo et les images instruments ####
${template0 Maj}
#${execi 900 /home/phyllinux/Accuweather/start-recmeteo.sh conky.cfg rafraichir}
##Affichage Instruments##
${template2 IconeM ~/.conky/conky-meteo/meteo_lua_2/icones/ 23 10 68 41}
#${template2 Nuit_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones/ 185 60 48 29 1}
${image /tmp/marseille-phyllinux/monbaro.png -p 156,0 80x80 -n}
${image /tmp/marseille-phyllinux/CC_thermrou.png -p 155,111 80x80 -n}
${image /tmp/marseille-phyllinux/Rose-CC.png -p 328,47 80x80 -n}
#Affichage pseudo écran#
${template5 Ecran.png 120,198 325x16}
${template5 Attention.png 120,198 15x15}
${template5 Attention.png 430,198 15x15}
#### Infos ####
${voffset -55}${font Ubuntu-B:size=9}${color black}${goto 30}${template0 Ville}${voffset -5}${color yellow}${goto 30}${template0 Ville}
${voffset -5}${font Ubuntu-B:size=7}${color3}${goto 32}${template0 latitude}°N - ${template0 longitude}°E
${color4}${goto 22}${template0 CondMeteo1}
${voffset -5}${goto 22}${template0 CondMeteo2}
${voffset -2}${font Ubuntu-B:size=7}${goto 2}${color6}Couverture Nuages : ${goto 90}${color}${template0 CouvNuage}%
${voffset -2}${goto 2}${color6}Probabilité Pluie : ${goto 90}${color}${template0 Jour_ProbPrec 1}%
${voffset -2}${goto 2}${color6}Quantité de Pluie : ${goto 90}${color}${template0 Jour_NivPrec 1}mm
${voffset -2}${goto 2}${color6}Visibilité : ${goto 90}${color}${template0 Visibilite}km
${voffset -2}${goto 2}${color6}Point de Rosée : ${goto 90}${color}${template0 Rose}°
${voffset -62}${goto 160}${font Ubuntu-B:size=7}${color3}MAJ : ${template0 Jour %a_%d_%b 1} ${template0 Heure}h${template0 Minute}
${voffset -43}${goto 326}${font Ubuntu-B:size=8}${color yellow}${template0 VentForce}km/h${goto 409}${color6}${template0 VentDirP}
${voffset 50}${goto 155}${font Ubuntu-B:size=9}${if_match ${template0 TempAct}<6}${color red}${blink ${template0 TempAct}°}${else}${color yellow}${template0 TempAct}°${endif}${goto 238}${color6}R ${color}${template0 TempRes}°
${voffset -8}${goto 328}${font Ubuntu-B:size=7}${color yellow}Rafales${goto 405}${color6}${template0 Jour_VentRafales 1}km/h
${voffset 46}${goto 157}${font Ubuntu-B:size=7}${color4}Mini${goto 245}${color9}Maxi
${goto 157}${color4}${template0 Nuit_Temp}°${goto 244}${color9}${template0 Jour_Temp}°
## Affichage Alerte ##
${voffset 1}${goto 150}${font Ubuntu-B:size=10:style=bold}${color red}Alerte Météo : ${scroll 30 5 ${template2 Alerte}}
##Affichage Info déroulante##
${voffset -190}${goto 19}${font Ubuntu-B:size=7:style=bold}${color7}${scroll 18 5 ${template2 CondMeteo} - ${color1}Indice UV : ${template2 Uv}/11 - ${color3}Tx Humidité : ${template2 Humidite}% }