#101 Le 31/03/2013, à 18:29
- Phyllinux
Re : [Conky] Alternative à weather.com (3)
Tu peut lancer en terminal, pour voir le message d'erreur.
Voici le message d'erreur :
phyllinux @ voyager-V5-171 ~
└─ $ ▶ conky -c ~/.conky/conky-meteo/meteo/conkyrcmeteo4JE
Conky: desktop window (1200003) is subwindow of root window (d8)
Conky: window type - override
Conky: drawing to created window (0x6c00001)
Conky: drawing to double buffer
version = v1.06
web = http://www.accuweather.com/fr/fr/marseille/170960/weather-forecast/170960
Pévision Nb jours = 5
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 = oui
ID = 20188
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
huit heures Ok
Version = 1.21
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
CC Ok
mise a jour en : 45.2981960773468
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
huit heures Ok
huitHeures 1 Ok
CC Ok
mise a jour en : 2.353219985961914
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
huit heures Ok
huitHeures 1 Ok
CC Ok
Traceback (most recent call last):
File "/home/phyllinux/.conky/conky-meteo/meteo_lua_2/scripts/recmeteo.py", line 352, in <module>
demonise(ent, nb1, nb2, huitHeures, nbJour, interval, nbFoisHuit, Id)
File "/home/phyllinux/.conky/conky-meteo/meteo_lua_2/scripts/recmeteo.py", line 324, in demonise
mess.show()
File "/usr/lib/python3/dist-packages/notify2.py", line 188, in show
self.timeout, # expire_timeout
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.197 was not provided by any .service files
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
huit heures Ok
The ship is sinking normally...
Hors ligne
#102 Le 31/03/2013, à 20:57
- Didier-T
Re : [Conky] Alternative à weather.com (3)
la ce qui ta planté c'est la notification.
faut que je pense a virer ce truc
aller un second essais
Hors ligne
#103 Le 31/03/2013, à 21:17
- Didier-T
Re : [Conky] Alternative à weather.com (3)
bjr,
Même problème pour moi qui suis sous Ubuntu 13.04. Je pensais que cela venait de cette version.
donne ton retour terminal, sa me permettra de voir ce qui cloche, d'autant que la dernière version fonctionne bien dans ma machine virtuel sous 13.04
Hors ligne
#104 Le 31/03/2013, à 21:50
- Ehcor8
Re : [Conky] Alternative à weather.com (3)
Je ne mets que la fin pour ne pas faire un message trop long. Et de plus j'ai un autre souci.
Jour 6 Ok
Nuit 6 Ok
CC Ok
convert.im6: pas de délégué pour décoder ce format d'image `/tmp/magick-fl4WNpR7' @ error/constitute.c/ReadImage/544.
convert.im6: pas d'images définies `/home/rg/Accuweather/sauvegardes/Charleville-Mezieres/fond-base.png' @ error/convert.c/ConvertImageCommand/3044.
/tmp/charleville-mezieres-rg/Barometre_hr.png
/tmp/charleville-mezieres-rg/Rose-CC.png
Version: ImageMagick 6.7.7-10 2013-02-25 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Usage: convert.im6 [options ...] file [ [options ...] file ...] [options ...] file
Image Settings:
-adjoin join images into a single multi-image file
et....
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps). Specify 'file' as
'-' for standard input or output.
/home/rg/Accuweather/scripts/macomposition.sh: ligne 315: g : commande introuvable
mise a jour en : 24.44951844215393
Traceback (most recent call last):
File "/home/rg/Accuweather/scripts/recmeteo.py", line 360, in <module>
demonise(ent, nb1, nb2, huitHeures, nbJour, interval, nbFoisHuit, Id)
File "/home/rg/Accuweather/scripts/recmeteo.py", line 300, in demonise
traitement(ent+nb1+'/hourly-weather-forecast/'+nb2+'?hour='+str(h), repsauv+"/huitHeures"+str(x), repsauv)
File "/home/rg/Accuweather/scripts/recmeteo.py", line 90, in traitement
soup = BeautifulSoup(currentCond)
File "/usr/lib/python3/dist-packages/bs4/__init__.py", line 172, in __init__
self._feed()
File "/usr/lib/python3/dist-packages/bs4/__init__.py", line 185, in _feed
self.builder.feed(self.markup)
File "/usr/lib/python3/dist-packages/bs4/builder/_lxml.py", line 195, in feed
self.parser.close()
File "parser.pxi", line 1187, in lxml.etree._FeedParser.close (src/lxml/lxml.etree.c:88786)
File "parsertarget.pxi", line 136, in lxml.etree._TargetParserContext._handleParseResult (src/lxml/lxml.etree.c:98001)
File "parsertarget.pxi", line 130, in lxml.etree._TargetParserContext._handleParseResult (src/lxml/lxml.etree.c:97909)
File "lxml.etree.pyx", line 294, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:9071)
TypeError: function takes exactly 5 arguments (1 given)
Je ne sais pas comment on met la copie u terminal.
Je peux faire un package avec un lien dropbox ?
Hors ligne
#105 Le 01/04/2013, à 07:25
- Didier-T
Re : [Conky] Alternative à weather.com (3)
Une petite explication pour les balises
Texte en gras
Texte en italique
Texte souligné
Texte barré
Aligner à gauche
Aligner au droite
Centrer
Justifier
Sélectionner la zone de texte a mettre en forme puis cliquer sur la balise.
Couleur du texte
Sélection du texte, puis clique sur la balise, puis sélection de la couleur et enfin re-clique sur la balise (pour validé)
Image
Lien
Vidéo
lien vers une documentation
Copier le lien dans le presse papier, cliquer sur la balise puis coller le lien quand on demande Veuillez entrer l'URL ...
Texte préformaté
Bloc de citation
Copier tout le texte concerné dans le presse papier, cliquer sur la balise, puis coller le contenu du presse papier.
Élément de liste
Type de liste
Dans un premier temps taper son texte, sélectionner toute la liste, puis choisir le type de liste, ensuite on sélectionne la liste élément par élément et on clique sur la balise Élément de liste
barre émoticônes
pour le retour de terminal utilise la balise Texte préformaté (sinon c'est illisible), merci.
Hors ligne
#106 Le 01/04/2013, à 11:10
- Ehcor8
Re : [Conky] Alternative à weather.com (3)
rg@rg-HP-Pavilion-dv7-Notebook-PC:~$ sh -c "~/Accuweather/start-recmeteo.sh"
rg@rg-HP-Pavilion-dv7-Notebook-PC:~$ Version = 1.22
huitHeures 1 Ok
Jour 1 Ok
Nuit 1 Ok
Jour 2 Ok
Nuit 2 Ok
Jour 3 Ok
Nuit 3 Ok
Jour 4 Ok
Nuit 4 Ok
Jour 5 Ok
Nuit 5 Ok
Jour 6 Ok
Nuit 6 Ok
CC Ok
convert.im6: pas de délégué pour décoder ce format d'image `/tmp/magick-DFnMFA6a' @ error/constitute.c/ReadImage/544.
convert.im6: pas d'images définies `/home/rg/Accuweather/sauvegardes/Charleville-Mezieres/fond-base.png' @ error/convert.c/ConvertImageCommand/3044.
/tmp/charleville-mezieres-rg/Barometre_hr.png
/tmp/charleville-mezieres-rg/Rose-CC.png
Version: ImageMagick 6.7.7-10 2013-02-25 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Usage: convert.im6 [options ...] file [ [options ...] file ...] [options ...] file
Image Settings:
-adjoin join images into a single multi-image file
-affine matrix affine transform matrix
-alpha option activate, deactivate, reset, or set the alpha channel
-antialias remove pixel-aliasing
-authenticate password
decipher image with this password
-attenuate value lessen (or intensify) when adding noise to an image
-background color background color
-bias value add bias when convolving an image
-black-point-compensation
use black point compensation
-blue-primary point chromaticity blue primary point
-bordercolor color border color
-caption string assign a caption to an image
-channel type apply option to select image channels
-colors value preferred number of colors in the image
-colorspace type alternate image colorspace
-comment string annotate image with comment
-compose operator set image composite operator
-compress type type of pixel compression when writing the image
-define format:option
define one or more image format options
-delay value display the next image after pausing
-density geometry horizontal and vertical density of the image
-depth value image depth
-direction type render text right-to-left or left-to-right
-display server get image or font from this X server
-dispose method layer disposal method
-dither method apply error diffusion to image
-encoding type text encoding type
-endian type endianness (MSB or LSB) of the image
-family name render text with this font family
-fill color color to use when filling a graphic primitive
-filter type use this filter when resizing an image
-font name render text with this font
-format "string" output formatted image characteristics
-fuzz distance colors within this distance are considered equal
-gravity type horizontal and vertical text placement
-green-primary point chromaticity green primary point
-intent type type of rendering intent when managing the image color
-interlace type type of image interlacing scheme
-interline-spacing value
set the space between two text lines
-interpolate method pixel color interpolation method
-interword-spacing value
set the space between two words
-kerning value set the space between two letters
-label string assign a label to an image
-limit type value pixel cache resource limit
-loop iterations add Netscape loop extension to your GIF animation
-mask filename associate a mask with the image
-mattecolor color frame color
-monitor monitor progress
-orient type image orientation
-page geometry size and location of an image canvas (setting)
-ping efficiently determine image attributes
-pointsize value font point size
-precision value maximum number of significant digits to print
-preview type image preview type
-quality value JPEG/MIFF/PNG compression level
-quiet suppress all warning messages
-red-primary point chromaticity red primary point
-regard-warnings pay attention to warning messages
-remap filename transform image colors to match this set of colors
-respect-parentheses settings remain in effect until parenthesis boundary
-sampling-factor geometry
horizontal and vertical sampling factor
-scene value image scene number
-seed value seed a new sequence of pseudo-random numbers
-size geometry width and height of image
-stretch type render text with this font stretch
-stroke color graphic primitive stroke color
-strokewidth value graphic primitive stroke width
-style type render text with this font style
-synchronize synchronize image to storage device
-taint declare the image as modified
-texture filename name of texture to tile onto the image background
-tile-offset geometry
tile offset
-treedepth value color tree depth
-transparent-color color
transparent color
-undercolor color annotation bounding box color
-units type the units of image resolution
-verbose print detailed information about the image
-view FlashPix viewing transforms
-virtual-pixel method
virtual pixel access method
-weight type render text with this font weight
-white-point point chromaticity white point
Image Operators:
-adaptive-blur geometry
adaptively blur pixels; decrease effect near edges
-adaptive-resize geometry
adaptively resize image using 'mesh' interpolation
-adaptive-sharpen geometry
adaptively sharpen pixels; increase effect near edges
-alpha option on, activate, off, deactivate, set, opaque, copy
transparent, extract, background, or shape
-annotate geometry text
annotate the image with text
-auto-gamma automagically adjust gamma level of image
-auto-level automagically adjust color levels of image
-auto-orient automagically orient (rotate) image
-bench iterations measure performance
-black-threshold value
force all pixels below the threshold into black
-blue-shift factor simulate a scene at nighttime in the moonlight
-blur geometry reduce image noise and reduce detail levels
-border geometry surround image with a border of color
-bordercolor color border color
-brightness-contrast geometry
improve brightness / contrast of the image
-cdl filename color correct with a color decision list
-charcoal radius simulate a charcoal drawing
-chop geometry remove pixels from the image interior
-clamp restrict pixel range from 0 to the quantum depth
-clip clip along the first path from the 8BIM profile
-clip-mask filename associate a clip mask with the image
-clip-path id clip along a named path from the 8BIM profile
-colorize value colorize the image with the fill color
-color-matrix matrix apply color correction to the image
-contrast enhance or reduce the image contrast
-contrast-stretch geometry
improve contrast by `stretching' the intensity range
-convolve coefficients
apply a convolution kernel to the image
-cycle amount cycle the image colormap
-decipher filename convert cipher pixels to plain pixels
-deskew threshold straighten an image
-despeckle reduce the speckles within an image
-distort method args
distort images according to given method ad args
-draw string annotate the image with a graphic primitive
-edge radius apply a filter to detect edges in the image
-encipher filename convert plain pixels to cipher pixels
-emboss radius emboss an image
-enhance apply a digital filter to enhance a noisy image
-equalize perform histogram equalization to an image
-evaluate operator value
evaluate an arithmetic, relational, or logical expression
-extent geometry set the image size
-extract geometry extract area from image
-features distance analyze image features (e.g. contrast, correlation)
-fft implements the discrete Fourier transform (DFT)
-flip flip image vertically
-floodfill geometry color
floodfill the image with color
-flop flop image horizontally
-frame geometry surround image with an ornamental border
-function name parameters
apply function over image values
-gamma value level of gamma correction
-gaussian-blur geometry
reduce image noise and reduce detail levels
-geometry geometry preferred size or location of the image
-identify identify the format and characteristics of the image
-ift implements the inverse discrete Fourier transform (DFT)
-implode amount implode image pixels about the center
-interpolative-resize geometry
resize image using 'point sampled' interpolation
-lat geometry local adaptive thresholding
-layers method optimize, merge, or compare image layers
-level value adjust the level of image contrast
-level-colors color,color
level image with the given colors
-linear-stretch geometry
improve contrast by `stretching with saturation'
-liquid-rescale geometry
rescale image with seam-carving
-median geometry apply a median filter to the image
-mode geometry make each pixel the 'predominant color' of the neighborhood
-modulate value vary the brightness, saturation, and hue
-monochrome transform image to black and white
-morphology method kernel
apply a morphology method to the image
-motion-blur geometry
simulate motion blur
-negate replace every pixel with its complementary color
-noise geometry add or reduce noise in an image
-normalize transform image to span the full range of colors
-opaque color change this color to the fill color
-ordered-dither NxN
add a noise pattern to the image with specific
amplitudes
-paint radius simulate an oil painting
-polaroid angle simulate a Polaroid picture
-posterize levels reduce the image to a limited number of color levels
-profile filename add, delete, or apply an image profile
-quantize colorspace reduce colors in this colorspace
-radial-blur angle radial blur the image
-raise value lighten/darken image edges to create a 3-D effect
-random-threshold low,high
random threshold the image
-region geometry apply options to a portion of the image
-render render vector graphics
-repage geometry size and location of an image canvas
-resample geometry change the resolution of an image
-resize geometry resize the image
-roll geometry roll an image vertically or horizontally
-rotate degrees apply Paeth rotation to the image
-sample geometry scale image with pixel sampling
-scale geometry scale the image
-segment values segment an image
-selective-blur geometry
selectively blur pixels within a contrast threshold
-sepia-tone threshold
simulate a sepia-toned photo
-set property value set an image property
-shade degrees shade the image using a distant light source
-shadow geometry simulate an image shadow
-sharpen geometry sharpen the image
-shave geometry shave pixels from the image edges
-shear geometry slide one edge of the image along the X or Y axis
-sigmoidal-contrast geometry
increase the contrast without saturating highlights or shadows
-sketch geometry simulate a pencil sketch
-solarize threshold negate all pixels above the threshold level
-sparse-color method args
fill in a image based on a few color points
-splice geometry splice the background color into the image
-spread radius displace image pixels by a random amount
-statistic type geometry
replace each pixel with corresponding statistic from the neighborhood
-strip strip image of all profiles and comments
-swirl degrees swirl image pixels about the center
-threshold value threshold the image
-thumbnail geometry create a thumbnail of the image
-tile filename tile image when filling a graphic primitive
-tint value tint the image with the fill color
-transform affine transform image
-transparent color make this color transparent within the image
-transpose flip image vertically and rotate 90 degrees
-transverse flop image horizontally and rotate 270 degrees
-trim trim image edges
-type type image type
-unique-colors discard all but one of any pixel color
-unsharp geometry sharpen the image
-vignette geometry soften the edges of the image in vignette style
-wave geometry alter an image along a sine wave
-white-threshold value
force all pixels above the threshold into white
Image Sequence Operators:
-append append an image sequence
-clut apply a color lookup table to the image
-coalesce merge a sequence of images
-combine combine a sequence of images
-composite composite image
-crop geometry cut out a rectangular region of the image
-deconstruct break down an image sequence into constituent parts
-evaluate-sequence operator
evaluate an arithmetic, relational, or logical expression
-flatten flatten a sequence of images
-fx expression apply mathematical expression to an image channel(s)
-hald-clut apply a Hald color lookup table to the image
-morph value morph an image sequence
-mosaic create a mosaic from an image sequence
-print string interpret string and print to console
-process arguments process the image with a custom image filter
-separate separate an image channel into a grayscale image
-smush geometry smush an image sequence together
-write filename write images to this file
Image Stack Operators:
-clone indexes clone an image
-delete indexes delete the image from the image sequence
-duplicate count,indexes
duplicate an image one or more times
-insert index insert last image into the image sequence
-reverse reverse image sequence
-swap indexes swap two images in the image sequence
Miscellaneous Options:
-debug events display copious debugging information
-help print program options
-list type print a list of supported option arguments
-log format format of debugging information
-version print version information
By default, the image format of `file' is determined by its magic
number. To specify a particular image format, precede the filename
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps). Specify 'file' as
'-' for standard input or output.
/home/rg/Accuweather/scripts/macomposition.sh: ligne 315: g : commande introuvable
mise a jour en : 25.007445812225342
rg@rg-HP-Pavilion-dv7-Notebook-PC:~$ Traceback (most recent call last):
File "/home/rg/Accuweather/scripts/recmeteo.py", line 360, in <module>
demonise(ent, nb1, nb2, huitHeures, nbJour, interval, nbFoisHuit, Id)
File "/home/rg/Accuweather/scripts/recmeteo.py", line 300, in demonise
traitement(ent+nb1+'/hourly-weather-forecast/'+nb2+'?hour='+str(h), repsauv+"/huitHeures"+str(x), repsauv)
File "/home/rg/Accuweather/scripts/recmeteo.py", line 90, in traitement
soup = BeautifulSoup(currentCond)
File "/usr/lib/python3/dist-packages/bs4/__init__.py", line 172, in __init__
self._feed()
File "/usr/lib/python3/dist-packages/bs4/__init__.py", line 185, in _feed
self.builder.feed(self.markup)
File "/usr/lib/python3/dist-packages/bs4/builder/_lxml.py", line 195, in feed
self.parser.close()
File "parser.pxi", line 1187, in lxml.etree._FeedParser.close (src/lxml/lxml.etree.c:88786)
File "parsertarget.pxi", line 136, in lxml.etree._TargetParserContext._handleParseResult (src/lxml/lxml.etree.c:98001)
File "parsertarget.pxi", line 130, in lxml.etree._TargetParserContext._handleParseResult (src/lxml/lxml.etree.c:97909)
File "lxml.etree.pyx", line 294, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:9071)
TypeError: function takes exactly 5 arguments (1 given)
Hors ligne
#107 Le 01/04/2013, à 11:13
- Ehcor8
Re : [Conky] Alternative à weather.com (3)
il doit y avoir une erreur dans mon "macomposition" car il cherche à appeler des éléments qui s'affichent en fond d'écran (le baromètre, ..) Tout semble pourtant correct en affichage. Je rechercherai un peu plus tard car j'ai des invités.
Merci pour ton aide.
Hors ligne
#108 Le 01/04/2013, à 11:22
- Didier-T
Re : [Conky] Alternative à weather.com (3)
Bon il y a encore un soucis avec BeautifulSoup.
pour 13.04 on vas attendre la sortie officielle de la distribution, ce sont des soucis de gestion mémoire, il me semble sa devrait être réglé lors de la sortie.
Hors ligne
#109 Le 01/04/2013, à 12:22
- Phyllinux
Re : [Conky] Alternative à weather.com (3)
Bon, aujourd'hui la mise à jour s'effectue correctement.
Cependant, c'est à l'initialisation que j'ai eu du mal. Il a fallu que je lance 3 fois le conky pour qu'il s'initialise. Les 2 premiers lancements ne lançaient que les données en mémoire. J'avais donc les données datant de l'heure à laquelle j'avais éteint le PC avec le conky actif.
A la 3° tentative, c'est reparti, et la météo s'actualise bien tous les 1/4 d'heures...
A suivre !
The ship is sinking normally...
Hors ligne
#110 Le 01/04/2013, à 13:27
- Dreadid
Re : [Conky] Alternative à weather.com (3)
@ Phyllinux :
J'ai eu l'occasion de constater ce dysfonctionnement d'actualisation sur mon ordi... mais en général, il n'intervient que lorsque mon accès Internet est saturé (mon épouse sur pluzz.fr et ma fille sur M6 Replay, par exemple). Et dès que tu relances le conky, la météo se réactualise de nouveau tous les 1/4 d'heures.
Il faudrait peut-être vérifier dans le script météo, s'il n'y a pas une routine qui bloque la réactualisation, si tu es hors-ligne ou en cas d'accès difficile à Internet.
Après pour tes deux premiers lancements qui ne lançaient que les données en mémoire... pas sûr... peut-être as-tu manqué de patience ? En effet, si tu ouvres le dossier reptravail en cours d'initialisation, tu remarqueras que l'actualisation des différents fichiers ne se fait pas d'un seul coup... et le fichier CC (sur lequel s'appuie l'affichage de l'heure de mise à jour) est le dernier à s'actualiser.
@ Didier-T :
Doc ConkyMétéo, le dysfonctionnement pourrait-il venir de là ?
Dernière modification par dcourbet (Le 01/04/2013, à 13:28)
Intel NUC / Intel® Core™ i5-8259U CPU @ 2.30GHz × 4/ Intel Iris Plus Graphics 655 / 16 Go RAM
LinuxMint 20.3 - Cinnamon 64 bits / Windows 10 - 64 bits
Hors ligne
#111 Le 01/04/2013, à 13:33
- Didier-T
Re : [Conky] Alternative à weather.com (3)
Doc ConkyMétéo ???
Hors ligne
#112 Le 01/04/2013, à 14:26
- Dreadid
Re : [Conky] Alternative à weather.com (3)
Ce n'est pas toi qui est titulaire d'un master 2 en Conky Météo ?
Si oui, quoi d'neuf, Doc ?
Dernière modification par dcourbet (Le 01/04/2013, à 14:26)
Intel NUC / Intel® Core™ i5-8259U CPU @ 2.30GHz × 4/ Intel Iris Plus Graphics 655 / 16 Go RAM
LinuxMint 20.3 - Cinnamon 64 bits / Windows 10 - 64 bits
Hors ligne
#113 Le 02/04/2013, à 07:47
- jpdipsy
Re : [Conky] Alternative à weather.com (3)
Toutes,tous
De retour avec ver 1.87
Ajout de la fonction crea_cercle_repart qui ajoute des images reparties sur un cercle
ex :
le code
# creation de cercles de donnée
for (( x=1 ; x<8 ; x++ ));do
image_prev[x]=$(crea_graph "prev_$x" "cercle" "15" "none" "firebrick3" "1")
ajout_cart "prev_$x" "North" "0" "+0" "+10" "$x" blue $fonte 18
done
mon_test=$(crea_cercle_repart "test" "50" "image_prev" "7" "5")
crea_cercle_repart "nom" "rayon_cercle_de_repartition" "nom_du_tableau" "nb_d'image_du_tableau" "décalage_du_départ" "(optionnel ecart entre image)"
Particularitées : nom du tableau sans les []
le décalage_du_départ permet de placer la premiére image sur le cercle comme sur l'exemple
Bonne journée
edit : jai changé "On s'attend à des averses" par "Averses probables" aussi
Dernière modification par jpdipsy (Le 02/04/2013, à 07:53)
Hors ligne
#114 Le 02/04/2013, à 13:13
- Ehcor8
Re : [Conky] Alternative à weather.com (3)
Bjr, Merci pour les infos, il s'agit effectivement d'un pb avec la "belle soupe". Il y a encore eu ce matin un changt de version mais le pb reste intact.
Les prévisions sous forment de cercles rendent bien mais trop compliqué pour moi.
Hors ligne
#115 Le 02/04/2013, à 13:44
- ragamatrix
Re : [Conky] Alternative à weather.com (3)
@jpdipsy et Didier-T
Tout cela à l'air bien sympathique; j'ai fais la mise à jour et je ne trouve pas d'où cela peut venir. Je n'arrive pas à le faire tourner aujourd'hui.
┌─( climatix ) - ( 3.2.0-39-generic ) - ( ~ )
└─> Version = 1.22
huitHeures 1 Ok
huitHeures 2 Ok
Jour 1 Ok
Matin 1 Ok
AM 1 Ok
Soiree 1 Ok
Nuit 1 Ok
Jour 2 Ok
Matin 2 Ok
AM 2 Ok
Soiree 2 Ok
Nuit 2 Ok
Jour 3 Ok
Matin 3 Ok
AM 3 Ok
Soiree 3 Ok
Nuit 3 Ok
Traceback (most recent call last):
File "/home/climatix/Accuweather/scripts/recmeteo.py", line 360, in <module>
demonise(ent, nb1, nb2, huitHeures, nbJour, interval, nbFoisHuit, Id)
File "/home/climatix/Accuweather/scripts/recmeteo.py", line 306, in demonise
traitement(ent+nb1+'/daily-weather-forecast/'+nb2+"?day="+str(x), repsauv+"/Jour"+str(x), repsauv)
File "/home/climatix/Accuweather/scripts/recmeteo.py", line 154, in traitement
infs=inf[1].get_text().split("\n")
IndexError: list index out of range
Hors ligne
#116 Le 02/04/2013, à 15:03
- ragamatrix
Re : [Conky] Alternative à weather.com (3)
bon avec la gestion de l’écart entre les cercles de données
### Valeurs à modifier nbdiv=16 # Nombre de cercle de données rayongabarit=140 # Rayon sur lequel seront distribué les cercles de données ecart=0 # Ecart entre les cercles de donées ### Fin des valeurs a modifier angl=$(echo "360/$nbdiv" |bc -l) pi=$(echo "scale=10; 4*a(1)" | bc -l) ratio=$(echo "$rayongabarit/0.70" |bc -l) Pourcent=$(echo "sqrt((100^2*2)-(2*100^2*c($angl/180*$pi)))" | bc -l | awk '{printf("%d\n",$1)}') Pourcent=$(echo "($ratio*($Pourcent/100))-$ecart" | bc -l | awk '{printf("%d\n",$1)}') diaminfo=$(echo "35*($Pourcent/100)" | bc -l | awk '{printf("%d\n",$1)}') Pourcentcartouche=$(($(($rayongabarit+$diaminfo))*2)) Pourcentcartouche=$(($Pourcentcartouche+20)) crea_cart "mes_previsions" "$((Pourcentcartouche))x$((Pourcentcartouche))" # creation cart final ajout_ima_cart "mes_previsions" "center" "100" "0" "+0" "+0" "$(crea_graph "cercle_interieur" "cercle" "$(($rayongabarit-$diaminfo-2))" "none" "red" "2")" ajout_ima_cart "mes_previsions" "center" "100" "0" "+0" "+0" "$(crea_graph "cercle_ext" "cercle" "$(($rayongabarit+$diaminfo+2))" "none" "red" "2")" # creation des 8 cercles de prev avec croix de centrage for (( x=1 ; x<$(($nbdiv+1)) ; x++ ));do image_prev[x]=$(crea_graph "prev_$x" "cercle" "35" "none" "firebrick3" "1") ajout_cart "prev_$x" "North" "0" "+0" "+10" "$(prev_huit $x heure) H" $coul4 $fonte 12 ajout_cart "prev_$x" "North" "0" "-15" "+22" "$(prev_huit $x temp)°" $coul4 $fonte 10 done # placement des prev_$x dans cart final for (( x=0; x<$nbdiv; x++ )); do rot=$(echo "($x*$angl)-90" | bc -l) cx=$(echo "$rayongabarit*c($rot/180*$pi)" | bc -l) cy=$(echo "$rayongabarit*s($rot/180*$pi)" | bc -l) ajout_ima_cart "mes_previsions" "center" "$Pourcent" "0" "+$cx" "+$cy" "${image_prev[$(($x+1))]}" done
edit : ce matin je n’arrivai pas à coller mon image sur le net, voici donc la petite capture pour illustrer.
http://pix.tdct.org/upload/original/1364577921.png http://pix.tdct.org/upload/original/1364578167.png
J'ai voulu tester cela mais je n'arrive pas à avoir un affichage correct. Peut⁻être à cause du pourcentage...
Hors ligne
#117 Le 02/04/2013, à 15:57
- MimileVadrouille
Re : [Conky] Alternative à weather.com (3)
Hello,
suivant le bon exemple de Didier-T je me suis mis au python ainsi qu'un bout de lua. je voulais apprendre donc j'ai refait les scripts à ma manière - elle n'est ni meilleure ni moins bonne, c'est juste ma manière . Je ne voulais pas les poster mais finalement je me suis dit que cela pouvait aussi toujours servir d’exemple pour d'autres si vous vouliez vous mettre aussi au python. J'étais bien content de trouver de l'aide dans tous les scripts présentés ici
===============================================================================================
Attention mes scripts sont beaucoup moins complets que ceux de Didier-T au niveau des données à rapatrier. D'autre part au lieu d'avoir une seule fonction de rapatriement, j'en ai 4 : une pour les conditions actuelles, une pour les forecasts des jours à venir, une pour les huit heures et un dernière pour la lune.
qu'est ce qu'ils ont de différents:
1) ils sont peut être un peu plus résistants aux changements des formats des pages web sur ces points:
- N/A est renvoyé en cas de non rapatriement de la données ou de l'icone - j'ai d’ailleurs crée une icône "na.png"
- si la page web n'est pas correctement downloadée
- si l'on arrive pas à trouver la donnée voulue dans la page web.
2) ils placent les données rapatriées dans un fichier XML (appelé data_file) qui est lu ensuite par le script lua. Je n'ai donc que 2 fonctions qui retourne soit la valeur soit l’icône (au lieu de toutes les fonctions
function conky_Meteo_balblabla(j)
return (balbalbla)
end
Ce fichier est reutilisé en cas d'erreur ou en cas de non connection internet
3) DEBIAN SQUEEZE l'oblige il ne fait ni appel a python3 ni bs4 mais simplement python et beautifulsoup (ATTTENTION SOUS DEBIAN SQUEEZE il faut prendre la version de beautifulsoup fournie par les backports v 3.2.0-2~bpo60+1). les scripts ont été testés sous debian squeeze, sous debian wheezy et le live CD ubuntu 12.4
les packets à installer sont
conky
python-beautifulsoup
lua5.2 (uniquement pour du debug)
===============================================================================================
- les données pouvant être affichées sont celles contenues dans le fichier XML data_file. il y a :
1) les données courantes ou 8heures ou lune - c'est tout ce qu'il a entre les balises <day_0> et <\day_0>
2) les prévisions pour les jours suivants. c'est tout ce qu'il a entre les balises <day_1> et <\day_1>, <day_2> et <\day_2>...
3) les données à afficher sont identifiées par les balises <name> et leur valeurs par les balises <value>
suivant l’exemple de conkyrc de Didier-T cela peut être fait de la manière suivante
lua display_meteo \1 \2 } # \1=nom dans la balise dans le fichier XML data_file \2=jour dans le fichier XML data_file>
pour la température actuelle:
lua display_meteo cur_temp 0
pour la température prevues dans 3 jours:
lua display_meteo Temp_max_d 3
et pour les icones il suffit d'appeler la fonction
lua_parse display_icon \1 \2 \3 \4 # \1=nom de l'icones \2=position \3=taille \4=jour
===============================================================================================
En ce qui concerne les scripts les voila:
pour le fichier de configuration a appeler: mymeteo.cfg
#working directory
work_dir=~/conky/
#work_dir=/DIVERS/tmp/python/
# Web address
web=http://www.accuweather.com/fr/ca/toronto/m5g/weather-forecast/55488
#max number of day
nb_day=5
#update_time (secondes)
update=600
#update=30
#update=600
#update=1800
#debug traces
DEBUG=yes
pour le fichier lua: A APPELER mymeteo.lua
-- -- Magic charachters: ^ $ ( ) % . [ ] * + - ?
-- . --- (a dot) represents all characters.
-- %a --- all letters.
-- %c --- all control characters.
-- %d --- all digits.
-- %l --- all lowercase letters.
-- %p --- all punctuation characters.
-- %s --- all space characters.
-- %u --- all uppercase letters.
-- %w --- all alphanumeric characters.
-- %x --- all hexadecimal digits.
-- %z --- the character with hex representation 0x00 (null).
-- %% --- a single '%' character.
-- %1 --- captured pattern 1.
-- %2 --- captured pattern 2 (and so on).
-- %f[s] transition from not in set 's' to in set 's'.
-- %b() balanced pair ( ... )
require "io"
require "os"
--List of the accents and "strange" characters in the patterns
local pat="%é%è%à%ä%â%ê%ô%ç%É%È%À%Â%Ä%Ê%Ô%Ç"
-- Global variable used in different functions
local web, data_file, actual_time, tc, start, delay, save_dir, all_day, DEBUG
local forecast_daily_matrix={}
local forecast_daily_matrix_name={}
DEBUG="no"
--Formatage des pages web
function format_FR(var)
var = var:gsub("ô", "ô"):gsub("â", "â"):gsub("é", "é"):gsub("è", "è"):gsub("à", "à"):gsub("ç", "ç"):gsub("ê", "ê"):gsub("ö", "ö"):gsub("î", "î"):gsub("ï", "ï"):gsub("û", "û"):gsub("ü", "ü"):gsub("'", "'"):gsub("Poudreries", "Bourrasques de neige"):gsub("É", "É"):gsub("°",""):gsub("[\n\r]",""):gsub("é", "é")
return var
end
function print_msg (message)
if DEBUG ~= "no" then
print (message)
end
end
function file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end
end
-- check the status of a variable. If the partern was not found it will retrun N/A instead of nill.
function check_status (varname, var)
if var == nil then
local file = io.open("Debug", "w")
var="N/A"
file:write ("\n Debug ", varname," ", var)
file:close()
end
return var
end
-- Intialisation of conky and reading parameter file
function conky_init_meteo (cfg)
local home = os.getenv("HOME")
if string.find(cfg, "~") ~= nil then
cfg = string.gsub(cfg, "~", home)
cfg = string.gsub(cfg, "$HOME", home)
print_msg ("replace ~ ==>", cfg)
end
local file = assert(io.open(cfg, "rb") )
local line = file:read()
for line in file:lines() do
pos1 = string.find(line, '#')
if pos1 ~= nil then
line = string.sub(line, 1, pos1-1)
end
pos1 = string.find(line, '=')
if string.find(line, 'work_dir=') ~= nil then
local save_dir1 = string.sub(line, pos1+1)
save_dir = string.gsub(save_dir1, "~", home)
print_msg ("working directory is : "..save_dir)
elseif string.find(line, 'web=') ~= nil then
web = string.sub(line, pos1+1)
print_msg ("web address is set to: "..web)
elseif string.find(line, 'update=') ~= nil then
delay = string.sub(line, pos1+1)
print_msg ("delay is set to : "..delay)
elseif string.find(line, 'DEBUG=') ~= nil then
DEBUG = string.sub(line, pos1+1)
if DEBUG == "no" or DEBUG == "NO" then
print ("===================")
print ("No debug traces set")
end
end
end
io.close(file)
-- variable initialization
all_day = { 1,2,3,4,5 }
-- timer initialization
actual_time = os.difftime(os.time(), delay)
tc = actual_time
start = 0
end
-- Update : get and save internet page
function conky_update()
local file, web_file, web_file_name
if tonumber(delay) <= os.difftime(os.time(), actual_time) then
print_msg ("Diff os time - actual time : "..os.difftime(os.time(), actual_time) )
print_msg ("Delay set up to : "..delay)
actual_time = os.time()
start = 1
print_msg ("Fetch update from web pages -- BEGIN")
python_is_OK = os.execute("python "..save_dir.."/mymeteo.py "..save_dir.." "..web.." ")
if python_is_OK == true or python_is_OK == 0
then
print_msg ("Fetch update from web pages -- END")
conky_update_table ()
else
print_msg ("FAILED to launch python script")
conky_update_table ()
end
end
return " "
end
--
function conky_update_table ()
local val, name, detail_day
data_file_name=save_dir.."/data_file"
data_file = io.open(data_file_name, "r" )
local file = string.gsub(data_file:read("*a")," ","\\sPaCe\\")
forecast_daily_matrix[0]={}
forecast_daily_matrix_name[0]={}
day = 0
for line in io.lines(data_file_name) do
--print(i ,line)
new_day=string.match(line, "<\\day_")
new_line = string.gsub(line," ","\\sPaCe\\")
s,f,index_str,name,value=string.find(new_line,"<index>([%d]*)<name>([%a%p%d]*)<value>([%a%p%d"..pat.."]*)<\\index>")
--print (line)
--print (day , new_day, index, name, value)
index=tonumber(index_str)
if index ~= nil and name ~= nil and new_day == nil then
-- forecast_daily_matrix_name[day][index]=tostring(name)
forecast_daily_matrix_name[day][index]=tostring(string.gsub(name,"\\sPaCe\\"," "))
forecast_daily_matrix[day][index]=tostring(string.gsub(value,"\\sPaCe\\"," "))
--print (index, forecast_daily_matrix_name[day][index], forecast_daily_matrix[day][index])
end
if new_day ~= nil then
day = day +1
forecast_daily_matrix[day]={}
forecast_daily_matrix_name[day]={}
end
end
all_day=day
data_file:close()
return " "
end
-- function to look for a variable into a table and return its value
function inTable(tbl, item, day)
local key, value
for key, value in ipairs(tbl) do
--print (key,value)
if value == item then return key, value, day end
end
return false
end
-- return a value in the "forecast_daily_matrix" table for being displayed in conky
function conky_display_meteo (var, day_ref)
local index, key, value, Aday, day_found, var_value
var_value=tostring(var)
Aday=tonumber(day_ref)
--print (var, Aday)
if Aday == nil then
Aday=tonumber(0)
end
--print ("var to find:", var, "day", Aday, "matrix: ", forecast_daily_matrix_name [Aday])
index,value,day=inTable(forecast_daily_matrix_name [Aday], var, Aday)
--print (index,value,day)
if index ~= false then
--print (forecast_daily_matrix [Aday] [index])
var_value=forecast_daily_matrix [Aday] [index]
return var_value
else
return var_value
end
end
-- return an icon in the "forecast_daily_matrix" table for being displayed in conky
function conky_display_icon (var, position, size, day_ref)
local index, key, value, Aday, day_found, image, day_night, sunset, sunrise, actual_hour, var_value, moon_stat, moon_visi, moon_icon_dir
--print (var, position, size, day_ref)
day_night="jour"
var_value=tostring(var)
if string.find(var, "moon") ~= nil then
day_night="lune"
--eg : moon_icon_dir=save_dir.."/meteo/icones/lune/"..<moon_status>.."/"..<moon_visibility>.."_t.png"
moon_stat=tostring(conky_display_meteo("moon_status", 0))
moon_visi=tostring(conky_display_meteo("moon_visibility", 0))
--print (moon_stat,moon_visi)
moon_icon_dir=save_dir.."/meteo/icones/lune/"..moon_stat.."/"..moon_visi.."_t.png"
--print (moon_icon_dir, position, size)
if file_exists (moon_icon_dir) == true then
return "${image "..moon_icon_dir.." -p "..position.." -s "..size.." -f 60}"
else
return "${image "..save_dir.."/meteo/icones/na.png -p "..position.." -s "..size.." -f 60}"
end
else
if string.find(var, "_n") ~= nil then
day_night="nuit"
end
if string.find(var, "_d") ~= nil then
day_night="jour"
end
if string.find(var, "cur_") ~= nil or string.find(var, "Icon_8") ~= nil then
sunrise=tonumber(conky_display_meteo("sunrise_HH", 1)..conky_display_meteo("sunrise_MM", 1))
sunset=tonumber(conky_display_meteo("sunrise_HH", 1)..conky_display_meteo("sunrise_MM", 1))
actual_hour=tonumber(os.date("%H%M", os.time()))
--print (sunrise, actual_hour, sunset)
if sunrise ~= nil and sunset ~= nil then
if actual_hour <= sunset and actual_hour >= sunrise then
--print ("jour")
day_night="jour"
else
--print ("nuit")
day_night="nuit"
end
else
day_night="jour"
end
end
directory=save_dir.."/meteo/icones/"..day_night
Aday=tonumber(day_ref)
--print (var, Aday, directory)
if Aday == nil then
Aday=tonumber(0)
end
--print ( var, "day", Aday, "matrix: ", forecast_daily_matrix_name [Aday])
index,value,day=inTable(forecast_daily_matrix_name [Aday], var, Aday)
--print (index,value,day)
if index ~= false then
--print (forecast_daily_matrix [Aday] [index])
image=(forecast_daily_matrix [Aday] [index])
if file_exists (directory.."/"..image..".png") == true then
return "${image "..directory.."/"..image..".png -p "..position.." -s "..size.." -f 60}"
else
return "${image "..directory.."/na.png -p "..position.." -s "..size.." -f 60}"
end
else
return "${image "..directory.."/na.png -p "..position.." -s "..size.." -f 60}"
end
--return "${image "..r.."/jour/"..conditioncourante.Icone..".png -p "..p.." -s "..s.." -f "..f.."}"
end
end
-- following fonction for debugging with LUA it is not used by conky
function stand_alone_no_conky ()
conky_init_meteo("~/conky/mymeteo.cfg")
--conky_init_meteo("~/conky/example/mymeteo.cfg")
--conky_init_meteo("/home/debian1/conky/python/mymeteo.cfg")
conky_update()
--
-- samples for test:
value=conky_display_meteo("cur_day", 0)
print (value)
value=conky_display_meteo("day_name", 1)
print (value)
value=conky_display_meteo("cur_status")
print ("OK", value)
value=conky_display_meteo("ttt",0)
print ("NOK:", value)
value=conky_display_icon ("cur_icon", "100x100", "60" , 0)
print (value)
value=conky_display_icon ("Icon_8_3", "100x100", "60" , 0)
print (value)
value=conky_display_icon ("daily_icon_n", "100x100", "60" , 3)
print (value)
value=conky_display_meteo ("cur_ppp", "100x100", "60" , 3)
print ("NOK:",value)
end
-- ########################################
-- #### MAIN
-- ########################################
--
--
-- Comment out following line for debugging with LUA : lua mymeteo.lua
-- stand_alone_no_conky()
-- Comment following line for using conky : lua mymeteo.lua
conky_init_meteo()
et pour le fichier python: A APPELER mymeteo.py
#! /usr/bin/python
# -*- coding: utf-8 -*-
#from urllib import urlretrieve
import urllib
import urllib2
from os import path, makedirs, system
from time import time, strftime, localtime, sleep
from datetime import datetime
from re import search, compile, findall
# for Squeeze and Wheezy
from BeautifulSoup import BeautifulSoup
import sys
allday=[ '1', '2', '3', '4', '5']
# Initialise table
# the name shown below are the name to be called in the conkyrc file
# first index (which is 0 in python) must be empty because lua will start a index 1.
# for day_0:
current_condition_name = ['','cur_day', 'cur_month', 'cur_year', 'cur_hour', 'cur_min', 'cur_icon', 'cur_temp', 'cur_tempfeel', 'cur_status', 'cur_wind_dir', 'cur_wind_speed', 'cur_Humidity', 'cur_Pressure', 'cur_UV_max', 'cur_cloud_cover', 'cur_ceiling', 'cur_dew_point', 'cur_visibility' ]
eight_condition_name = ['','Icon_8_1', 'Icon_8_2', 'Icon_8_3', 'Icon_8_4', 'Icon_8_5', 'Icon_8_6', 'Icon_8_7', 'Icon_8_8', 'HH_1', 'HH_2', 'HH_3', 'HH_4', 'HH_5', 'HH_6', 'HH_7', 'HH_8' ]
moon_condition_name = ['','moon_status', 'moon_visibility', 'moon_phase' ]
# for day_xx:
daily_condition_name = ['','daily_icon_d', 'daily_icon_n', 'Temp_max_d', 'Temp_RealF_d', 'Temp_min_n', 'Temp_RealF_n', 'daily_condition_d', 'daily_condition_n', 'sunrise_HH', 'sunrise_MM', 'sunset_HH', 'sunset_MM', 'year_date', 'month_date', 'day_date', 'day_name' ]
#other variables or tables:
current_condition_len=(len(current_condition_name))
current_condition = [""] * current_condition_len
index_to_follow=None
condition_daily_len=(len(daily_condition_name))
daily_condition = [""] * condition_daily_len
daily_condition[1] = [""] * condition_daily_len
daily_condition[2] = [""] * condition_daily_len
daily_condition[3] = [""] * condition_daily_len
daily_condition[4] = [""] * condition_daily_len
daily_condition[5] = [""] * condition_daily_len
eight_condition_len=(len(eight_condition_name))
eight_condition = [""] * eight_condition_len
moon_condition_len=(len(moon_condition_name))
moon_condition = [""] * moon_condition_len
################# Function to download the web page and report error if any
def get_url_to_var (web_add):
user_agent = 'Mozilla/5.0 (X11; Linux x86_64)'
headers = { 'User-Agent' : user_agent }
req = urllib2.Request(web_add, headers)
try:
response = urllib2.urlopen(web_add)
except urllib2.URLError, e:
response = 0
return response
################# function to print data when debugging - it is only useful when debugging and if DEBUG_tr is set to "TRUE" (see end of this file)
def print_debug (var_name, var):
if DEBUG_tr == "TRUE":
print (var_name, var)
################# function to look for an item in the saved web page. return the value or N/A if an error occurs
def try_compile (pattern_to_find, string_to_find, group_1=1):
#print(group_1, pattern_to_find, string_to_find)
if int(group_1) == 1 or int(group_1) == 2 or int(group_1) == 3:
try:
value1 = compile(pattern_to_find).search(str(string_to_find)).group(1)
except AttributeError as detail:
print_debug ("Handling run-time error:", detail)
print_debug (" pattern :", pattern_to_find)
print_debug (" with string :", string_to_find)
value1="N/A"
if int(group_1) == 1:
return value1
if int(group_1) == 2 or int(group_1) == 3:
try:
value2 = compile(pattern_to_find).search(str(string_to_find)).group(2)
except AttributeError as detail:
print_debug ("Handling run-time error:", detail)
print_debug (" pattern :", pattern_to_find)
print_debug (" with string :", string_to_find)
value2="N/A"
if int(group_1) == 2:
return [value1, value2]
if int(group_1) == 3:
try:
value3 = compile(pattern_to_find).search(str(string_to_find)).group(3)
except AttributeError as detail:
print_debug ("Handling run-time error:", detail)
print_debug (" pattern :", pattern_to_find)
print_debug (" with string :", string_to_find)
value3="N/A"
return [value1, value2, value3]
################# update current conditions for DAY 0
def update_cur_cond(html_page, page_type):
"""update current conditions"""
current_tag=None
if page_type is "page_is_var":
currentCondUTF8=html_page.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
soup = BeautifulSoup(currentCondUTF8, convertEntities=BeautifulSoup.HTML_ENTITIES)
else :
currentCond = open(html_page, "r")
currentCondUTF8=currentCond.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
soup = BeautifulSoup(currentCondUTF8, convertEntities=BeautifulSoup.HTML_ENTITIES)
currentCond.close()
current_tag=soup.find(id="details")
#search for icon
#icon=current_tag.find("[class~=icon]")
icon=current_tag.findAll("div", {"class": "forecast"})
#cur_icon=compile("(.*)-").search(str(icon_tmp)).group(1)
cur_icon=try_compile("icon i-(.*)-",icon,1)
print_debug ("icon c: ",cur_icon)
#search for temperature
cur_temp = try_compile("temp\">(-?\d*)<" , str(icon))
cur_tempfeel = try_compile("realfeel.*® (-?\d*)<", str(icon))
cur_status = try_compile("cond\">(.*)<" , str(icon)).split("<")[0]
print_debug("Cur Cond: ", cur_temp + " " + cur_tempfeel + " " + cur_status)
#search for date
histo=soup.find(id="feature-history")
cur_complete_date = try_compile("Historique.* - (.*)/(.*)/(.*)<",str(histo),3)
cur_day=str(cur_complete_date[0])
cur_month=str(cur_complete_date[1])
cur_year=str(cur_complete_date[2])
print_debug("date:", cur_day + " " + cur_month + " " + cur_year)
#search for time
#time_info=soup.find(id="panel-body-content")
time_info1=soup.findAll("div", {"class": "feature-stats"})
time_info = try_compile("Summary - (.*):(.*) <",str(time_info1),2)
cur_hour=str(time_info[0])
cur_min=str(time_info[0])
print_debug("time", cur_hour + " " + cur_min)
#search for Wind details
wind_info = current_tag.findAll("div", {"class": "wind-box-lg"})
if len(wind_info) == 0:
wind_info=current_tag.findAll("div", {"class": "wind-box-lg"})
for div in wind_info:
cur_wind_dir = try_compile("var d = '(.*)';", str(wind_info)).replace("W", "O")
cur_wind_speed= try_compile("var s = '(.*)km", str(wind_info))
print_debug("Wind: ", cur_wind_dir + " " + cur_wind_speed)
stat_info=current_tag.findAll("ul", {"class": "stats"})
#print ("All stat", stat_info)
#cur_Humidity=str(findall("Humidit.*>(\d*)%", str(stat_info)))
cur_Humidity = try_compile("Humidit.*>(\d*)%" , str(stat_info))
cur_Pressure = try_compile("Pression.*>(.*) mbar" , str(stat_info))
cur_UV_max = try_compile("Indice.*>(\d)<" , str(stat_info))
cur_cloud_cover= try_compile("Couverture.*>(\d*)%" , str(stat_info))
cur_ceiling = try_compile("Ceiling.*>(.*) m" , str(stat_info))
cur_dew_point = try_compile("Point de.*>(-?\d*).*C<", str(stat_info))
cur_visibility = try_compile("Visibilit.*>(\d*) km" , str(stat_info))
print_debug("Stat: " , cur_Humidity + " " + cur_Pressure + " " + cur_UV_max + " " + cur_cloud_cover + " " + cur_ceiling + " " + cur_dew_point + " " + cur_visibility)
current_condition [1] = cur_day
current_condition [2] = cur_month
current_condition [3] = cur_year
current_condition [4] = cur_hour
current_condition [5] = cur_min
current_condition [6] = cur_icon
current_condition [7] = cur_temp
current_condition [8] = cur_tempfeel
current_condition [9] = cur_status
current_condition [10] = cur_wind_dir
current_condition [11] = cur_wind_speed
current_condition [12] = cur_Humidity
current_condition [13] = cur_Pressure
current_condition [14] = cur_UV_max
current_condition [15] = cur_cloud_cover
current_condition [16] = cur_ceiling
current_condition [17] = cur_dew_point
current_condition [18] = cur_visibility
index_to_follow=19
################# Udpate data for the folling days
def update_daily_weather_forecast(html_page, day_to_retrive, page_type):
"""update 5 following days conditions"""
daily_tag=None
day=int(day_to_retrive)
if page_type is "page_is_var":
#dailyCondUTF8=html_page.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
#soup = BeautifulSoup(dailyCondUTF8)
soup = BeautifulSoup(html_page, convertEntities=BeautifulSoup.HTML_ENTITIES)
else :
my_file=html_page+day_to_retrive
print_debug("FILE", my_file)
dailyCond = open(my_file, "r")
dailyCondUTF8=dailyCond.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
soup = BeautifulSoup(dailyCondUTF8, convertEntities=BeautifulSoup.HTML_ENTITIES)
dailyCond.close()
daily_tag=soup.find(id="details")
#search for DAY icon
daily_icon_d=daily_tag.findAll("div", {"class": "day"})
i=1
daily_icon_val_d = try_compile("icon i-(.*)-", str(daily_icon_d))
daily_condition[day][i]=daily_icon_val_d
print_debug ("icon d: ",daily_condition[day][i])
i=i+1
#search for NIGHT icon
daily_icon_n=daily_tag.findAll("div", {"class": "night"})
daily_icon_val_n = try_compile("icon i-(.*)-", str(daily_icon_n))
daily_condition[day][i]=daily_icon_val_n
print_debug ("icon n: ",daily_condition[day][i])
i=i+1
#search for temperature
i = 3
info_daily=daily_tag.findAll("div", {"class": "info"})
#print (info_daily)
for info_d in info_daily:
cur_temp = try_compile( "temp\">(-?\d*)<", str(info_d))
cur_tempfeel = try_compile( "RealFeel.*® (-?\d*)°<", str(info_d))
# Save values
daily_condition[day][i]=cur_temp
print_debug("Temp : ", daily_condition[day][i]+" index "+str(i))
i=i+1
daily_condition[day][i]=cur_tempfeel
print_debug("RealF: ", daily_condition[day][i]+" index "+str(i))
i=i+1
#search for Conditions
i = 7
p=daily_tag.findAll('p')
j=0
for pv in p:
j=j+1
val=pv.getText()
if len(val) >= 4: # Assumed that if leng is more than 4 charachter it s the goood thing
daily_condition[day][i]=val.encode(sys.stdout.encoding,'replace')
print_debug("Cond: ", daily_condition[day][i])
i=i+1
#print daily_condition[day][5].encode(sys.stdout.encoding,'replace')
#print daily_condition[day][6].encode(sys.stdout.encoding,'replace')
#cur_status=compile("cond\">(.*)<").search(str(cur_info)).group(1).split("<")[0]
#search for Sunrise Sunset
i = 9
sun_tag=soup.find(id="feature-sun")
#print (sun_tag)
sunrise = try_compile("start.*>(\d*):(\d*)<", str(sun_tag), 2)
sunset = try_compile("finish.*>(\d*):(\d*)<", str(sun_tag), 2)
sunrise_HH=str(sunrise[0])
sunrise_MM=str(sunrise[1])
sunset_HH=str(sunset[0])
sunset_MM=str(sunset[1])
daily_condition[day][i]=sunrise_HH
i=i+1
daily_condition[day][i]=sunrise_MM
i=i+1
daily_condition[day][i]=sunset_HH
i=i+1
daily_condition[day][i]=sunset_MM
i=i+1
print_debug ("Sunrise:",sunrise_HH+sunrise_MM)
print_debug ("Sunset :",sunset_HH+sunset_MM)
#search for date
i = 13
date_tag=soup.find(id="feature-history")
#print (date_tag)
daily_complete_date = try_compile("Historique.* - (.*)/(.*)/(.*)<",str(date_tag),3)
daily_day=str(daily_complete_date[0])
daily_month=str(daily_complete_date[1])
daily_year=str(daily_complete_date[2])
daily_condition[day][i]=daily_day
i=i+1
daily_condition[day][i]=daily_month
i=i+1
daily_condition[day][i]=daily_year
i=i+1
print_debug("date:", daily_day + " " + daily_month + " " + daily_year)
if ( 2000 < int(daily_year) < 2099 ) and ( 1 <= int(daily_month) <= 12 ) and ( 1 <= int(daily_day) <= 31 ):
#print strftime('Nous sommes %A ', localtime())
daily_date_epo=datetime(int(daily_year), int(daily_month), int(daily_day))
#daily_date_epo.strftime("%A")
days_fr = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi' ]
days_en = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]
#day_name_en=daily_date_epo.strftime("%A")
#day_name_fr=days_fr[days_en.index(str(day_name_en))]
day_name_fr=days_fr[days_en.index(daily_date_epo.strftime("%A"))]
daily_condition[day][i]=day_name_fr
print_debug("day :", daily_condition[day][i])
else:
daily_condition[day][i]="N/A"
print_debug("day :", daily_condition[day][i])
################# Udpate data for the next 8 hours for DAY 0
def update_8hours(html_page, page_type):
"""update 8 hours conditions"""
eight_tag=None
if page_type is "page_is_var":
eighthoursUTF8=html_page.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
soup = BeautifulSoup(eighthoursUTF8, convertEntities=BeautifulSoup.HTML_ENTITIES)
else :
eighthours=open(html_page, "r")
eighthoursUTF8=eighthours.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
soup = BeautifulSoup(eighthoursUTF8, convertEntities=BeautifulSoup.HTML_ENTITIES)
eighthours.close()
eight_tag=soup.find(id="detail-hourly")
#search for icon
icon_tag=eight_tag.findAll("tr", {"class": "forecast"})
soup2 = BeautifulSoup( str(icon_tag) )
icon=soup2.findAll("div")
#print ("icon", icon)
i=1
for info_eight in icon:
cur_eight_icon = try_compile("icon i-(\d*)-",str(info_eight))
eight_condition[i]=cur_eight_icon
print_debug("Icon: ", eight_condition[i])
i=i+1
#search real hours for 8 following hours
allhours_tag=eight_tag.findAll("tr", {"class": "realfeel"})
soup2 = BeautifulSoup( str(allhours_tag) )
eighthours=soup2.findAll("td")
#print ("all", eighthours)
i=1
for info_hh in eighthours:
cur_eight_hours = try_compile(">(.*)</td", str(info_hh))
print_debug("i : ", i)
if i > 8 and i <= 16 :
eight_condition[i]=cur_eight_hours
print_debug("hour: ", eight_condition[i])
i=i+1
################# Udpate Moon data for DAY 0
def update_moon(html_page, page_type):
moonfile_tag=None
if page_type is "page_is_var":
moonfileUTF8=html_page.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
soup = BeautifulSoup(moonfileUTF8, convertEntities=BeautifulSoup.HTML_ENTITIES)
else :
moonfile=open(html_page, "r")
moonfileUTF8=moonfile.read().decode('utf-8').encode(sys.stdout.encoding,'replace')
soup = BeautifulSoup(moonfileUTF8, convertEntities=BeautifulSoup.HTML_ENTITIES)
moonfile.close()
#search for data
moonfile_tag=soup.findAll("table", {"class": "ephemerides"})
moon_status_all= try_compile("img src=\"imgs/(.*)/(.*).png", str(moonfile_tag), 2)
moon_phase = try_compile("Phases:.*\">(.*)</s" , str(moonfile_tag), 1)
moon_status=str(moon_status_all[0])
moon_visibility=str(moon_status_all[1])
# write into table
moon_condition[1]=moon_status
moon_condition[2]=moon_visibility
moon_condition[3]=moon_phase
print_debug("status : ", moon_condition[1])
print_debug("visibil: ", moon_condition[2])
print_debug("phase : ", moon_condition[3])
################# Fill file with data
def data_fill (data_file):
data_file_to_w = open(data_file, "w")
#Save data to file for ==> current_condition
t = 1
index = 1
data_file_to_w.write("<day_0>\n")
while t < current_condition_len:
print_debug(current_condition_name[t], current_condition[t])
data_to_write="<index>"+str(index)+"<name>"+str(current_condition_name[t])+"<value>"+str(current_condition[t])+"<\\index><\\name><\\value>\n"
data_file_to_w.write(data_to_write)
#print ("curent",t , current_condition_name[t], current_condition[t])
t +=1
index +=1
#Save data to file for ==> 8hours
t =1
while t < eight_condition_len:
print_debug(eight_condition_name[t],eight_condition[t])
data_to_write="<index>"+str(index)+"<name>"+str(eight_condition_name[t])+"<value>"+str(eight_condition[t])+"<\\index><\\name><\\value>\n"
data_file_to_w.write(data_to_write)
t +=1
index +=1
#Save data to file for ==> MOON
t =1
while t < moon_condition_len:
print_debug(moon_condition_name[t],moon_condition[t])
data_to_write="<index>"+str(index)+"<name>"+str(moon_condition_name[t])+"<value>"+str(moon_condition[t])+"<\\index><\\name><\\value>\n"
data_file_to_w.write(data_to_write)
t +=1
index +=1
data_file_to_w.write("<\\day_0>\n")
#Save data to file for ==> DAYS
for day_to_write in allday:
t =1
data_file_to_w.write("<day_"+str(day_to_write)+">\n")
day=int(day_to_write)
while t<condition_daily_len:
print_debug(daily_condition_name[t],daily_condition[day][t])
data_to_write="<index>"+str(t)+"<name>"+str(daily_condition_name[t])+"<value>"+str(daily_condition[day][t])+"<\\index><\\name><\\value>\n"
data_file_to_w.write(data_to_write)
t +=1
data_file_to_w.write("<\\day_"+str(day_to_write)+">\n")
#clase file where data are written
data_file_to_w.close()
def get_addresses (web_add,save_dir):
all_addr_retrived=None
x=1
if TEST_OFL == "TRUE":
current_weather_address = str(save_dir+"/current-weather")
daily_weather_address=str(save_dir+"/daily-weather-forecastday")
moon_address=str(save_dir+"/moon_file")
eight_hours_address=str(save_dir+"8hours")
update_cur_cond (current_weather_address, "page_is_file")
update_8hours(eight_hours_address, "page_is_file")
update_moon(moon_address, "page_is_file")
for day in allday:
update_daily_weather_forecast(daily_weather_address, day, "page_is_file")
## retrun 1 to continue script
return 1
else:
while all_addr_retrived is None:
#setup all web addresses from the ORG one
current_weather_address=web_add.replace("weather-forecast","current-weather")
daily_weather_address=str(web_add.replace("weather-forecast","daily-weather-forecast"))+"?day="
moon_address=str("http://www.calendrier-lunaire.net/")
eight_hours_address=web_add.replace("weather-forecast","hourly-weather-forecast")
print_debug ("CURRENT ADDRESS :", current_weather_address)
print_debug ("DAILY ADDRESS :", daily_weather_address)
print_debug ("MOON ADDRESS :", moon_address)
print_debug ("8HOURS ADDRESS :", eight_hours_address)
# Get web page and store it
current_web_WEB = get_url_to_var (current_weather_address)
current_daily_WEB= [""] * ( len(allday) + 1 )
for day in allday:
current_daily_WEB[int(day)] = get_url_to_var (daily_weather_address+day)
current_moon_WEB = get_url_to_var (moon_address)
current_eight_WEB = get_url_to_var (eight_hours_address)
# Check if file where correctly retrived in case of pb
if current_web_WEB == 0 or current_daily_WEB[1] == 0 or current_moon_WEB == 0 or current_eight_WEB == 0:
print_debug ("Files Not retrived", "NOK")
all_addr_retrived=None
else:
print_debug ("Files retrived", "OK")
all_addr_retrived="TRUE"
if DEBUG_write_to_file is "TRUE":
current_weather_address = str(save_dir+"/current-weather")
daily_weather_address=str(save_dir+"/daily-weather-forecastday")
moon_address=str(save_dir+"/moon_file")
eight_hours_address=str(save_dir+"8hours")
data_file_to_w = open(current_weather_address, "w")
data_file_to_w.write(current_web_WEB.read())
data_file_to_w.close()
for day in allday:
data_file_to_w = open(daily_weather_address+day, "w")
data_file_to_w.write(current_daily_WEB[int(day)].read())
data_file_to_w.close()
data_file_to_w = open(moon_address, "w")
data_file_to_w.write(current_moon_WEB.read())
data_file_to_w.close()
data_file_to_w = open(eight_hours_address, "w")
data_file_to_w.write(current_eight_WEB.read())
data_file_to_w.close()
update_cur_cond (current_weather_address, "page_is_file")
update_8hours(eight_hours_address, "page_is_file")
update_moon(moon_address, "page_is_file")
for day in allday:
update_daily_weather_forecast(daily_weather_address, day, "page_is_file")
current_daily_WEB[int(day)]=None
current_web_WEB=None
current_eight_WEB=None
current_moon_WEB=None
print_debug ("File saved", "OK")
else: # Just write things in variable
update_cur_cond (current_web_WEB, "page_is_var")
update_8hours(current_eight_WEB, "page_is_var")
update_moon(current_moon_WEB, "page_is_var")
for day in allday:
update_daily_weather_forecast(current_daily_WEB[int(day)], day, "page_is_var")
current_daily_WEB[int(day)]=None
current_web_WEB=None
current_eight_WEB=None
current_moon_WEB=None
print_debug ("File saved", "OK")
if all_addr_retrived is None:
x=x+1
print("problème de récupération de données\n essais n°"+str(x))
if x == 3 :
all_addr_retrived="NOK"
sleep(10)
if all_addr_retrived is "TRUE":
return 1
if all_addr_retrived is "NOK":
return 0
def main():
"""entry point"""
if len(sys.argv) != 3:
save_dir="~/conky/"
#save_dir="/home/debian1/conky/"
meteo_url="http://www.accuweather.com/fr/ca/toronto/m5g/weather-forecast/55488"
print_debug ("Default path will be", save_dir)
print_debug ("Default url will be", meteo_url)
else:
save_dir=sys.argv[1]+"/"
meteo_url=sys.argv[2]
print_debug ("", sys.argv[1]) #Display arg1
print_debug ("", sys.argv[2]) #Display arg1
print_debug ("path is", save_dir)
is_tables_filled=get_addresses(meteo_url,save_dir)
if is_tables_filled == 1 :
print_debug ("Tables filled", "OK")
data_fill (save_dir+"/data_file")
#return "false"
else :
print_debug ("nothing done", "NOK")
#return 0
########## MAIN
#TEST_OFL="TRUE" # set TEST_OFL in order to test things offline (no fetch of info over internet)
TEST_OFL="FALSE" # BECARFULL OFFLINE following FILES must be present:
# current-weather
# daily-weather-forecastday<xxx>
# moon_file
# 8hours
DEBUG_tr="TRUE"
#DEBUG_tr="FALSE"
#DEBUG_write_to_file="TRUE"
DEBUG_write_to_file="FALSE"
if __name__ == '__main__':
main()
==================
enfin voici mes conkyrc pour example
conky 1
# conky configuration
# set to yes if you want Conky to be forked in the background
# set to no fore test
background yes
# Use Xft?
use_xft yes
xftfont Vera:size=6 # police et taille a utiliser
xftalpha 0.8
# Print everything to console?
out_to_console no
# mail spool
#mail_spool $MAIL
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type conky
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
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
# border width
border_width 0
# Default colors and also border colors
default_color F8A65C #Orange
default_shade_color black
default_outline_color black
# Minimum size of text area
minimum_size 690 85 # taille mini (px) ; largeur / hauteur
maximum_width 690 # largeur maxi
# Text alignment, other possible values are commented
#alignment top_right
alignment top_left
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 530
gap_y 328
#gap_y 448
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 1
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
# Colors
#color1 000000 #BLACK
color1 444444 #Gris fonce
color2 CCCCCC #Gris 1
color3 555555 #Gris 2
#color4 333333 #Gris 3
color4 444444 #Gris 3
color5 FFFFFF #WHITE
text_buffer_size 4096
max_specials 1024
#Rafraichissement images
imlib_cache_size 0
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#
# stuff after 'TEXT' will be formatted on screen
# 180x108 150x90 120x72 80x48 60x36
# ${font Vera:size=10:style=bold}
# ${texeci 500 bash /home/antoine1/.conky/acc_int_images}
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# -- Declaration template -- #
template0 ${lua display_meteo \1 } # -- meteo for current status --#
template1 ${lua display_meteo \1 \2 } # -- gestion météo --#
template2 ${lua_parse display_icon \1 \2 \3 \4} # -- icones météo -- \1=icones \2=position \3=taille \4=jour (pour les prévisions) #\
template3 ${font Vera:size=6}
template4 ${font Vera:size=8}
template5 ${font Vera:size=10}${color1}\1
template6 ${font Vera:size=10}${color1}${lua display_meteo \1 \2 }
template7 ${font Vera:size=8:style=bold}${color4}${lua display_meteo \1 \2 }
template8 ${font Vera:size=8}${color4}${lua display_meteo \1 \2 }
# script lua à charger ###############################
#lua_load /DIVERS/tmp/python/mymeteo.lua # éventuellement changer la référence à votre répertoire
#lua_startup_hook init_meteo /DIVERS/tmp/python/mymeteo.cfg
lua_load ~/conky/mymeteo.lua # éventuellement changer la référence à votre répertoire
lua_startup_hook init_meteo ~/conky/mymeteo.cfg
#
#
TEXT
${voffset 0}${lua conky_update}${font}${font Vera:size=11}${color1} ${goto 120}${template5 Aujourd'hui}${goto 245}${template6 day_name 2}${goto 330}${template6 day_name 3}${goto 420}${template6 day_name 4}${goto 510}${template6 day_name 5}${goto 610}${font Vera:size=11}${color1}Lune
${template2 cur_icon -15,10 150x90 0}${template2 daily_icon_d 100,10 80x48 1}${template2 daily_icon_n 160,10 80x48 1}${template2 daily_icon_d 225,10 80x48 2}${template2 daily_icon_n 265,10 80x48 2}${template2 daily_icon_d 310,10 80x48 3}${template2 daily_icon_n 350,10 80x48 3}${template2 daily_icon_d 400,10 80x48 4}${template2 daily_icon_n 440,10 80x48 4}${template2 daily_icon_d 490,10 80x48 5}${template2 daily_icon_n 530,10 80x48 5}${template2 moon_icon 610,17 60x60 }
${voffset 15}${goto 120}${font Vera:size=8}${color1}Max: ${template7 Temp_max_d 1}°C${goto 180}${font Vera:size=8}${color1}Min: ${template7 Temp_min_n 1}°C${goto 245}${template8 Temp_max_d 2}°C${goto 285}${template8 Temp_min_n 2}°C${goto 330}${template8 Temp_max_d 3}°C${goto 370}${template8 Temp_min_n 3}°C${goto 420}${template8 Temp_max_d 4}°C${goto 460}${template8 Temp_min_n 4}°C${goto 510}${template8 Temp_max_d 5}°C${goto 550}${template8 Temp_min_n 5}°C${font}
${voffset 1} ${goto 120}${font Vera:size=8}${color1}${template1 sunrise_HH 1}:${template1 sunrise_MM 1}${goto 180}${font Vera:size=8}${color1}${template1 sunset_HH 1}:${template1 sunset_MM 1}${goto 245}${template1 sunrise_HH 2}:${template1 sunrise_MM 2}${goto 285}${template1 sunset_HH 2}:${template1 sunset_MM 2}${goto 330}${template1 sunrise_HH 3}:${template1 sunrise_MM 3}${goto 370}${template1 sunset_HH 3}:${template1 sunset_MM 3}${goto 420}${template1 sunrise_HH 4}:${template1 sunrise_MM 4}${goto 460}${template1 sunset_HH 4}:${template1 sunset_MM 4}${goto 510}${template1 sunrise_HH 5}:${template1 sunrise_MM 5}${goto 550}${template1 sunset_HH 5}:${template1 sunset_MM 5}${font}
${voffset 1} ${goto 5}${font Vera:size=10}${color1}${template0 cur_status } : ${font Vera:size=10}${template0 cur_temp }°C / FL : ${template0 cur_tempfeel}°C${font}
conky 2
# conky configuration
# set to yes if you want Conky to be forked in the background
# set to no fore test
background yes
# Use Xft?
use_xft yes
xftfont Vera:size=6 # police et taille a utiliser
xftalpha 0.8
# Print everything to console?
out_to_console no
# mail spool
#mail_spool $MAIL
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type conky
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
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
# border width
border_width 0
# Default colors and also border colors
default_color F8A65C #Orange
default_shade_color black
default_outline_color black
# Minimum size of text area
minimum_size 400 50 # taille mini (px) ; largeur / hauteur
maximum_width 400 # largeur maxi
# Text alignment, other possible values are commented
#alignment top_right
alignment top_left
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 530
gap_y 500
#gap_y 448
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 1
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
# Colors
#color1 000000 #BLACK
color1 444444 #Gris fonce
color2 CCCCCC #Gris 1
color3 555555 #Gris 2
#color4 333333 #Gris 3
color4 444444 #Gris 3
color5 FFFFFF #WHITE
text_buffer_size 4096
max_specials 1024
#Rafraichissement images
imlib_cache_size 0
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#
# stuff after 'TEXT' will be formatted on screen
# 180x108 150x90 120x72 80x48 60x36
# ${font Vera:size=10:style=bold}
# ${texeci 500 bash /home/antoine1/.conky/acc_int_images}
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# -- Declaration template -- #
template0 ${lua display_meteo \1 } # -- meteo for current status --#
template1 ${lua display_meteo \1 \2 } # -- gestion météo --#
template2 ${lua_parse display_icon \1 \2 \3 0} # -- icones météo -- \1=icones \2=position \3=taille \4=jour (pour les prévisions) #\
template3 ${font Vera:size=6}
template4 ${font Vera:size=8}
template5 ${font Vera:size=10}${color1}
template6 ${font Vera:size=10}${color1}${lua display_meteo \1 }
template7 ${font Vera:size=8:style=bold}${color4}${lua display_meteo \1 \2 }
template8 ${font Vera:size=8}${color4}${lua display_meteo \1 \2 }
# script lua à charger ###############################
#lua_load /DIVERS/tmp/python/mymeteo.lua # éventuellement changer la référence à votre répertoire
#lua_startup_hook init_meteo /DIVERS/tmp/python/mymeteo.cfg
lua_load ~/conky/mymeteo.lua # éventuellement changer la référence à votre répertoire
lua_startup_hook init_meteo ~/conky/mymeteo.cfg
#
#
TEXT
${lua conky_update_table }${voffset 0}${template5}Prévision et évolution pour les 8 prochaines heures:
${template2 Icon_8_1 0,10 50x30 }${template2 Icon_8_2 50,10 50x30 }${template2 Icon_8_3 100,10 50x30 }${template2 Icon_8_4 150,10 50x30 }${template2 Icon_8_5 200,10 50x30 }${template2 Icon_8_6 250,10 50x30 }${template2 Icon_8_7 300,10 50x30 }${template2 Icon_8_8 350,10 50x30 }
${voffset 5}${goto 5}${template6 HH_1 }:00${goto 55}${template6 HH_2}:00${goto 105}${template6 HH_3}:00${goto 155}${template6 HH_4}:00${goto 205}${template6 HH_5}:00${goto 255}${template6 HH_6}:00${goto 305}${template6 HH_7}:00${goto 355}${template6 HH_8}:00
conky 3
# conky configuration
# set to yes if you want Conky to be forked in the background
# set to no fore test
background yes
# Use Xft?
use_xft yes
xftfont Comic Sans MS:size=8 # police et taille a utiliser
xftalpha 0.8
#xftfont HandelGotDLig:size=9 # police et taille a utiliser
# Print everything to console?
out_to_console no
# Update interval in seconds
update_interval 4.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type conky
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
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
# border width
border_width 1
# Default colors and also border colors
# apprently not used
default_color F8A65C #Orange
default_shade_color black
default_outline_color black
# Minimum size of text area
minimum_size 145 85 # taille mini (px) ; largeur / hauteur
maximum_width 155 120 # largeur maxi
# Text alignment, other possible values are commented
alignment top_right
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 250
gap_y 435
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 1
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
# Colors
#color1 CCCCCC #Gris
#color2 FFFFFF #White
#color3 BBBBBB #White
#color4 000000 #Black
color1 444444 #Black
color2 FFFFFF #White
color3 444444 #Black
color4 000000 #Black
text_buffer_size 4096
max_specials 1024
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# -- Declaration template -- #
template0 ${lua display_meteo \1 } # -- meteo for current status --#
template1 ${lua display_meteo \1 \2 } # -- gestion météo --#
template2 ${lua_parse display_icon \1 \2 \3 \4} # -- icones météo -- \1=icones \2=position \3=taille \4=jour (pour les prévisions) #\
template3 ${lua Lune_\1} # -- recup info par sed -- #
template4 ${goto 12}${font}${color}\1${goto 87}:
template5 ${goto 0}${color3}\1
template6 ${color1}${alignr}${lua display_meteo \1 0}
template7 ${color1}${alignr}${lua display_meteo \1 \2 }
# script lua à charger ###############################
#lua_load /DIVERS/tmp/python/mymeteo.lua # éventuellement changer la référence à votre répertoire
#lua_startup_hook init_meteo /DIVERS/tmp/python/mymeteo.cfg
lua_load ~/conky/mymeteo.lua # éventuellement changer la référence à votre répertoire
lua_startup_hook init_meteo ~/conky/mymeteo.cfg
###
###
###
# stuff after 'TEXT' will be formatted on screen
TEXT
${lua conky_update_table }${voffset 0} ${template5 Température : }${template6 cur_temp }° / FL ${template6 cur_tempfeel }°
${voffset -4}${template5 Vent : }${template6 cur_wind_dir } ${template6 cur_wind_speed} km/h
${voffset -3}${template5 Humidité : }${template6 cur_Humidity} %
${voffset -3}${template5 Point} de rosée : ${template6 cur_dew_point}°C
${voffset -3}${template5 Pression : }${template6 cur_Pressure} kPa
${voffset -3}${template5 Visibilité : }${template6 cur_visibility} Km
${voffset -3}${template5 Nuage} : ${template6 cur_ceiling} m / ${template6 cur_cloud_cover}%
${voffset -3}${template5 Indice} UV : ${template6 cur_UV_max}.
${voffset -3}${template5 Levé} du soleil : ${template7 sunrise_HH 1}:${template7 sunrise_MM 1}
${voffset -3}${template5 Couché} du soleil : ${template7 sunset_HH 1 }:${template7 sunset_MM 1}
${voffset 1}${alignc}${template1 daily_condition_d 1} puis
${voffset -3}${alignc}${template1 daily_condition_n 1}
${voffset 0}${font Vera:size=6}${alignr}last update : ${template0 cur_hour}:${template0 cur_min}
Encore une fois ces scripts ne rentrent pas en concurrence avec ceux de Didier-T, ce fut un bon exemple pour moi pour apprendre. je les poste uniquement pour ceux qui aurait aussi le désire de se mette a "Pythoner" (ou si il y en a qui sont sur debian)
MimileVadrouille
PS1 Mille excuse pour ceux qui parlent mal l'anglais, ce fut plus facile pour moi de l'écrire en anglais.
PS2: j'ai aussi téléchargé toutes (les 200) les icônes pour la lune j'ai donc aussi un répertoire lune dans celui dédié aux icônes. je peux les mettre qq part si cela vous intéresse (et donc il n y a plus besoin de imagemagik)
Dernière modification par MimileVadrouille (Le 02/04/2013, à 16:04)
Hors ligne
#118 Le 02/04/2013, à 16:01
- MimileVadrouille
Re : [Conky] Alternative à weather.com (3)
et juste pour le fond voila après téléchargement des données mon fichier xml avec le jour voulu, le nom a appeler dans le conkyrc et donc la valeur qui va être retournée
data_file
<day_0>
<index>1<name>cur_day<value>02<\index><\name><\value>
<index>2<name>cur_month<value>04<\index><\name><\value>
<index>3<name>cur_year<value>2013<\index><\name><\value>
<index>4<name>cur_hour<value>10<\index><\name><\value>
<index>5<name>cur_min<value>10<\index><\name><\value>
<index>6<name>cur_icon<value>7<\index><\name><\value>
<index>7<name>cur_temp<value>-3<\index><\name><\value>
<index>8<name>cur_tempfeel<value>-6<\index><\name><\value>
<index>9<name>cur_status<value>Nuageux<\index><\name><\value>
<index>10<name>cur_wind_dir<value>O<\index><\name><\value>
<index>11<name>cur_wind_speed<value>15<\index><\name><\value>
<index>12<name>cur_Humidity<value>68<\index><\name><\value>
<index>13<name>cur_Pressure<value>1017.80<\index><\name><\value>
<index>14<name>cur_UV_max<value>1<\index><\name><\value>
<index>15<name>cur_cloud_cover<value>95<\index><\name><\value>
<index>16<name>cur_ceiling<value>841<\index><\name><\value>
<index>17<name>cur_dew_point<value>-8<\index><\name><\value>
<index>18<name>cur_visibility<value>24<\index><\name><\value>
<index>19<name>Icon_8_1<value>6<\index><\name><\value>
<index>20<name>Icon_8_2<value>6<\index><\name><\value>
<index>21<name>Icon_8_3<value>6<\index><\name><\value>
<index>22<name>Icon_8_4<value>6<\index><\name><\value>
<index>23<name>Icon_8_5<value>6<\index><\name><\value>
<index>24<name>Icon_8_6<value>4<\index><\name><\value>
<index>25<name>Icon_8_7<value>6<\index><\name><\value>
<index>26<name>Icon_8_8<value>4<\index><\name><\value>
<index>27<name>HH_1<value>10<\index><\name><\value>
<index>28<name>HH_2<value>11<\index><\name><\value>
<index>29<name>HH_3<value>12<\index><\name><\value>
<index>30<name>HH_4<value>13<\index><\name><\value>
<index>31<name>HH_5<value>14<\index><\name><\value>
<index>32<name>HH_6<value>15<\index><\name><\value>
<index>33<name>HH_7<value>16<\index><\name><\value>
<index>34<name>HH_8<value>17<\index><\name><\value>
<index>35<name>moon_status<value>decroissante<\index><\name><\value>
<index>36<name>moon_visibility<value>56<\index><\name><\value>
<index>37<name>moon_phase<value>Ascendante, Décroissante<\index><\name><\value>
<\day_0>
<day_1>
<index>1<name>daily_icon_d<value>6<\index><\name><\value>
<index>2<name>daily_icon_n<value>38<\index><\name><\value>
<index>3<name>Temp_max_d<value>1<\index><\name><\value>
<index>4<name>Temp_RealF_d<value>-5<\index><\name><\value>
<index>5<name>Temp_min_n<value>-6<\index><\name><\value>
<index>6<name>Temp_RealF_n<value>-14<\index><\name><\value>
<index>7<name>daily_condition_d<value>Nuages épars; froid<\index><\name><\value>
<index>8<name>daily_condition_n<value>Plutôt nuageux et froid<\index><\name><\value>
<index>9<name>sunrise_HH<value>06<\index><\name><\value>
<index>10<name>sunrise_MM<value>59<\index><\name><\value>
<index>11<name>sunset_HH<value>19<\index><\name><\value>
<index>12<name>sunset_MM<value>46<\index><\name><\value>
<index>13<name>year_date<value>02<\index><\name><\value>
<index>14<name>month_date<value>04<\index><\name><\value>
<index>15<name>day_date<value>2013<\index><\name><\value>
<index>16<name>day_name<value>Mardi<\index><\name><\value>
<\day_1>
<day_2>
<index>1<name>daily_icon_d<value>4<\index><\name><\value>
<index>2<name>daily_icon_n<value>35<\index><\name><\value>
<index>3<name>Temp_max_d<value>1<\index><\name><\value>
<index>4<name>Temp_RealF_d<value>-5<\index><\name><\value>
<index>5<name>Temp_min_n<value>-3<\index><\name><\value>
<index>6<name>Temp_RealF_n<value>-8<\index><\name><\value>
<index>7<name>daily_condition_d<value>Nuages et soleil; froid<\index><\name><\value>
<index>8<name>daily_condition_n<value>En partie nuageux<\index><\name><\value>
<index>9<name>sunrise_HH<value>06<\index><\name><\value>
<index>10<name>sunrise_MM<value>57<\index><\name><\value>
<index>11<name>sunset_HH<value>19<\index><\name><\value>
<index>12<name>sunset_MM<value>47<\index><\name><\value>
<index>13<name>year_date<value>03<\index><\name><\value>
<index>14<name>month_date<value>04<\index><\name><\value>
<index>15<name>day_date<value>2013<\index><\name><\value>
<index>16<name>day_name<value>Mercredi<\index><\name><\value>
<\day_2>
<day_3>
<index>1<name>daily_icon_d<value>3<\index><\name><\value>
<index>2<name>daily_icon_n<value>35<\index><\name><\value>
<index>3<name>Temp_max_d<value>11<\index><\name><\value>
<index>4<name>Temp_RealF_d<value>8<\index><\name><\value>
<index>5<name>Temp_min_n<value>0<\index><\name><\value>
<index>6<name>Temp_RealF_n<value>-4<\index><\name><\value>
<index>7<name>daily_condition_d<value>Nuageux et ensoleillé, venteux et devenant plus chaud<\index><\name><\value>
<index>8<name>daily_condition_n<value>En partie couvert<\index><\name><\value>
<index>9<name>sunrise_HH<value>06<\index><\name><\value>
<index>10<name>sunrise_MM<value>55<\index><\name><\value>
<index>11<name>sunset_HH<value>19<\index><\name><\value>
<index>12<name>sunset_MM<value>49<\index><\name><\value>
<index>13<name>year_date<value>04<\index><\name><\value>
<index>14<name>month_date<value>04<\index><\name><\value>
<index>15<name>day_date<value>2013<\index><\name><\value>
<index>16<name>day_name<value>Jeudi<\index><\name><\value>
<\day_3>
<day_4>
<index>1<name>daily_icon_d<value>1<\index><\name><\value>
<index>2<name>daily_icon_n<value>33<\index><\name><\value>
<index>3<name>Temp_max_d<value>8<\index><\name><\value>
<index>4<name>Temp_RealF_d<value>8<\index><\name><\value>
<index>5<name>Temp_min_n<value>-2<\index><\name><\value>
<index>6<name>Temp_RealF_n<value>-8<\index><\name><\value>
<index>7<name>daily_condition_d<value>Soleil<\index><\name><\value>
<index>8<name>daily_condition_n<value>Clair<\index><\name><\value>
<index>9<name>sunrise_HH<value>06<\index><\name><\value>
<index>10<name>sunrise_MM<value>53<\index><\name><\value>
<index>11<name>sunset_HH<value>19<\index><\name><\value>
<index>12<name>sunset_MM<value>50<\index><\name><\value>
<index>13<name>year_date<value>05<\index><\name><\value>
<index>14<name>month_date<value>04<\index><\name><\value>
<index>15<name>day_date<value>2013<\index><\name><\value>
<index>16<name>day_name<value>Vendredi<\index><\name><\value>
<\day_4>
<day_5>
<index>1<name>daily_icon_d<value>6<\index><\name><\value>
<index>2<name>daily_icon_n<value>18<\index><\name><\value>
<index>3<name>Temp_max_d<value>7<\index><\name><\value>
<index>4<name>Temp_RealF_d<value>7<\index><\name><\value>
<index>5<name>Temp_min_n<value>2<\index><\name><\value>
<index>6<name>Temp_RealF_n<value>-1<\index><\name><\value>
<index>7<name>daily_condition_d<value>Plutôt nuageux, possibilité d'averses; frais<\index><\name><\value>
<index>8<name>daily_condition_n<value>Pluie<\index><\name><\value>
<index>9<name>sunrise_HH<value>06<\index><\name><\value>
<index>10<name>sunrise_MM<value>52<\index><\name><\value>
<index>11<name>sunset_HH<value>19<\index><\name><\value>
<index>12<name>sunset_MM<value>51<\index><\name><\value>
<index>13<name>year_date<value>06<\index><\name><\value>
<index>14<name>month_date<value>04<\index><\name><\value>
<index>15<name>day_date<value>2013<\index><\name><\value>
<index>16<name>day_name<value>Samedi<\index><\name><\value>
<\day_5>
Hors ligne
#119 Le 02/04/2013, à 17:16
- Didier-T
Re : [Conky] Alternative à weather.com (3)
Bonjour MimileVadrouille,
très bien tes scripts, je les regarderai plus en détails plus tard, mais sur une première lecture sa semble très intéressant.
Je suis tous de même surpris du choix que tu a fait d'utiliser pour extraire les données du site.
Je m'explique pour trouver les informations tu emploi leurs nom par exemple Pression qui deviendra Pressure dans une page anglaise.
par contre tu as été bien plus loin que moi dans le respect des règle de programmation en python, et sa c'est cool, sa vas me faire de bons exemples a suivre pour la suite.
Merci pour ce partage
P.S. : sa t’intéresserai de t'impliquer dans le projet, et de me donner un coups de main pour le script python ?
Hors ligne
#120 Le 02/04/2013, à 18:25
- MimileVadrouille
Re : [Conky] Alternative à weather.com (3)
Bonjour MimileVadrouille,
très bien tes scripts, je les regarderai plus en détails plus tard, mais sur une première lecture sa semble très intéressant.
merci beaucoup pour cela, mais tout l'honneur est aussi pour toi car je suis vraiment parti au départ de ton travail
Je suis tous de même surpris du choix que tu a fait d'utiliser pour extraire les données du site.
Je m'explique pour trouver les informations tu emploi leurs nom par exemple Pression qui deviendra Pressure dans une page anglaise.
Attention, j ai codé mes variables et autres en anglais mais mon conky je le veux en Français!!! donc il faut que je cherche dans les pages en FR ainsi que sur les mots clefs en Français. C est pourquoi il a y a des mots en Français qui ressortent D'ailleurs le conky tel quel ne marche pas du tout en anglais. (l'anglais pour moi est juste un langue de travail)
par contre tu as été bien plus loin que moi dans le respect des règle de programmation en python, et sa c'est cool, sa vas me faire de bons exemples a suivre pour la suite.
Merci pour ce partage
P.S. : sa t’intéresserai de t'impliquer dans le projet, et de me donner un coups de main pour le script python ?
oui et non ! oui il n'y a pas de problème pour filer un coup de mains de temps en temps ! Par contre au niveau des disponibilités ca dépend du temps Mais vas y si il a y a des petits trucs tu peux les balancer dans un message et que ce soit toi, moi ou un autre on peut s'aider.
Hors ligne
#121 Le 02/04/2013, à 19:15
- MimileVadrouille
Re : [Conky] Alternative à weather.com (3)
Bonjour MimileVadrouille,
très bien tes scripts, je les regarderai plus en détails plus tard, mais sur une première lecture sa semble très intéressant.
Si tu veux une petite explication sur une chose qui ne parait pas clair dans mon script, n'hésite pas à demander
Hors ligne
#122 Le 02/04/2013, à 22:18
- ragamatrix
Re : [Conky] Alternative à weather.com (3)
J'ai raté quelque chose ?
Chez moi ça marche plus...
┌─( climatix ) - ( 3.2.0-39-generic ) - ( ~ )
└─> /home/climatix/Accuweather/start-recmeteo.sh
┌─( climatix ) - ( 3.2.0-39-generic ) - ( ~ )
└─> Version = 1.22
huitHeures 1 Ok
Jour 1 Ok
Nuit 1 Ok
Jour 2 Ok
Nuit 2 Ok
Jour 3 Ok
Nuit 3 Ok
Traceback (most recent call last):
File "/home/climatix/Accuweather/scripts/recmeteo.py", line 360, in <module>
demonise(ent, nb1, nb2, huitHeures, nbJour, interval, nbFoisHuit, Id)
File "/home/climatix/Accuweather/scripts/recmeteo.py", line 306, in demonise
traitement(ent+nb1+'/daily-weather-forecast/'+nb2+"?day="+str(x), repsauv+"/Jour"+str(x), repsauv)
File "/home/climatix/Accuweather/scripts/recmeteo.py", line 154, in traitement
infs=inf[1].get_text().split("\n")
IndexError: list index out of range
Hors ligne
#123 Le 03/04/2013, à 05:27
- Didier-T
Re : [Conky] Alternative à weather.com (3)
...
J'ai voulu tester cela mais je n'arrive pas à avoir un affichage correct. Peut⁻être à cause du pourcentage...
http://pix.toile-libre.org/upload/img/1364911384.png
comment tu a fais pour obtenir sa ???
tu peut montrer le bout de code ?
Hors ligne
#124 Le 03/04/2013, à 05:40
- Didier-T
Re : [Conky] Alternative à weather.com (3)
J'ai raté quelque chose ?
Chez moi ça marche plus...┌─( climatix ) - ( 3.2.0-39-generic ) - ( ~ ) └─> /home/climatix/Accuweather/start-recmeteo.sh ┌─( climatix ) - ( 3.2.0-39-generic ) - ( ~ ) └─> Version = 1.22 huitHeures 1 Ok Jour 1 Ok Nuit 1 Ok Jour 2 Ok Nuit 2 Ok Jour 3 Ok Nuit 3 Ok Traceback (most recent call last): File "/home/climatix/Accuweather/scripts/recmeteo.py", line 360, in <module> demonise(ent, nb1, nb2, huitHeures, nbJour, interval, nbFoisHuit, Id) File "/home/climatix/Accuweather/scripts/recmeteo.py", line 306, in demonise traitement(ent+nb1+'/daily-weather-forecast/'+nb2+"?day="+str(x), repsauv+"/Jour"+str(x), repsauv) File "/home/climatix/Accuweather/scripts/recmeteo.py", line 154, in traitement infs=inf[1].get_text().split("\n") IndexError: list index out of range
dommage, ce matin je ne rencontre pas de soucis sur Horgen, du coup sa vas être difficile de trouver ou sa bloquai pour toi hier soir.
pour info a présent il y a des fichiers supplémentaires dans le répertoire de travaille (page et page.bak), le contenu de ces fichiers peut me servir en cas de bug, car il s'agit de la page qui a posé problème.
Hors ligne
#125 Le 03/04/2013, à 09:29
- ragamatrix
Re : [Conky] Alternative à weather.com (3)
@Didier-T
Salut,
ça doit venir de chez moi car aujourd'hui non plus je ne peux rien faire avec "recmeteo.py"
contenu de page :
<!DOCTYPE html>
<div id="details">
<ul id="detail-tab-buttons" class="detail-tab-buttons">
<li class="first current { target: '#detail-day-night' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=2"><span>Journée</span></a>
<div class="nub"></div>
</li>
<li class="{ target: '#detail-hourly' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/hourly-weather-forecast/316407?hour=33"><span>Heure par heure</span></a></li>
<li class="{ target: '#detail-morning' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/morning-weather-forecast/316407?day=2"><span>Matinée</span></a></li>
<li class="{ target: '#detail-afternoon' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/afternoon-weather-forecast/316407?day=2"><span>Après-midi</span></a></li>
<li class="{ target: '#detail-evening' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/evening-weather-forecast/316407?day=2"><span>Soirée</span></a></li>
<li class="last { target: '#detail-overnight' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/overnight-weather-forecast/316407?day=2"><span>Nuit</span></a></li>
</ul>
<!-- /#detail-tab-buttons.detail-tab-buttons -->
<div id="detail-day-night" class="detail-tab-panel">
<div class="day">
<div class="bg bg-c">
<div class="icon i-13-l"></div>
<div class="info"> <span class="cond"></span> <span class="hi">Mx </span><span class="temp">13<span>°</span></span>
<span class="realfeel">RealFeel® 15°</span>
<span class="realfeel">Précipitations 62%</span>
</div>
<!-- /.info -->
<div class="nub"></div>
</div>
<!-- /.bg -->
<div class="content">
<h4>Jour</h4>
<div class="desc">
<div class="rt" style="text-align:center;">
<div class="wind-box-sm">
<div id="wind-arm-day" class="wind-arm"></div>
<p class="n">N</p>
<p class="e">E</p>
<p class="s">S</p>
<p class="w">W</p>
<script type="text/javascript">
(function () {
var d = 'NE';
var s = '6km/h';
$('#wind-arm-day').flash({ 'wmode': 'transparent', 'allowScriptAccess': 'always', 'src': 'http://vortex.accuweather.com/adc2010/flash/wind-arm-small.swf?speed=' + s + '&direction=' + d.toLowerCase() + '&units=kph', 'width': '84', 'height': '76' });
if (typeof (acm_hasFlash) != 'undefined' && !acm_hasFlash) {
$('#wind-arm-day').html('<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/arrow-sm-' + d + '.png" />');
}
})();
</script>
</div>
<!--
<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/sm_NE.png" width="84" height="76" alt="Wind" />
-->
<ul class="stats">
<li>
<strong style="">NE 6 km/h</strong>
</li>
<li style="margin-top:-2px;">
Rafales de vent:<strong style=""> 13 km/h</strong>
</li>
</ul>
</div>
<p>Très nuageux et peu de soleil avec quelques averses</p>
</div>
<!-- /.desc -->
<ul class="stats">
<li>Indice UV maximal: <strong>4</strong> (Modérée)</li>
<li>Orages: <strong style="">20%</strong></li>
<li>Précipitations: <strong>3 mm</strong></li>
<li>Pluie: <strong style="">3 mm</strong></li>
<li>Neige: <strong style="">0 cm</strong></li>
<li>Verglas: <strong style="">0 mm</strong></li>
</ul>
<!-- /.stats -->
</div>
<!-- /.content -->
</div>
<!-- /.day -->
<div class="night">
<div class="bg bg-s">
<div class="icon i-7-l"></div>
<div class="info"> <span class="cond"></span> <span class="lo">Mn </span><span class="temp">3<span>°</span></span>
<span class="realfeel">RealFeel® 3°</span>
<span class="realfeel">Précipitations 25%</span>
</div>
<!-- /.info -->
<div class="nub"></div>
</div>
<!-- /.bg -->
<div class="content">
<h4>Nuit</h4>
<div class="desc">
<div class="rt" style="text-align:center;">
<div class="wind-box-sm">
<div id="wind-arm-night" class="wind-arm"></div>
<p class="n">N</p>
<p class="e">E</p>
<p class="s">S</p>
<p class="w">W</p>
<script type="text/javascript">
(function () {
var d = 'NE';
var s = '3km/h';
$('#wind-arm-night').flash({ 'wmode': 'transparent', 'allowScriptAccess': 'always', 'src': 'http://vortex.accuweather.com/adc2010/flash/wind-arm-small.swf?speed=' + s + '&direction=' + d.toLowerCase() + '&units=kph', 'width': '84', 'height': '76' });
if (typeof (acm_hasFlash) != 'undefined' && !acm_hasFlash) {
$('#wind-arm-night').html('<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/arrow-sm-' + d + '.png" />');
}
})();
</script>
</div>
<!--
<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/sm_NE.png" width="84" height="76" alt="Wind" />
-->
<ul class="stats">
<li>
<strong style="">NE 3 km/h</strong>
</li>
<li style="margin-top:-2px;">
Rafales de vent:<strong style=""> 10 km/h</strong>
</li>
</ul>
</div>
<p>Nuageux</p>
</div>
<!-- /.desc -->
<ul class="stats">
<li>Indice UV maximal: <strong>S/O</strong></li>
<li>Orages: <strong style="">20%</strong></li>
<li>Précipitations: <strong>0 mm</strong></li>
<li>Pluie: <strong style="">0 mm</strong></li>
<li>Neige: <strong style="">0 cm</strong></li>
<li>Verglas: <strong style="">0 mm</strong></li>
</ul>
<!-- /.stats -->
</div>
<!-- /.content -->
</div>
<!-- /.night -->
</div>
<!-- /.detail-tab-panel -->
</div>
<!-- /#details -->
<script>acm.setupLifestylePromoLinks(jQuery);</script>
<div id="feature-history">
<div class="clearfix">
<h3 class="lt">Historique des températures - 04/04/2013</h3>
<a href="http://www.accuweather.com/fr/ch/horgen/316407/month/316407?view=table" class="more rt">Autres données météo historiques ></a>
<!-- /.rt -->
</div>
<table cellspacing="0" class="stats">
<thead>
<tr>
<th> </th>
<th>Aujourd'hui</th>
<th>Normale</th>
<th>Record</th>
<th>04/04/2012</th>
</tr>
</thead>
<tbody>
<tr class="hi">
<th scope="row">Élevé</th>
<td>13°</td>
<td class="high">13°</td>
<td>S/O</td>
<td>13°</td>
</tr>
<tr class="last lo">
<th scope="row">Faible</th>
<td>3°</td>
<td class="high">3°</td>
<td>S/O</td>
<td>8°</td>
</tr>
</tbody>
</table>
</div>
<!-- /#feature-history -->
<div id="feature-sun" class="feature feature-first">
<div class="feature-title">
<h3 class="lt">Lever du soleil/Coucher du soleil</h3>
</div>
<!-- /.feature-title -->
<img src="http://vortex.accuweather.com/adc2010/images/features/sun.jpg" width="289" height="108" alt="Sunrise / Sunset Illustration" />
<p class="time-period">
<span class="ac">Rises at</span>
<span class="start">07:00</span>
<span class="ac">with</span>
<span class="time">12:59</span>
<span class="ac">of sunlight, then sets at</span>
<span class="finish">19:59</span>
</p>
<!-- /.content -->
</div>
<!-- /.feature -->
<div id="feature-moon" class="feature">
<div class="feature-title">
<h3 class="lt">Lever de lune/Coucher de lune</h3>
<a href="http://www.accuweather.com/fr/ch/horgen/316407/astronomy-weather/316407" class="more rt">Astronomie ></a>
</div>
<!-- /.feature-title -->
<img src="http://vortex.accuweather.com/adc2010/images/features/moon.jpg" width="289" height="108" alt="Moonrise / Moonset Illustration" />
<p class="time-period">
<span class="ac">Rises at</span>
<span class="start">03:38</span>
<span class="ac">with</span>
<span class="time">9:59</span>
<span class="ac">of moolight, then sets at</span>
<span class="finish">13:37</span>
</p>
<!-- /.content -->
</div>
<!-- /.feature -->
</div>
</div>
</div>
<!-- /.panel-body-lt -->
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div>
<!-- /#panel-main -->
</div>
<!-- /.column-1 -->
<div class="column-2 column-2-world clearfix">
<div id="aadTop300" class="panel">
<div class="panel-head-lt">
<div class="panel-head-rt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div id="top-panel-body-rt-body" class="ad-lr panel-body">
<script type="text/javascript">
try {
if (typeof (aadTags) != 'undefined' && aadTags.tile2) {
document.write(aadTags.tile2);
}
} catch (e) { }
</script>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div><div class="panel">
<div class="panel-head-rt">
<div class="panel-head-lt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div class="panel-body">
<div class="panel-body-content">
<a href="http://www.accuweatherglobal.com/demo.php" target="_blank"><img src="http://vortex.accuweather.com/adc2010/images/misc/telemet.jpg" /></a>
</div>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div>
<div id="ad-links" class="panel">
<div class="panel-head-lt">
<div class="panel-head-rt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div class="panel-body">
<div class="panel-body-content" id="ad-links-content">
<script>
if (typeof (aadSponsoredLinksObj) != 'undefined' && aadSponsoredLinksObj.show_links == true) {
if (aadSponsoredLinksObj.type == 'yabuka') {
document.write('<scr' + 'ipt src="http://ad.yabuka.com/af/' + aadSponsoredLinksObj.yabuka_id + '/300x250"; type="text/javascript"></scr' + 'ipt>');
}
}
</script>
</div>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div>
<div id="aadBot300" class="panel panel-ad-mr">
<div class="panel-head-lt">
<div class="panel-head-rt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div id="bottom-panel-body" class="panel-body">
<script type="text/javascript">
try {
if (typeof (aadTags) != 'undefined' && aadTags.tile3 && !aad_IsTopAd300x600('#aadTop300')) {
document.write(aadTags.tile3);
}
} catch (e) { }
</script>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"> </div>
</div>
</div>
</div>
</div>
<!-- /.column-2 -->
<div id="offers" class="offers-extras"></div>
</div>
<!-- /#content -->
</div>
<!-- /#wrap-content -->
<div id="footer">
<div id="footer-content-wrapper">
<div class="logo-ad">
<h5 class="logo">AccuWeather.com</h5>
<div id="footer-stevem">
<script>
try {
if (typeof (aadTags) != 'undefined' && aadTags.tile4) {
document.write(aadTags.tile4);
}
} catch (e) { }
</script>
</div>
</div>
<div id="custom-goog-search">
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="color:#000000">
<div class="cse-branding-form">
<form action="http://www.google.com" id="cse-search-box" target="_blank">
<div>
<input type="hidden" name="cx" value="partner-pub-5771594739411148:7839492073" />
<input type="hidden" name="ie" value="UTF-8" />
<input id="goog-cse-input" type="text" name="q" size="100" />
<input id="goog-cse-submit" type="submit" name="sa" value="" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://vortex.accuweather.com/adc2010/images/misc/googlelogo.png" alt="Google" />
</div>
<div class="cse-branding-text">
Custom Search
</div>
</div>
</div>
<div id="footer-nav-main" class="clearfix">
<div class="first">
<ul class="footer-nav-cols">
<li class="head">Company</li>
<li><a href="http://www.accuweather.com/fr/about">About Us</a></li>
<li><a href="http://www.accuweather.com/media-kit">Advertise With Us</a></li>
<li><a href="http://accuweathercareers.silkroad.com/" target="_blank">Careers</a></li>
<li><a href="http://www.accuweather.com/fr/press">Press</a></li>
<li><a href="http://wireless.accuweather.com/" target="_blank">Mobile</a></li>
<li><a href="http://www.accuweather.com/fr/contact">Contact Us</a></li>
</ul>
</div>
<div>
<ul class="footer-nav-cols">
<li class="head">Enterprise Solutions</li>
<li><a href="http://www.accuweather.com/adc2004/pub/products_services/media.asp" target="_blank">Media</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/manufacturing" target="_blank">Manufacturing</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/retail" target="_blank">Retail</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/finance-banking" target="_blank">Finance & Banking</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/energy" target="_blank">Energy</a></li>
<li><a href="http://enterprisesolutions.accuweather.com" target="_blank">All Enterprise Solutions</a></li>
</ul>
</div>
<div>
<ul class="footer-nav-cols">
<li class="head">Subscription Services</li>
<li><a href="https://wwwl.accuweather.com/premium_login.php" target="_blank">AccuWeather Premium</a></li>
<li><a href="https://wwwl.accuweather.com/pro_login.php" target="_blank">AccuWeather Professional</a></li>
<li><a href="http://radarplus.accuweather.com/" target="_blank">AccuWeather RadarPlus</a></li>
<li><a href="http://www.accuweather.com/adcbin/public/LightningPlus_Benefits.asp" target="_blank">Lightning Plus</a></li>
</ul>
</div>
<div class="last">
<ul class="footer-nav-cols">
<li class="head">Partners</li>
<li class="img"><a href="http://www.adci.com/html/worldmap/adc_worldmap_digital_atlas.php" target="_blank"><img src="http://vortex.accuweather.com/adc2010/images/misc/adci_world_map100x42.png" /></a></li>
<!--<li><a href="" target="_blank">Mobium GPS / GeoMicro</a></li>-->
</ul>
</div>
</div>
<div id="footer-tm"> © 2013 AccuWeather, Inc. All Rights Reserved.<br />
AccuWeather.com is a registered trademark of AccuWeather, Inc.<br />
<a href="http://www.accuweather.com/fr/legal">Terms of usage</a> under which this service is provided<br />
<a href="http://www.accuweather.com/fr/privacy">Privacy Statement</a> | <a href="http://www.accuweather.com/fr/privacy#adChoices">Ad Choices</a> </div>
<div id="footer-social">
<ul>
<li class="apps"><a href="http://www.accuweather.com/fr/downloads">Apps & Downloads</a></li>
<li class="fb"><a href="http://www.facebook.com/AccuWeather" target="_blank">Like Us</a></li>
<li class="twt"><a href="http://twitter.com/BreakingWeather" target="_blank">Follow Us</a></li>
<li class="utube"><a href="http://www.youtube.com/accuweather" target="_blank">Watch Us</a></li>
</ul>
</div>
<!-- /#footer-info -->
</div>
<!-- /#footer-content-wrapper -->
</div>
<!-- /#footer -->
</div>
<!-- /#wrap -->
<script>
if (typeof (aad_getCustomSponsors) == 'function') {
aad_getCustomSponsors();
}
if (typeof (aadSponsoredLinksObj) != 'undefined' && aadSponsoredLinksObj.type == 'google' && aadSponsoredLinksObj.show_links == true) {
document.write('<scr' + 'ipt src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr' + 'ipt>');
} else if (typeof (aadSponsoredLinksObj) == 'undefined') {
jQuery('#ad-links').remove();
}
</script>
<div id="tracking-pixels"></div>
<div class="vcard">
<span class="adr">
<span class="locality">
<span class="value-title" title="Horgen" ></span>
</span>
<abbr class="region" title="Zurich">
<span class="value-title" title="ZH" ></span>
</abbr>
<abbr class="country-name" title="Suisse">
<span class="value-title" title="CH" ></span>
</abbr>
</span>
<span class="geo">
<span class="latitude">
<span class="value-title" title="47.2596" ></span>
</span>
<span class="longitude">
<span class="value-title" title="8.59756"></span>
</span>
</span>
</div>
<script type="text/javascript">
var _qoptions = { qacct: 'p-4b4gl_1fWISuU' };
if (typeof (apgPageInfoObj) != 'undefined' && apgPageInfoObj.crumb_trail) {
_qoptions.labels = apgPageInfoObj.crumb_trail.join('.');
}
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<a href="http://www.quantcast.com/p-4b4gl_1fWISuU" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-4b4gl_1fWISuU.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>
</noscript>
<script type="text/javascript">
//Begin comScore Tag
document.write(unescape("%3Cscript src='" + (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js' %3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
COMSCORE.beacon({
c1: 2,
c2: "6005068",
c3: "6005068",
//c4: "http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=2",
c5: "",
c6: "",
c15: "C67BD3C1"
});
} catch(e){}
</script>
<!--End comScore Tag -->
<noscript>
<img src="http://b.scorecardresearch.com/b?c1=&c2=6005068&c3=6005068&c15=C67BD3C1&cv=1.3&cj=1" style="display:none" width="0" height="0" alt="" />
</noscript>
<noscript>
<img style="display:none;" src="//secure-us.imrworldwide.com/cgi-bin/m?ci=us-accuweather&cg=0&cc=1&ts=noscript" width="1" height="1" alt="" />
</noscript>
<!-- Migraine/migraine -->
<script type="text/javascript"> if (!NREUMQ.f) {NREUMQ.f=function() {NREUMQ.push(["load",new Date().getTime()]);var e=document.createElement("script"); e.type="text/javascript"; e.src=(("http:"===document.location.protocol)?"http:":"https:") + "//" + "d1ros97qkrwjf5.cloudfront.net/42/eum/rum.js"; document.body.appendChild(e);if(NREUMQ.a)NREUMQ.a();};NREUMQ.a=window.onload;window.onload=NREUMQ.f;};NREUMQ.push(["nrfj","beacon-3.newrelic.com","a690b21e9f","599479","NV0GYUFWCEUDBkNQDAwXIFpHeQNCIQpZTRENVAhQQRggWRAAVFgQFhcgVEp5D1EKEQ==",0,46,new Date().getTime(),"63D4AAED981A75A4","","","",""]);</script>
</body>
</html>
Contenu de page.bak :
<!DOCTYPE html>
<html>
<head>
<title>Météo sur 25 jours pour Horgen - Prévision AccuWeather pour Zurich Suisse (FR)</title>
<script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
var apgUserInfoObj = {
country: 'CH',
city: 'Horgen',
state: 'ZH',
metro: '',
zip: '',
fcode: 'LSZU',
partner: 'accuweather',
sessionPartner: 'accuweather',
referer: '',
lang: 'fr',
langid: '3',
lat: '47.2596',
lon: '8.59756',
dma: '',
ip: '178.83.17.55',
geo_dma: '',
geo_city: 'Horgen',
geo_state: 'ZH',
geo_zip: '',
geo_country: 'CH'
};
var apgWxInfoObj = { nwsalrt: '', hdln: '5', ut: '1', cu: { wx: '7', hi: '4', wd: '', hd: '', uv: '' }, fc: [{ wx: '', hi: '', lo: '' }, { wx: '', hi: '', lo: '' }, { wx: '', hi: '', lo: '' }], ix: {arthritis:'2',asthma:'1',bbq:'2',cold:'2',flu:'',lawnmowing:'4',migraine:'1',outdoor:'3',schoolclosing:'',sinus:'2',soil:'',field:'',beach:'1',biking:'4',concert:'1',construction:'4',composting:'1',dust:'5',fishing:'3',fueleconomy:'4',golf:'3',heart:'5',hiking:'4',hvac:'3',mosq:'1',sailing:'3',running:'4',schoolbus:'5',skiing:'1',star:'4',frizz:'0',pollen:'1',uvindex:'1',hunting:'3', driving:'5', travel:'5', airq:'0', pgrass:'1', pmold:'1', pweed:'1', ptree:'1' } };
var aadCustomKeyValuePairs = {vabeachtemp:'40',vabeachwx:'35'};
// ISO: fr
// ID: 3
</script>
<meta name="keywords" content="Horgen Suisse, daily weather forecast, today's weather, tomorrow's weather" />
<link rel="canonical" href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407" />
<script type="text/javascript">
var apgPageInfoObj = { ad_site: 'world', section: 'forecast', ad_section: 'forecast', page: 'forecast-details', ad_page: 'details', page_code: '', crumb_trail: ['Forecast', 'Details', 'Day2', 'CH', 'Zurich', 'Horgen'], pageType: 'forecast', pageExt: '', adPos: { atf728: true, atfPencil: true, atf300: true, atf160: false, btf728: true, btf300: true, popunder: true, prestitial: true, links: true, ptoSkin: true} };
</script>
<script type="text/javascript">
apgWxInfoObj.fc = [{ wx: '8', hi: '10', lo: '-1' },
{ wx: '13', hi: '13', lo: '3' },
{ wx: '8', hi: '11', lo: '2'}];
</script>
<script type="text/javascript">
var acmPageLoad = { start: new Date() };
var acm_RecentLocationsCarousel= new Array();
acm_RecentLocationsCarousel.push({name:'Horgen, Suisse', daypart:'day', href:'/fr/ch/horgen/316407/weather-forecast/316407', icon:'http://vortex.accuweather.com/adc2010/images/icons-numbered/07-m.png', bg:'c', temp:'4', realfeel:'0', text:'Nuageux'});
acm_RecentLocationsCarousel.push({name:'New York, NY', daypart:'night', href:'/fr/us/new-york-ny/10017/weather-forecast/349727', icon:'http://vortex.accuweather.com/adc2010/images/icons-numbered/33-m.png', bg:'cl', temp:'1', realfeel:'-3', text:'Ciel clair'});
acm_RecentLocationsCarousel.push({name:'Miami, FL', daypart:'night', href:'/fr/us/miami-fl/33128/weather-forecast/347936', icon:'http://vortex.accuweather.com/adc2010/images/icons-numbered/35-m.png', bg:'cl', temp:'21', realfeel:'21', text:'Ciel assez nuageux'});
acm_RecentLocationsCarousel.push({name:'Los Angeles, CA', daypart:'night', href:'/fr/us/los-angeles-ca/90012/weather-forecast/347625', icon:'http://vortex.accuweather.com/adc2010/images/icons-numbered/33-m.png', bg:'cl', temp:'15', realfeel:'16', text:'Ciel clair'});
</script>
<script type="text/javascript">
var acm_InterestLayers = [
{group:'1.1', name:'Cold & Flu', code:'10302', icon: 'cold-flu', href:'http://www.accuweather.com/fr/ch/horgen/316407/cold-flu-weather/316407', alarm:[3,4,5]},
{group:'1.1', name:'Allergies', code:'10201', icon: 'allergies', href:'http://www.accuweather.com/fr/ch/horgen/316407/allergies-weather/316407', alarm:[3,4,5]},
{group:'1.1', name:'Respiratory', code:'10301', icon: 'respiratory', href:'http://www.accuweather.com/fr/ch/horgen/316407/asthma-weather/316407', alarm:[3,4,5]},
{group:'1.1', name:'Arthritis', code:'10102', icon: 'arthritis', href:'http://www.accuweather.com/fr/ch/horgen/316407/arthritis-weather/316407', alarm:[3,4,5]},
{group:'1.1', name:'Migraine', code:'10101', icon: 'migraine', href:'http://www.accuweather.com/fr/ch/horgen/316407/migraine-weather/316407', alarm:[3,4,5]},
{group:'1.1', name:'Sinus', code:'10103', icon: 'sinus', href:'http://www.accuweather.com/fr/ch/horgen/316407/sinus-weather/316407', alarm:[3,4,5]},
{group:'1.2', name:'Travel', code:'20501', icon: 'travel', href:'http://www.accuweather.com/fr/ch/horgen/316407/air-travel-weather/316407', alarm:[1]},
{group:'1.2', name:'Astronomy', code:'40501', icon: 'astro', href:'http://www.accuweather.com/fr/ch/horgen/316407/astronomy-weather/316407', alarm:[1]},
{group:'1.2', name:'Events', code:'41001', icon: 'events', href:'http://www.accuweather.com/fr/ch/horgen/316407/events-weather/316407', alarm:[1]},
{group:'2.1', name:'Driving', code:'20401', icon: 'driving', href:'http://www.accuweather.com/fr/ch/horgen/316407/driving-weather/316407', alarm:[1]},
{group:'2.1', name:'School Day', code:'30401', icon: 'school', href:'http://www.accuweather.com/fr/ch/horgen/316407/school-day-weather/316407', alarm:[1]},
{group:'2.1', name:'Hair Day', code:'30301', icon: 'hair', href:'http://www.accuweather.com/fr/ch/horgen/316407/hair-day-weather/316407', alarm:[3,4,5]},
{group:'2.1', name:'Snow Days', code:'30402', icon: 'snow', href:'http://www.accuweather.com/fr/ch/horgen/316407/snow-day-weather/316407', alarm:[4,5]},
{group:'2.2', name:'D.I.Y.', code:'30101', icon: 'diy', href:'http://www.accuweather.com/fr/ch/horgen/316407/diy-weather/316407', alarm:[1]},
{group:'2.2', name:'Lawn & Garden', code:'30201', icon: 'lawn-garden', href:'http://www.accuweather.com/fr/ch/horgen/316407/lawn-garden-weather/316407', alarm:[1]},
{group:'2.2', name:'Home Energy', code:'30501', icon: 'home-energy', href:'http://www.accuweather.com/fr/ch/horgen/316407/home-energy-weather/316407', alarm:[1]},
{group:'2.2', name:'Entertaining', code:'40102', icon: 'entertaining', href:'http://www.accuweather.com/fr/ch/horgen/316407/outdoor-entertaining-weather/316407', alarm:[1]},
{group:'3.1', name:'Golf', code:'40201', icon: 'golf', href:'http://www.accuweather.com/fr/ch/horgen/316407/golf-weather/316407', alarm:[1]},
{group:'3.1', name:'Ski', code:'40301', icon: 'ski', href:'http://www.accuweather.com/fr/ch/horgen/316407/ski-weather/316407', alarm:[1]},
{group:'3.1', name:'Hunting', code:'40601', icon: 'hunting', href:'http://www.accuweather.com/fr/ch/horgen/316407/hunting-weather/316407', alarm:[1]},
{group:'3.1', name:'Fishing', code:'40602', icon: 'fishing', href:'http://www.accuweather.com/fr/ch/horgen/316407/fishing-weather/316407', alarm:[1]},
{group:'3.1', name:'Running', code:'40901', icon: 'running', href:'http://www.accuweather.com/fr/ch/horgen/316407/running-weather/316407', alarm:[1]},
{group:'3.1', name:'Hiking', code:'40903', icon: 'hiking', href:'http://www.accuweather.com/fr/ch/horgen/316407/hiking-weather/316407', alarm:[1]},
{group:'3.1', name:'Biking', code:'40902', icon: 'biking', href:'http://www.accuweather.com/fr/ch/horgen/316407/biking-weather/316407', alarm:[1]},
{group:'3.1', name:'Sun & Sand', code:'40401', icon: 'sun-sand', href:'http://www.accuweather.com/fr/ch/horgen/316407/sun-sand-weather/316407', alarm:[1]},
{group:'3.1', name:'Sailing', code:'40402', icon: 'sailing', href:'http://www.accuweather.com/fr/ch/horgen/316407/sailing-weather/316407', alarm:[1]}];
</script>
<link rel="shortcut icon" href="http://vortex.accuweather.com/adc2010/images/favicons/accuweather_master_2.ico" />
<script type="text/javascript" src="http://vortex.accuweather.com/adc2010/javascripts/lib.min-20121129.js"></script>
<script type="text/javascript" src="http://vortex.accuweather.com/adc2010/javascripts/site.min-20130319.js"></script>
<link rel="stylesheet" href="http://vortex.accuweather.com/adc2010/stylesheets/site.min-20130319.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://vortex.accuweather.com/adc2010/stylesheets/print.css" type="text/css" media="print" />
<meta name="viewport" content="width=988">
<script type="text/javascript">
var settingsCke = "acm";
sj_SelectCountry = "Sélectionner un pays";
function acmCitySubmit(key) {
var s_value = document.getElementById('s').value;
if (s_value == "Saisir le code postal ou la ville...") {
return false;
}
if (s_value === "") {
return false;
}
//var isKeyPress = (key) ? 'EnterKey' : 'ButtonClick';
if (s_value == "Horgen, Suisse") {
_gaq.push(['_trackEvent', 'LocationBox', 'DefaultLocation', s_value.toLowerCase()]);
setTimeout(function () {
window.location.href = 'http://www.accuweather.com/fr/ch/horgen/316407/weather-forecast/316407';
}, 50);
} else {
_gaq.push(['_trackEvent', 'LocationBox', 'SearchLocation', s_value.toLowerCase()]);
setTimeout(function () {
document.forms["findcity"].submit();
}, 50);
}
}
</script>
<script type="text/javascript">
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})()
</script>
<script type="text/javascript">
(function () {
var d = new Image(1, 1);
d.onerror = d.onload = function () {
d.onerror = d.onload = null;
};
d.src = ["//secure-us.imrworldwide.com/cgi-bin/m?ci=us-accuweather&cg=0&cc=1&si=", escape(window.location.href), "&rp=", escape(document.referrer), "&ts=compact&rnd=", (new Date()).getTime()].join('');
})();
</script>
<script type="text/javascript" src="http://vortex.accuweather.com/adc2010/javascripts/ads.min-20130401.js"></script>
<link rel="stylesheet" href="http://vortex.accuweather.com/adc2010/stylesheets/pages/forecast-extended.min-20111207.css" type="text/css" media="all" />
<style type="text/css">
.i-8-s{background-image:url(http://vortex.accuweather.com/adc2010/images/icons-numbered/08-s.png)} .i-13-l{background-image:url(http://vortex.accuweather.com/adc2010/images/icons-numbered/13-l.png)} .i-7-l{background-image:url(http://vortex.accuweather.com/adc2010/images/icons-numbered/07-l.png)} .i-13-s{background-image:url(http://vortex.accuweather.com/adc2010/images/icons-numbered/13-s.png)} .i-12-s{background-image:url(http://vortex.accuweather.com/adc2010/images/icons-numbered/12-s.png)} .i-3-s{background-image:url(http://vortex.accuweather.com/adc2010/images/icons-numbered/03-s.png)}
</style>
<style type="text/css">
.flag-CH { background-image: url(http://vortex.accuweather.com/adc2010/images/flags/CH.png) !important;}
.flag-US { background-image: url(http://vortex.accuweather.com/adc2010/images/flags/US.png) !important;}
.flag-CN { background-image: url(http://vortex.accuweather.com/adc2010/images/flags/CN.png) !important;}
.day-c #header-nav {background-image: url(http://vortex.accuweather.com/adc2010/images/header-bg-day/c-header.jpg);}
</style>
<!--[if lte IE 6]>
<link rel="stylesheet" href="http://vortex.accuweather.com/adc2010/stylesheets/ie6.css" type="text/css" media="all" />
<script type="text/javascript" src="http://vortex.accuweather.com/adc2010/javascripts/ie6.js"></script>
<![endif]-->
<!--[if lt IE 7]>
<script defer type="text/javascript" src="http://vortex.accuweather.com/adc2010/javascripts/ie6_png_fix.js"></script>
<![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="http://vortex.accuweather.com/adc2010/stylesheets/ie7.min-20130319.css" type="text/css" media="all" /><![endif]-->
<!--[if IE 8]><link rel="stylesheet" href="http://vortex.accuweather.com/adc2010/stylesheets/ie8.min-20130319.css" type="text/css" media="all" /><![endif]-->
<!--[if gte IE 9]><link rel="stylesheet" href="http://vortex.accuweather.com/adc2010/stylesheets/ie9.min-20121129.css" type="text/css" media="all" /><![endif]-->
<script>
if (typeof (aadObj) == 'undefined') {
_gaq.push(['_setCustomVar', 47, 'Ads_JS_Not_Loaded', apgUserInfoObj.sessionPartner, 3]);
}
_gaq.push(['_trackPageview']);
</script>
</head>
<body id="forecast-extended" class="forecast">
<span id="dynamic-menu-container"></span>
<div id="menu-cities" class="menu menu-list add-interest-menu">
<div class="menu-head-lt">
<div class="menu-head-rt">
<div class="menu-head"></div>
</div>
</div>
<!-- /.menu-head-lt -->
<div class="menu-body-lt">
<div class="menu-body-rt">
<div class="menu-body">
<ul class="menu-items">
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/weather-forecast/316407">Horgen, Suisse</a></li>
<li><a href="http://www.accuweather.com/fr/us/new-york-ny/10017/weather-forecast/349727">New York, NY</a></li>
<li><a href="http://www.accuweather.com/fr/us/miami-fl/33128/weather-forecast/347936">Miami, FL</a></li>
<li><a href="http://www.accuweather.com/fr/us/los-angeles-ca/90012/weather-forecast/347625">Los Angeles, CA</a></li>
<li><a href="http://www.accuweather.com/fr/browse-locations">Rechercher votre lieu</a></li>
</ul>
<span class="arrow"></span><span class="arrow-border"></span>
</div>
</div>
</div>
<!-- /.menu-body-lt -->
<div class="menu-foot-lt">
<div class="menu-foot-rt">
<div class="menu-foot"></div>
</div>
</div>
<!-- /.menu-foot-lt -->
</div>
<!-- NEW! menu -->
<div id="current-city-menu" class="menu menu-list add-interest-menu">
<div class="menu-head-lt"><div class="menu-head-rt"><div class="menu-head"></div></div></div><!-- /.menu-head-lt -->
<div class="menu-body-lt">
<div class="menu-body-rt">
<div class="menu-body">
<ul>
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/hourly-weather-forecast/316407">Prévisions heure par heure</a></li>
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407">Étendu</a></li>
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/weekend-weather/316407">Week-end</a></li>
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/april-weather/316407">Perspectives mensuelles</a></li>
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/current-weather/316407">Météo actuelle</a></li>
</ul>
<span class="arrow"></span>
<span class="arrow-border"></span>
</div>
</div>
</div>
<!-- /.menu-body-lt -->
<div class="menu-foot-lt"><div class="menu-foot-rt"><div class="menu-foot"></div></div></div><!-- /.menu-foot-lt -->
</div>
<!-- #/current-city-menu -->
<div id="current-country-menu" class="menu menu-list add-interest-menu">
<div class="menu-head-lt">
<div class="menu-head-rt">
<div class="menu-head"></div>
</div>
</div>
<!-- /.menu-head-lt -->
<div class="menu-body-lt">
<div class="menu-body-rt">
<div class="menu-body">
<ul>
<li class="first"><a href="http://www.accuweather.com/fr/ch/switzerland-weather">Accueil</a></li>
</ul>
<ul>
<li class="first"><a href="http://www.accuweather.com/fr/ch/national/weather-radar">Radar et cartes</a></li>
<li><a href="http://www.accuweather.com/fr/ch/national/weather-radar">Radar</a></li>
<li><a href="http://www.accuweather.com/fr/ch/national/satellite">Satellite</a></li>
<li><a href="http://www.accuweather.com/fr/ch/national/weather-forecast-maps">Cartes des prévisions météorologiques</a></li>
</ul>
<div class="clearfix"></div>
<span class="arrow"></span> <span class="arrow-border"></span> </div>
</div>
</div>
<!-- /.menu-body-lt -->
<div class="menu-foot-lt">
<div class="menu-foot-rt">
<div class="menu-foot"></div>
</div>
</div>
<!-- /.menu-foot-lt -->
</div>
<!-- #/current-country-menu -->
<div id="menu-premium" class="menu menu-with-title">
<h3 class="menu-title"><span>Connexion</span></h3>
<div class="menu-head-lt">
<div class="menu-head-rt">
<div class="menu-head"></div>
</div>
</div>
<!-- /.menu-head-lt -->
<div class="menu-body-lt">
<div class="menu-body-rt">
<div class="menu-body">
<ul class="menu-items">
<li><a href="https://wwwl.AccuWeather.com/premium_login.php" target="_blank">AccuWeather.com Premium</a></li>
<li><a href="https://wwwl.AccuWeather.com/pro_login.php" target="_blank">AccuWeather.com Professional</a></li>
<li><a href="http://radarplus.accuweather.com/" target="_blank">AccuWeather.com RadarPlus</a></li>
<li><a href="http://www.accuweather.com/adcbin/public/LightningPlus_Benefits.asp" target="_blank">AccuWeather.com LightningPlus</a></li>
</ul>
</div>
</div>
</div>
<!-- /.menu-body-lt -->
<div class="menu-foot-lt">
<div class="menu-foot-rt">
<div class="menu-foot"></div>
</div>
</div>
<!-- /.menu-foot-lt -->
</div>
<div id="menu-settings" class="menu menu-with-title">
<h3 class="menu-title"><span></span></h3>
<div class="menu-head-lt">
<div class="menu-head-rt">
<div class="menu-head"></div>
</div>
</div>
<!-- /.menu-head-lt -->
<div class="menu-body-lt">
<div class="menu-body-rt">
<div class="menu-body">
<h4>Mes paramètres</h4>
<div class="control-wrap">
<form action="" method="post" autocomplete="false">
<label for="settings-language"></label>
<select id="settings-language" name="language" class="match-toggle" onchange="acm_updateLanguage(this.options[this.selectedIndex].value, (this.selectedIndex+1));">
<option value="en-us">English (US)</option>
<option value="es">Español</option>
<option value="fr">Français</option>
<option value="da">Dansk</option>
<option value="pt">Português</option>
<option value="nl">Nederlands</option>
<option value="no">Norsk</option>
<option value="it">Italiano</option>
<option value="de">Deutsch</option>
<option value="sv">Svenska</option>
<option value="fi">Suomi</option>
<option value="zh-hk">中文 (HK)</option>
<option value="zh-cn">中文 (SIM)</option>
<option value="zh-tw">中文 (Taiwan)</option>
<option value="es-ar">Español (Argentina)</option>
<option value="es-mx">Español (Latin America)</option>
<option value="sk">Slovenčinu</option>
<option value="ro">Romana</option>
<option value="cs">Čeština</option>
<option value="hu">Magyar</option>
<option value="pl">Polski</option>
<option value="ca">Català</option>
<option value="pt-br">Português (Brazil)</option>
<option value="hi">हिन्दी</option>
<option value="ru">русский</option>
<option value="ar">عربي</option>
<option value="el">Ελληνικά</option>
<option value="en-gb">English (UK)</option>
<option value="ja">日本語</option>
<option value="ko">한국어</option>
<option value="tr">TÜRKÇE</option>
<option value="fr-ca">Français (Canada)</option>
<option value="he">עברית</option>
<option value="sl">Slovenski</option>
<option value="uk">Українське</option>
<option value="id">Bahasa Indonesia</option>
<option value="bg">български</option>
<option value="et">Eesti keeles</option>
<option value="hr">Hrvatski</option>
<option value="kk">Қазақша</option>
<option value="lt">Lietuvių</option>
<option value="lv">Latviski</option>
<option value="mk">Македонски</option>
<option value="ms">Bahasa Melayu</option>
<option value="tl">Tagalog</option>
<option value="sr">Srpski</option>
<option value="th">ไทย</option>
<option value="vi">Tiếng Việt</option>
</select>
</div>
<!-- /.control-wrap -->
<div id="radio-toggle-temp-unit" class="radio-toggle">
<label for="settings-temp-unit-farenheit" class="first">
<span>°F</span>
<input id="settings-temp-unit-farenheit" name="temp_unit" type="radio" value="farenheit" onclick="acm_updateUnits('0');"/>
</label>
<label for="settings-temp-unit-celsius" class="last">
<span>°C</span>
<input id="settings-temp-unit-celsius" name="temp_unit" type="radio" checked="checked" value="celsius" onclick="acm_updateUnits('1');"/>
</label>
</div>
<!-- /.radio-toggle -->
</form>
</div>
</div>
</div>
<!-- /.menu-body-lt -->
<div class="menu-foot-lt">
<div class="menu-foot-rt">
<div class="menu-foot"></div>
</div>
</div>
<!-- /.menu-foot-lt -->
</div>
<!-- /#settings-menu -->
<div id="menu-country" class="menu menu-with-title">
<h3 class="menu-title"><span><span class="flag-CH">Suisse</span></span></h3>
<div class="menu-head-lt">
<div class="menu-head-rt">
<div class="menu-head"></div>
</div>
</div>
<!-- /.menu-head-lt -->
<div class="menu-body-lt">
<div class="menu-body-rt">
<div class="menu-body">
<h4>Derniers pays consultés</h4>
<ul class="menu-items">
<li><a href="http://www.accuweather.com/fr/ch/switzerland-weather" class="flag-CH">Suisse</a></li>
<li><a href="http://www.accuweather.com/fr/us/united-states-weather" class="flag-US">United States</a></li>
<li><a href="http://www.accuweather.com/fr/cn/china-weather" class="flag-CN">China</a></li>
</ul>
<a href="#country-selector" id="bt-more-countries">Plus de pays</a>
</div>
</div>
</div>
<!-- /.menu-body-lt -->
<div class="menu-foot-lt">
<div class="menu-foot-rt">
<div class="menu-foot"></div>
</div>
</div>
<!-- /.menu-foot-lt -->
</div>
<!-- /#menu-country -->
<div id="wrap" class="spring h-r">
<div id="wrap-header-nav" class="day day-c">
<div id="header-nav">
<div id="header">
<div id="header-davek">
<script type="text/javascript">
try {
if (typeof (aadTags) != 'undefined' && aadTags.tile1) {
document.write(aadTags.tile1);
}
} catch (e) { }
</script>
</div>
<!-- /#header-ad -->
<style type="text/css">
#header-nav{overflow:visible;position:static;height:auto;}
#header-davek{margin-top:0px;padding-top:4px;}
</style>
<div id="wrap-country-settings">
<div id="country-settings">
<a href="#menu-country" id="bt-menu-country" class="menu-arrow tmenu { el:'#menu-country', affix: { from: 'nw', to: 'nw', offset: [ -6, -8 ] } }"><strong><span class="ir flag-CH">Suisse</span></strong></a>
<ul id="country-breadcrumbs">
<li class="first"><a href="http://www.accuweather.com/fr/world-weather">Monde</a></li>
<li><a href="http://www.accuweather.com/fr/europe-weather">Europe</a></li>
<li><a href="http://www.accuweather.com/fr/ch/switzerland-weather">Suisse</a></li>
<li><a href="http://www.accuweather.com/fr/ch/zh/zurich-weather">Zurich</a></li>
<li class="last"><a href="http://www.accuweather.com/fr/ch/horgen/316407/weather-forecast/316407">Horgen</a></li>
</ul>
<!-- /#country-breadcrumbs -->
</div>
<!-- /#nav-country -->
</div>
<!-- /#wrap-nav-country -->
<div id="country-selector" class="strong panel">
<div class="panel-head-lt"><div class="panel-head-rt"><div class="panel-head"></div></div></div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div class="panel-body">
<div class="title">
<button class="bt bt-panel-close">Close</button>
<div id="country-selector-recent">
<h3>Derniers pays consultés</h3>
<ul>
<li class="first"><a href="http://www.accuweather.com/fr/ch/switzerland-weather" class="flag-CH">Suisse</a></li>
<li class=""><a href="http://www.accuweather.com/fr/us/united-states-weather" class="flag-US">United States</a></li>
<li class=""><a href="http://www.accuweather.com/fr/cn/china-weather" class="flag-CN">China</a></li>
</ul>
</div>
<!-- /#country-selector-recent -->
</div>
<!-- /.title -->
<div id="country-selector-region" class="panel-content">
<div class="title">
<h3>Sélectionner une région</h3>
</div>
<div class="content">
<ul id="country-selector-region-list" class="menu-items">
<li><a class="link-region" id="link-region-afr" href="#region-afr">L’Afrique</a></li>
<li><a class="link-region" id="link-region-ant" href="#region-ant">Antarctique</a></li>
<li><a class="link-region" id="link-region-arc" href="#region-arc">Arctique</a></li>
<li><a class="link-region" id="link-region-asi" href="#region-asi">Asie</a></li>
<li><a class="link-region" id="link-region-cac" href="#region-cac">Amérique centrale</a></li>
<li><a class="link-region" id="link-region-eur" href="#region-eur">Europe</a></li>
<li><a class="link-region" id="link-region-mea" href="#region-mea">Moyen-Orient</a></li>
<li><a class="link-region" id="link-region-nam" href="#region-nam">Amérique du Nord</a></li>
<li><a class="link-region" id="link-region-ocn" href="#region-ocn">Océanie</a></li>
<li><a class="link-region" id="link-region-sam" href="#region-sam">Amérique du Sud</a></li>
</ul>
<!-- /#country-selector-region-list -->
<div id="country-selector-region-map">
</div>
<!-- /#country-selector-region-map -->
</div>
<!-- /.content -->
</div>
<!-- /#country-selector-region -->
<div id="country-selector-country" class="panel-content">
<div id="region-afr" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /africa-->
<div id="region-eur" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /europe-->
<div id="region-nam" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /north america-->
<div id="region-sam" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /south america-->
<div id="region-cac" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /central america-->
<div id="region-ocn" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /oceania-->
<div id="region-mea" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /middle east-->
<div id="region-ant" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /antarctica-->
<div id="region-arc" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /arctic-->
<div id="region-asi" class="region">
<div class="title"> <a href="#country-selector-region" class="world"><span>Monde</span></a>
<h3></h3>
</div>
<div class="items"> </div>
</div>
<!-- /asia-->
</div>
<!-- /#country-selector-country -->
<div id="country-selector-notes">
<p class="first">
Remarque : sélectionner d'abord une région pour trouver un pays.
</p>
<p></p>
</div>
<!-- /#country-selector-notes -->
</div>
</div>
</div>
<!-- /.panel-body-lt -->
<div class="panel-foot-lt"><div class="panel-foot-rt"><div class="panel-foot"></div></div></div>
</div>
<!-- / #country-selector -->
<div id="header-logo-search" class="clearfix">
<div id="header-logo" class="ir"><span>Horgen Daily Weather</span></div>
<label for="s"></label>
<div id="wrap-s-rt">
<div id="wrap-s-lt">
<div id="wrap-s" class="tmenu { affix: {offset: [ 0, 7 ], to: 'sw', from: 'nw'},el: '#menu-cities' }">
<form id="findcity" action="http://www.accuweather.com/fr/search-locations" method="post">
<input onkeypress="acmCheckEnter(event);" id="s" name="s" type="text" autocomplete="off"
class="text hint { help: 'Horgen, Suisse',className:'hintedLoc' }" />
<input type="hidden" name="rn" value="3day" />
<button onclick="acmCitySubmit()" type="button" class="bt"><img src="http://vortex.accuweather.com/adc2010/images/go-btn.png"/></button>
</form>
<script type="text/javascript">
(function ($) {
$('input.hint').hint();
})(jQuery);
</script>
</div>
</div>
</div>
<!-- /#wrap-s-rt -->
<!-- NEW! Removed widgets to accommodate login -->
<!-- NEW! Login menu -->
<a id="bt-menu-login" class="tmenu { el:'#menu-premium', affix: { to: 'ne', from: 'ne', offset: [ 0,-6 ] } }"><span class="menu-arrow"><span>Connexion</span></span></a>
<!-- NEW! moving menu settings here, which affects css -->
<a id="bt-menu-settings" class="tmenu { el:'#menu-settings', affix: { from: 'ne', to: 'ne', offset: [ 0,-6 ] } }"><span class="menu-arrow"><span> </span>, °C</span></a>
</div>
<!-- /#header-logo-search -->
</div>
<!-- /#header -->
</div>
<!-- /#header-nav -->
</div>
<!-- /#wrap-header-nav -->
<div id="wrap-content">
<div id="content">
<!-- NEW! adding add-interest tab -->
<div id="nav-main-add-interests" class="clearfix">
<div id="nav-main-background"></div>
<ul id="nav-current-location" class="sub-nav">
<li id="current-country-tab" class=" tmenu { affix: {offset: [ 0, 5 ], to: 'sw', from: 'nw' }, el: '#current-country-menu' }">
<a href="http://www.accuweather.com/fr/ch/switzerland-weather" class="tab">
<span class="current-country">Suisse</span>
<span class="title">Météo</span>
</a>
<span class="bottom-line"></span>
</li>
<li id="current-city-tab" class="selected tmenu { affix: {offset: [ 0, 5 ], to: 'sw', from: 'nw'}, el: '#current-city-menu' }">
<a href="http://www.accuweather.com/fr/ch/horgen/316407/weather-forecast/316407" class="tab">
<span class="current-city"><h1>Horgen, CH</h1></span>
<span class="title"><h2>Météo</h2></span>
<span class="divider"></span>
<span class="more-info-arrow"></span>
<div class="more-info-content">
</div><!-- end more-info-content -->
</a>
</li>
<li id="locations-dropdown-tab" class="location-menu { el: '#locations-dropdown-menu' }">
<a href="#" class="tab">
<span class="arrow"></span>
<span class="divider"></span>
</a>
<span class="cover-line"></span>
</li>
</ul><!-- end nav-current-location -->
<!-- New! locations dropdown menu -->
<div id="locations-dropdown-menu" class="menu">
<div class="outer-border">
<div id="locations-carousel" class="locations-carousel">
<button class="carousel-button carousel-left disabled">
<span class="inner-button">
<span class="arrow"></span>
</span><!-- end inner-button-->
</button>
<button class="carousel-button carousel-right">
<span class="inner-button">
<span class="arrow"></span>
</span><!-- end inner-button-->
</button>
<div class="outer-carousel">
<div class="inner-carousel clearfix">
<div class="my-recent-locations clearfix">
<h3>Derniers lieux consultés</h3>
<ul>
</ul>
</div><!-- end my recent locations -->
</div><!-- end inner-carousel-->
</div><!-- end outer-carousel -->
</div><!-- end carousel -->
</div><!-- outer-border -->
</div><!-- end locations-dropdown-menu -->
</div><!-- end nav-main-add-interests-->
<script type="text/javascript">
acm.setupMenus();
</script>
<div class="subnav-head-tabs-rt clearfix">
<div class="subnav-head-tabs-lt clearfix">
<ul class="subnav-tab-buttons">
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/weather-forecast/316407"><span>Maintenant</span></a></li>
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/weekend-weather/316407"><span>Week-end</span></a></li>
<li class="current"><a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407"><span><strong>Étendu</strong></span></a>
<div class="nub"></div>
</li>
<li><a href="http://www.accuweather.com/fr/ch/horgen/316407/april-weather/316407"><span>Mois</span></a></li>
<li class="last"><a href="http://www.accuweather.com/fr/ch/horgen/316407/weather-radar/316407"><span>Radar</span></a></li>
</ul>
</div>
</div>
<!-- /.panel-head-rt -->
<div class="column-1 clearfix">
<div id="panel-main" class="strong panel">
<!-- NOTE: The left and right ordering is swapped for this one, since it's a two element stretch! -->
<div class="panel-head-rt">
<div class="panel-head-lt">
</div>
</div>
<!-- /.panel-head-rt -->
<div class="panel-body-lt">
<div class="panel-body-rt">
<div class="panel-body">
<div class="feed-controls clearfix">
<span class="lt">jours 1-5 sur 25 | <a href="http://www.accuweather.com/fr/ch/horgen/316407/month/316407?view=table">Tous les 25 jours</a></span>
<ul class="g g-nav rt">
<li class="first"><a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=6">5 suivants ></a></li>
</ul>
</div>
<!-- /.feed-controls -->
<div id="feed-tabs">
<a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=6" class="arrow-right">Next 5 Days<span></span></a>
<ul>
<li class="day hv first cl { href: 'http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=1' }">
<div class="frame"></div>
<div class="bg bg-f">
<h3><a href="#">Auj</a></h3>
<h4>avr. 3</h4>
<div class="icon i-8-s "></div>
<div class="info">
<span class="cond">Nuages bas</span>
<strong class="temp">10<span>°</span></strong><span class="low"><span>Mn</span> -1<span>°</span></span>
</div>
<!-- /.info -->
<a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=1" class="bt-more">Plus</a>
</div>
<!-- /.bg -->
</li>
<li class="day current cl { href: 'http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=2' }">
<div class="frame"></div>
<div class="bg bg-c">
<h3><a href="#">jeu.</a></h3>
<h4>avr. 4</h4>
<div class="icon i-13-s "></div>
<div class="info">
<span class="cond">Quelques averses</span>
<strong class="temp">13<span>°</span></strong><span class="low"><span>Mn</span> 3<span>°</span></span>
</div>
<!-- /.info -->
</div>
<!-- /.bg -->
</li>
<li class="day hv cl { href: 'http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=3' }">
<div class="frame"></div>
<div class="bg bg-f">
<h3><a href="#">ven.</a></h3>
<h4>avr. 5</h4>
<div class="icon i-8-s "></div>
<div class="info">
<span class="cond">Nuages bas</span>
<strong class="temp">11<span>°</span></strong><span class="low"><span>Mn</span> 2<span>°</span></span>
</div>
<!-- /.info -->
<a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=3" class="bt-more">Plus</a>
</div>
<!-- /.bg -->
</li>
<li class="day hv cl { href: 'http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=4' }">
<div class="frame"></div>
<div class="bg bg-c">
<h3><a href="#">sam.</a></h3>
<h4>avr. 6</h4>
<div class="icon i-12-s "></div>
<div class="info">
<span class="cond">Pluie et bruine l'après-midi</span>
<strong class="temp">9<span>°</span></strong><span class="low"><span>Mn</span> -1<span>°</span></span>
</div>
<!-- /.info -->
<a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=4" class="bt-more">Plus</a>
</div>
<!-- /.bg -->
</li>
<li class="day hv last cl { href: 'http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=5' }">
<div class="frame"></div>
<div class="bg bg-su">
<h3><a href="#">dim.</a></h3>
<h4>avr. 7</h4>
<div class="icon i-3-s "></div>
<div class="info">
<span class="cond">En partie ensoleillé et frais</span>
<strong class="temp">9<span>°</span></strong><span class="low"><span>Mn</span> -2<span>°</span></span>
</div>
<!-- /.info -->
<a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=5" class="bt-more">Plus</a>
</div>
<!-- /.bg -->
</li>
</ul>
</div>
<!-- /.feed-tabs -->
<div id="details">
<ul id="detail-tab-buttons" class="detail-tab-buttons">
<li class="first current { target: '#detail-day-night' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=2"><span>Journée</span></a>
<div class="nub"></div>
</li>
<li class="{ target: '#detail-hourly' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/hourly-weather-forecast/316407?hour=33"><span>Heure par heure</span></a></li>
<li class="{ target: '#detail-morning' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/morning-weather-forecast/316407?day=2"><span>Matinée</span></a></li>
<li class="{ target: '#detail-afternoon' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/afternoon-weather-forecast/316407?day=2"><span>Après-midi</span></a></li>
<li class="{ target: '#detail-evening' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/evening-weather-forecast/316407?day=2"><span>Soirée</span></a></li>
<li class="last { target: '#detail-overnight' }"><a href="http://www.accuweather.com/fr/ch/horgen/316407/overnight-weather-forecast/316407?day=2"><span>Nuit</span></a></li>
</ul>
<!-- /#detail-tab-buttons.detail-tab-buttons -->
<div id="detail-day-night" class="detail-tab-panel">
<div class="day">
<div class="bg bg-c">
<div class="icon i-13-l"></div>
<div class="info"> <span class="cond"></span> <span class="hi">Mx </span><span class="temp">13<span>°</span></span>
<span class="realfeel">RealFeel® 15°</span>
<span class="realfeel">Précipitations 62%</span>
</div>
<!-- /.info -->
<div class="nub"></div>
</div>
<!-- /.bg -->
<div class="content">
<h4>Jour</h4>
<div class="desc">
<div class="rt" style="text-align:center;">
<div class="wind-box-sm">
<div id="wind-arm-day" class="wind-arm"></div>
<p class="n">N</p>
<p class="e">E</p>
<p class="s">S</p>
<p class="w">W</p>
<script type="text/javascript">
(function () {
var d = 'NE';
var s = '6km/h';
$('#wind-arm-day').flash({ 'wmode': 'transparent', 'allowScriptAccess': 'always', 'src': 'http://vortex.accuweather.com/adc2010/flash/wind-arm-small.swf?speed=' + s + '&direction=' + d.toLowerCase() + '&units=kph', 'width': '84', 'height': '76' });
if (typeof (acm_hasFlash) != 'undefined' && !acm_hasFlash) {
$('#wind-arm-day').html('<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/arrow-sm-' + d + '.png" />');
}
})();
</script>
</div>
<!--
<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/sm_NE.png" width="84" height="76" alt="Wind" />
-->
<ul class="stats">
<li>
<strong style="">NE 6 km/h</strong>
</li>
<li style="margin-top:-2px;">
Rafales de vent:<strong style=""> 13 km/h</strong>
</li>
</ul>
</div>
<p>Très nuageux et peu de soleil avec quelques averses</p>
</div>
<!-- /.desc -->
<ul class="stats">
<li>Indice UV maximal: <strong>4</strong> (Modérée)</li>
<li>Orages: <strong style="">20%</strong></li>
<li>Précipitations: <strong>3 mm</strong></li>
<li>Pluie: <strong style="">3 mm</strong></li>
<li>Neige: <strong style="">0 cm</strong></li>
<li>Verglas: <strong style="">0 mm</strong></li>
</ul>
<!-- /.stats -->
</div>
<!-- /.content -->
</div>
<!-- /.day -->
<div class="night">
<div class="bg bg-s">
<div class="icon i-7-l"></div>
<div class="info"> <span class="cond"></span> <span class="lo">Mn </span><span class="temp">3<span>°</span></span>
<span class="realfeel">RealFeel® 3°</span>
<span class="realfeel">Précipitations 25%</span>
</div>
<!-- /.info -->
<div class="nub"></div>
</div>
<!-- /.bg -->
<div class="content">
<h4>Nuit</h4>
<div class="desc">
<div class="rt" style="text-align:center;">
<div class="wind-box-sm">
<div id="wind-arm-night" class="wind-arm"></div>
<p class="n">N</p>
<p class="e">E</p>
<p class="s">S</p>
<p class="w">W</p>
<script type="text/javascript">
(function () {
var d = 'NE';
var s = '3km/h';
$('#wind-arm-night').flash({ 'wmode': 'transparent', 'allowScriptAccess': 'always', 'src': 'http://vortex.accuweather.com/adc2010/flash/wind-arm-small.swf?speed=' + s + '&direction=' + d.toLowerCase() + '&units=kph', 'width': '84', 'height': '76' });
if (typeof (acm_hasFlash) != 'undefined' && !acm_hasFlash) {
$('#wind-arm-night').html('<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/arrow-sm-' + d + '.png" />');
}
})();
</script>
</div>
<!--
<img src="http://vortex.accuweather.com/adc2010/images/icons-wind/sm_NE.png" width="84" height="76" alt="Wind" />
-->
<ul class="stats">
<li>
<strong style="">NE 3 km/h</strong>
</li>
<li style="margin-top:-2px;">
Rafales de vent:<strong style=""> 10 km/h</strong>
</li>
</ul>
</div>
<p>Nuageux</p>
</div>
<!-- /.desc -->
<ul class="stats">
<li>Indice UV maximal: <strong>S/O</strong></li>
<li>Orages: <strong style="">20%</strong></li>
<li>Précipitations: <strong>0 mm</strong></li>
<li>Pluie: <strong style="">0 mm</strong></li>
<li>Neige: <strong style="">0 cm</strong></li>
<li>Verglas: <strong style="">0 mm</strong></li>
</ul>
<!-- /.stats -->
</div>
<!-- /.content -->
</div>
<!-- /.night -->
</div>
<!-- /.detail-tab-panel -->
</div>
<!-- /#details -->
<script>acm.setupLifestylePromoLinks(jQuery);</script>
<div id="feature-history">
<div class="clearfix">
<h3 class="lt">Historique des températures - 04/04/2013</h3>
<a href="http://www.accuweather.com/fr/ch/horgen/316407/month/316407?view=table" class="more rt">Autres données météo historiques ></a>
<!-- /.rt -->
</div>
<table cellspacing="0" class="stats">
<thead>
<tr>
<th> </th>
<th>Aujourd'hui</th>
<th>Normale</th>
<th>Record</th>
<th>04/04/2012</th>
</tr>
</thead>
<tbody>
<tr class="hi">
<th scope="row">Élevé</th>
<td>13°</td>
<td class="high">13°</td>
<td>S/O</td>
<td>13°</td>
</tr>
<tr class="last lo">
<th scope="row">Faible</th>
<td>3°</td>
<td class="high">3°</td>
<td>S/O</td>
<td>8°</td>
</tr>
</tbody>
</table>
</div>
<!-- /#feature-history -->
<div id="feature-sun" class="feature feature-first">
<div class="feature-title">
<h3 class="lt">Lever du soleil/Coucher du soleil</h3>
</div>
<!-- /.feature-title -->
<img src="http://vortex.accuweather.com/adc2010/images/features/sun.jpg" width="289" height="108" alt="Sunrise / Sunset Illustration" />
<p class="time-period">
<span class="ac">Rises at</span>
<span class="start">07:00</span>
<span class="ac">with</span>
<span class="time">12:59</span>
<span class="ac">of sunlight, then sets at</span>
<span class="finish">19:59</span>
</p>
<!-- /.content -->
</div>
<!-- /.feature -->
<div id="feature-moon" class="feature">
<div class="feature-title">
<h3 class="lt">Lever de lune/Coucher de lune</h3>
<a href="http://www.accuweather.com/fr/ch/horgen/316407/astronomy-weather/316407" class="more rt">Astronomie ></a>
</div>
<!-- /.feature-title -->
<img src="http://vortex.accuweather.com/adc2010/images/features/moon.jpg" width="289" height="108" alt="Moonrise / Moonset Illustration" />
<p class="time-period">
<span class="ac">Rises at</span>
<span class="start">03:38</span>
<span class="ac">with</span>
<span class="time">9:59</span>
<span class="ac">of moolight, then sets at</span>
<span class="finish">13:37</span>
</p>
<!-- /.content -->
</div>
<!-- /.feature -->
</div>
</div>
</div>
<!-- /.panel-body-lt -->
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div>
<!-- /#panel-main -->
</div>
<!-- /.column-1 -->
<div class="column-2 column-2-world clearfix">
<div id="aadTop300" class="panel">
<div class="panel-head-lt">
<div class="panel-head-rt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div id="top-panel-body-rt-body" class="ad-lr panel-body">
<script type="text/javascript">
try {
if (typeof (aadTags) != 'undefined' && aadTags.tile2) {
document.write(aadTags.tile2);
}
} catch (e) { }
</script>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div><div class="panel">
<div class="panel-head-rt">
<div class="panel-head-lt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div class="panel-body">
<div class="panel-body-content">
<a href="http://www.accuweatherglobal.com/demo.php" target="_blank"><img src="http://vortex.accuweather.com/adc2010/images/misc/telemet.jpg" /></a>
</div>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div>
<div id="ad-links" class="panel">
<div class="panel-head-lt">
<div class="panel-head-rt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div class="panel-body">
<div class="panel-body-content" id="ad-links-content">
<script>
if (typeof (aadSponsoredLinksObj) != 'undefined' && aadSponsoredLinksObj.show_links == true) {
if (aadSponsoredLinksObj.type == 'yabuka') {
document.write('<scr' + 'ipt src="http://ad.yabuka.com/af/' + aadSponsoredLinksObj.yabuka_id + '/300x250"; type="text/javascript"></scr' + 'ipt>');
}
}
</script>
</div>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"></div>
</div>
</div>
</div>
<div id="aadBot300" class="panel panel-ad-mr">
<div class="panel-head-lt">
<div class="panel-head-rt">
<div class="panel-head"></div>
</div>
</div>
<div class="panel-body-lt">
<div class="panel-body-rt">
<div id="bottom-panel-body" class="panel-body">
<script type="text/javascript">
try {
if (typeof (aadTags) != 'undefined' && aadTags.tile3 && !aad_IsTopAd300x600('#aadTop300')) {
document.write(aadTags.tile3);
}
} catch (e) { }
</script>
</div>
</div>
</div>
<div class="panel-foot-lt">
<div class="panel-foot-rt">
<div class="panel-foot"> </div>
</div>
</div>
</div>
</div>
<!-- /.column-2 -->
<div id="offers" class="offers-extras"></div>
</div>
<!-- /#content -->
</div>
<!-- /#wrap-content -->
<div id="footer">
<div id="footer-content-wrapper">
<div class="logo-ad">
<h5 class="logo">AccuWeather.com</h5>
<div id="footer-stevem">
<script>
try {
if (typeof (aadTags) != 'undefined' && aadTags.tile4) {
document.write(aadTags.tile4);
}
} catch (e) { }
</script>
</div>
</div>
<div id="custom-goog-search">
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="color:#000000">
<div class="cse-branding-form">
<form action="http://www.google.com" id="cse-search-box" target="_blank">
<div>
<input type="hidden" name="cx" value="partner-pub-5771594739411148:7839492073" />
<input type="hidden" name="ie" value="UTF-8" />
<input id="goog-cse-input" type="text" name="q" size="100" />
<input id="goog-cse-submit" type="submit" name="sa" value="" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://vortex.accuweather.com/adc2010/images/misc/googlelogo.png" alt="Google" />
</div>
<div class="cse-branding-text">
Custom Search
</div>
</div>
</div>
<div id="footer-nav-main" class="clearfix">
<div class="first">
<ul class="footer-nav-cols">
<li class="head">Company</li>
<li><a href="http://www.accuweather.com/fr/about">About Us</a></li>
<li><a href="http://www.accuweather.com/media-kit">Advertise With Us</a></li>
<li><a href="http://accuweathercareers.silkroad.com/" target="_blank">Careers</a></li>
<li><a href="http://www.accuweather.com/fr/press">Press</a></li>
<li><a href="http://wireless.accuweather.com/" target="_blank">Mobile</a></li>
<li><a href="http://www.accuweather.com/fr/contact">Contact Us</a></li>
</ul>
</div>
<div>
<ul class="footer-nav-cols">
<li class="head">Enterprise Solutions</li>
<li><a href="http://www.accuweather.com/adc2004/pub/products_services/media.asp" target="_blank">Media</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/manufacturing" target="_blank">Manufacturing</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/retail" target="_blank">Retail</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/finance-banking" target="_blank">Finance & Banking</a></li>
<li><a href="http://enterprisesolutions.accuweather.com/energy" target="_blank">Energy</a></li>
<li><a href="http://enterprisesolutions.accuweather.com" target="_blank">All Enterprise Solutions</a></li>
</ul>
</div>
<div>
<ul class="footer-nav-cols">
<li class="head">Subscription Services</li>
<li><a href="https://wwwl.accuweather.com/premium_login.php" target="_blank">AccuWeather Premium</a></li>
<li><a href="https://wwwl.accuweather.com/pro_login.php" target="_blank">AccuWeather Professional</a></li>
<li><a href="http://radarplus.accuweather.com/" target="_blank">AccuWeather RadarPlus</a></li>
<li><a href="http://www.accuweather.com/adcbin/public/LightningPlus_Benefits.asp" target="_blank">Lightning Plus</a></li>
</ul>
</div>
<div class="last">
<ul class="footer-nav-cols">
<li class="head">Partners</li>
<li class="img"><a href="http://www.adci.com/html/worldmap/adc_worldmap_digital_atlas.php" target="_blank"><img src="http://vortex.accuweather.com/adc2010/images/misc/adci_world_map100x42.png" /></a></li>
<!--<li><a href="" target="_blank">Mobium GPS / GeoMicro</a></li>-->
</ul>
</div>
</div>
<div id="footer-tm"> © 2013 AccuWeather, Inc. All Rights Reserved.<br />
AccuWeather.com is a registered trademark of AccuWeather, Inc.<br />
<a href="http://www.accuweather.com/fr/legal">Terms of usage</a> under which this service is provided<br />
<a href="http://www.accuweather.com/fr/privacy">Privacy Statement</a> | <a href="http://www.accuweather.com/fr/privacy#adChoices">Ad Choices</a> </div>
<div id="footer-social">
<ul>
<li class="apps"><a href="http://www.accuweather.com/fr/downloads">Apps & Downloads</a></li>
<li class="fb"><a href="http://www.facebook.com/AccuWeather" target="_blank">Like Us</a></li>
<li class="twt"><a href="http://twitter.com/BreakingWeather" target="_blank">Follow Us</a></li>
<li class="utube"><a href="http://www.youtube.com/accuweather" target="_blank">Watch Us</a></li>
</ul>
</div>
<!-- /#footer-info -->
</div>
<!-- /#footer-content-wrapper -->
</div>
<!-- /#footer -->
</div>
<!-- /#wrap -->
<script>
if (typeof (aad_getCustomSponsors) == 'function') {
aad_getCustomSponsors();
}
if (typeof (aadSponsoredLinksObj) != 'undefined' && aadSponsoredLinksObj.type == 'google' && aadSponsoredLinksObj.show_links == true) {
document.write('<scr' + 'ipt src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr' + 'ipt>');
} else if (typeof (aadSponsoredLinksObj) == 'undefined') {
jQuery('#ad-links').remove();
}
</script>
<div id="tracking-pixels"></div>
<div class="vcard">
<span class="adr">
<span class="locality">
<span class="value-title" title="Horgen" ></span>
</span>
<abbr class="region" title="Zurich">
<span class="value-title" title="ZH" ></span>
</abbr>
<abbr class="country-name" title="Suisse">
<span class="value-title" title="CH" ></span>
</abbr>
</span>
<span class="geo">
<span class="latitude">
<span class="value-title" title="47.2596" ></span>
</span>
<span class="longitude">
<span class="value-title" title="8.59756"></span>
</span>
</span>
</div>
<script type="text/javascript">
var _qoptions = { qacct: 'p-4b4gl_1fWISuU' };
if (typeof (apgPageInfoObj) != 'undefined' && apgPageInfoObj.crumb_trail) {
_qoptions.labels = apgPageInfoObj.crumb_trail.join('.');
}
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<a href="http://www.quantcast.com/p-4b4gl_1fWISuU" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-4b4gl_1fWISuU.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>
</noscript>
<script type="text/javascript">
//Begin comScore Tag
document.write(unescape("%3Cscript src='" + (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js' %3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
COMSCORE.beacon({
c1: 2,
c2: "6005068",
c3: "6005068",
//c4: "http://www.accuweather.com/fr/ch/horgen/316407/daily-weather-forecast/316407?day=2",
c5: "",
c6: "",
c15: "C67BD3C1"
});
} catch(e){}
</script>
<!--End comScore Tag -->
<noscript>
<img src="http://b.scorecardresearch.com/b?c1=&c2=6005068&c3=6005068&c15=C67BD3C1&cv=1.3&cj=1" style="display:none" width="0" height="0" alt="" />
</noscript>
<noscript>
<img style="display:none;" src="//secure-us.imrworldwide.com/cgi-bin/m?ci=us-accuweather&cg=0&cc=1&ts=noscript" width="1" height="1" alt="" />
</noscript>
<!-- Migraine/migraine -->
<script type="text/javascript"> if (!NREUMQ.f) {NREUMQ.f=function() {NREUMQ.push(["load",new Date().getTime()]);var e=document.createElement("script"); e.type="text/javascript"; e.src=(("http:"===document.location.protocol)?"http:":"https:") + "//" + "d1ros97qkrwjf5.cloudfront.net/42/eum/rum.js"; document.body.appendChild(e);if(NREUMQ.a)NREUMQ.a();};NREUMQ.a=window.onload;window.onload=NREUMQ.f;};NREUMQ.push(["nrfj","beacon-3.newrelic.com","a690b21e9f","599479","NV0GYUFWCEUDBkNQDAwXIFpHeQNCIQpZTRENVAhQQRggWRAAVFgQFhcgVEp5D1EKEQ==",0,46,new Date().getTime(),"63D4AAED981A75A4","","","",""]);</script>
</body>
</html>
Merci
Hors ligne