Shop Mobile More Submit  Join Login
Flat-Weather for Conky by pabloferz Flat-Weather for Conky by pabloferz
This is a Conky package to display the current weather conditions (not forecasts). Depends on bc and imagemagick, so make sure you have them both installed. You can now use it as a theme for the Conky Manager or as a standalone Conky instance.

Please read the README and CONFIGURATION files for more information and feel free to ask if you have any doubt.

Weather icons: plain weather icons by MerlinTheRed

CHANGELOG (02/17/2014)
* New icon theme.
* Right alignment support added.
* Adapted to work either as a standalone Conky instance or with Conky Manager.
* Added new option to move the text horizontally.

CHANGELOG (03/28/2013)
* Fixes issues due to the weather.com site changes.
* Support for more than 20 languages.
* There is no more need of ping to check internet connection status.

CHANGELOG (02/15/2012)
* There is no need to have a Weather Channel account anymore.
* Spanish and French support added.
* A few customization options were added.
* Some icons were modified.

CHANGELOG (05/04/2012)
* Script and conkyrc files modified to work in all conky versions from 1.8.0 to 1.9.0
Add a Comment:
 
:iconefest:
efest Featured By Owner May 17, 2015
I had to reinstall ubuntu!
Now I can not go back to it to work, the flat-weather conky!
When I write in conky terminal there is no picture over time.
www.youtube.com/watch?v=2-SRfR…
Did you could help me!
Reply
:iconarturoj60:
arturoj60 Featured By Owner Edited Mar 24, 2015
Hola, soy Rodrigo y son nuevo en esto

Estoy usando tu conky pero tengo un problema, no esta actualizando el iconito, la primera vez que lo puse tomo ese iconito y ya no cambio, ¿alguna sugerencia?
Reply
:iconarturoj60:
arturoj60 Featured By Owner Mar 24, 2015
Hola, ya ya funciono, muchas gracias, gran conky =)
Reply
:icongaetanomastellone:
gaetanomastellone Featured By Owner Jul 9, 2014
Good evening I've this problem with Flat-Weather

ninonbnino:~$ conky -c ~/.conky/GMsx/Flat-Weather/meteo
Conky: desktop window (2800006) is subwindow of root window (81)
Conky: window type - normal
Conky: drawing to created window (0x4400002)
Conky: drawing to double buffer
--2014-07-09 17:57:33--  uk.weather.com/weather/today-I…
Resolving uk.weather.com (uk.weather.com)... 96.8.82.140
Connecting to uk.weather.com (uk.weather.com)|96.8.82.140|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: '/tmp/weather-ITCM1546'

    [    <=>                                ] 79,516       128KB/s   in 0.6s  

2014-07-09 17:57:34 (128 KB/s) - '/tmp/weather-ITCM1546' saved [79516]

convert.im6: unable to open image `/home/nino/.conky/GMsx/Flat-Weather/Flat/.png': File o directory non esistente @ error/blob.c/OpenBlob/2638.
convert.im6: no decode delegate for this image format `/home/nino/.conky/GMsx/Flat-Weather/Flat/.png' @ error/constitute.c/ReadImage/544.
convert.im6: no images defined `/tmp/ITCM1546-icon.png' @ error/convert.c/ConvertImageCommand/3044.
Conky: Unable to load image '/tmp/ITCM1546-icon.png'

how can I solve this problem?
Reply
:iconpabloferz:
pabloferz Featured By Owner Jul 30, 2014
I believe you do not have the latest version of this Conky. Try by downloading the package again.
Reply
:iconljmarin:
ljmarin Featured By Owner Apr 7, 2014
El script funciona de 10, todo muy prolijo,

lo único en mi humilde opinión le falta es la opción de "Humedad", con la configuración que tengo de conky no tengo la opción de "sensación térmica", con este no tengo la de "humedad" xD

si a futuro pudieras agregarla sería muy bueno,
saludos, muy buen trabajo :)
Reply
:iconpabloferz:
pabloferz Featured By Owner Apr 25, 2014
¡Gracias por tu comentario! Lo tomaré en cuenta para incluirlo en la siguiente versión.

Saludos (:
Reply
:iconjuanuni:
juanuni Featured By Owner Jan 8, 2014
Hola, me parece muy bueno el trabajo; siempre quize poner el clima en el conky y solo hasta ahora con el tuyo he podido.

Tengo un pequeño problema. He añadido la última parte del archivo conkyrc a otro conky que ya vengo usando. En primer lugar, el ícono correspondiente a mi ciudad aparece. Sin embargo, no he podido cambiarlo de ubicación a pesar de varios intentos.

La terminal no me muestra nada sospechoso. Las definiciones previas de mi conky si es algo diferente al de tu conkyrc. ¿Tendrá que ver esto con que no pueda moverlo? ¿Es necesario enviarte el código de mi conky con una captura de pantalla? Gracias por responder
Reply
:iconpabloferz:
pabloferz Featured By Owner Jan 10, 2014
Hola, gracias por usar mi Conky. Es probable que sea algún problema de configuración con el conkyrc. Sí sería más sencillo para mí analizar tu conkyrc y una captura de pantalla no está de más.
Reply
:iconjuanuni:
juanuni Featured By Owner Jan 11, 2014
Tuve un pequeño problema con la parte gráfica, así que te envio lo primero que obtuve. Tengo dos archivos conkys, pero solo te muestro el código del conky horizontal, pues ahí está parte de tu conky :)

Mi conky (el horizontal)

use_xft yes
xftfont Verdana:style=bold:size=8
default_bar_size 70 2
update_interval 2

total_run_times 0
double_buffer yes
text_buffer_size 2048

own_window yes
#own_window_colour 3D3D3D
own_window_type normal
own_window_transparent no
#own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

own_window_argb_visual yes
own_window_argb_value 91

minimum_size 1050 90
maximum_width 1050


default_color DDF2FF
draw_borders no
border_margin 1
draw_graph_borders yes
draw_outline no
draw_shades no

color0 E6E6E6
color1 A7CC5C
color2 E6E6E6

alignment bottom_right
gap_x 530
gap_y 380



override_utf8_locale yes

no_buffers yes

TEXT

${voffset 15}${offset 20}${font Designer Block :size=15}${color #D8D8D8}BESPIN r1702${image /home/juanuni/Public/icon/bespin.png -p 135,-10 -s 120x120}
${if_running amarok}
${font Designer Block :size=10}${execp ~/.conky/conkyAmarok.py --template=~/.conky/conkyAmarok.template}
$endif
${voffset 15}${offset 100}${execpi 60 ~/.conky/Flat-Weather/weather.sh -p "Lima" -i "PEXX0011"}
${texeci 1000 feh --bg-scale "/home/juanuni/Public/wall/20D.jpg"}

juanuni.deviantart.com/art/Res…
Reply
:iconpabloferz:
pabloferz Featured By Owner Jan 13, 2014
Si en el script no se especifíca la posición del ícono, entonces se muestra de forma automática en la posición (0,0). Desafotunadamente la posición debe ser indicada explícitamente. En tu caso bastaría con cambiar la posición vertical, eso puede hacerse con la opción -Y (Y mayúscula), por ejemplo

execpi 60 ~/.conky/Flat-Weather/weather.sh -p "Lima" -i "PEXX0011" -Y 100

Ejecuta el script y posiciona al ícono en (0,100). La opción -X modifica la posición horizontal en caso de que también desearas modificarla.

Por otro lado, parece que la versión que estás utilizando de conky tiene un bug que causa que se muestre el símbolo que aparece antes de las condiciones climáticas (un cuadro que aparece antes de 'Partly Cloudy' en el caso del enlace que proporcionaste). ¿Sabes que versión de conky tienes instalada?
Reply
:iconjuanuni:
juanuni Featured By Owner Jan 13, 2014
Si te refieres al ícono de Bespin, no te preocupes, ese ícono lo puse yo ... gracias por tu respuesta, probare ahora mismo
Reply
:iconpabloferz:
pabloferz Featured By Owner Jan 14, 2014
No me refiero al ícono de Bespin, me refiero a un carácter rectangular que se ve abajo del nombre de la ciudad y antes de las condiciones del cielo. Ese error es causado por un bug en una de las versiones de conky, creo que en la 1.8.0 o 1.8.1. En una terminal, si ejecutas el comando

conky -v

¿qué versión de conky se muestra?
Reply
:iconjuanuni:
juanuni Featured By Owner Jan 14, 2014
me aparece conky 1.8.1
Reply
:iconpabloferz:
pabloferz Featured By Owner Jan 14, 2014
Si pudieras instalar una versión de conky más reciente sería mejor, esa versión tenía algunos problemas que ya se resolvieron en versiones más recientes como la 1.9.0. ¿Pudiste cambiar la posición del ícono del clima?

Saludos
Reply
(1 Reply)
:iconje-en:
je-en Featured By Owner Nov 10, 2013  Hobbyist General Artist
i'm not the most tech savvy of people ahah, first time using a linux distro and conky
but i'm using elementary OS, and I can't get the weather.sh to run o:
i've filled in my city and the location id, the flat-weather file is indeed in .conky but clicking the weather.sh file doesn't do anything
i'm pretty sure i have imagemagick and bc installed and i've given conkyrc and weather.sh every permission, is there something i'm doing wrong or i've missed? qq
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 10, 2013
Hi Jeanne. Thanks for the interest in using this conky.

If you have the Flat-Weather folder inside the .conky folder already and you have imagemagick and bc, you have to make sure that you installed conky as well (I supose you already did). The conkyrc does not need permission to be executed but the weather.sh does. If you have done that, to run the conky, all you have to do is run in a terminal, for example

conky -c ~/.conky/Flat-Weather/conkyrc &

That should show the conky on your desk. I am not sure where you configure the applications that run at session start-up in ElementaryOS, but you should be able to use the same command there to run it every time you log in to your session. I would recommend you to write

conky -p 10 -c ~/.conky/Flat-Weather/conkyrc &

instead.

Conky read the conkyrc file which contains an instruction to execute de weather.sh script and pass its information to Conky so it can be displayed on the screen. Hope it clarifies everything. Cheers
Reply
:iconje-en:
je-en Featured By Owner Nov 10, 2013  Hobbyist General Artist
yup, i'm 99% i have conky (and curl, if i need it?) installed
i've typed both commands into the terminal but i keep getting this:

[1] 12626
me~computername:~$ Conky: desktop window (c0001e) is subwindow of root window (ac)
Conky: window type - override
Conky: drawing to created window (0x3a00001)
Conky: drawing to double buffer
--2013-11-10 22:03:44--  m.in.weather.com/right_now/411…
Resolving m.in.weather.com (m.in.weather.com)... 24.156.140.19, 24.156.140.49
Connecting to m.in.weather.com (m.in.weather.com)|24.156.140.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/tmp/weather-4118-en'

   [ <=>                                  ] 93,944      --.-K/s   in 0.08s  

2013-11-10 22:03:44 (1.06 MB/s) - `/tmp/weather-4118-en' saved [93944]

and then it repeats over and over again, while nothing happens on the desktop
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 10, 2013
It seems that everything should be working. That's the usual behaviour of the program and the script. You should be seeing the conky displayed on the desktop. I don't know how elementary handles the desktop, but you might try to change the line in the conkyrc file that says

own_window_type override

to

own_window_type normal

that usually works on GNOME Shell (which uses mutter as compositing manager). Since ElementaryOS uses gala, which uses libmutter it might work.
Reply
:iconje-en:
je-en Featured By Owner Nov 11, 2013  Hobbyist General Artist
well it now shows it on the desktop partially ahah
it has my city name, but no cards/background or weather condition after a few hours
is this a problem with connecting to the website?
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 12, 2013
The city ID must be a number with 8 characters, the first 4 are letters and the last 4 are numbers. For example, the code for Los Angeles, CA in the United States is USCA0638. Make sure you have it like that.
Reply
:iconje-en:
je-en Featured By Owner Nov 12, 2013  Hobbyist General Artist
WOAHHH IT'S THEREEEE
thank you so much ahhh it's awesome
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 12, 2013
Glad you liked it that much! And thank you for adding it to your favourites.
Reply
:iconleodelacruz:
leodelacruz Featured By Owner Nov 4, 2013
Muy bueno, excelente trabajo. Gracias!
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 11, 2013
No hay de que. He visto que lo has usado en tus últimos trabajos, ¡gracias!
Reply
:iconleodelacruz:
leodelacruz Featured By Owner Nov 12, 2013
Gracias a vos :D Me va a la perfeccion, lo estoy usando con los datos de weather.com ya que el link que das con las instrucciones de la descarga no encuentra mi ubicacion exacta, marca una temperatura incorrecta y eso que vivo en la capital del pais, es raro ^^ Gracias nuevamente ;)
Reply
:iconjuanuni:
juanuni Featured By Owner Jan 8, 2014
Cómo saco los datos de weather.com; yo también tengo problemas con el link del post inicial. Saludos.
Reply
:iconleodelacruz:
leodelacruz Featured By Owner Jan 9, 2014
Vas a tu cuidad por ejemplo la mia es


Y usas el codigo correspondiente a tu cuidad en este caso UYXX0006
Reply
:iconjuanuni:
juanuni Featured By Owner Jan 9, 2014
Gracias, ya lo conseguí
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 15, 2013
No hay de que. Y gracias por reportar el problema. (:
Reply
:iconnicesnake:
NiceSnake Featured By Owner Nov 1, 2013
I'm having this error (text displays but images not) city is Warsaw
~/.conky/Flat-Weather/weather.sh: line 209:  8851 Illegal instruction     (core dumped) convert \( ~/.conky/Flat-Weather/Flat/$(if [ "$ICON" ]; then echo $ICON; else echo '44'; fi).png $RESIZE -write $FILE-1.png \) \( -clone 0 $COLOR-write $FILE-2.png \) +swap -alpha on -compose copy-opacity -composite $FILE.png
Conky: Unable to load image '/tmp/weather-PLXX1481-en.png'

conky-1.9.0, , installed imagemagick and bc
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 3, 2013
That sounds like a problem with imagemagick. What version of imagemagick are you using?
Reply
:iconnicesnake:
NiceSnake Featured By Owner Nov 11, 2013
It fixed itself, with last update of packages (including imagemagick, I'm on arch). Which is still a bit weird :)
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 11, 2013
Yeah. As I wrote, it seemed an imagemagick problem. Glad you got it fixed.
Reply
:iconnicesnake:
NiceSnake Featured By Owner Nov 11, 2013
Btw, ever considered using weather font such as this one? www.behance.net/gallery/Weathe… instead images? Seems like it could simplify things.
Reply
:iconpabloferz:
pabloferz Featured By Owner Nov 12, 2013
I have considered using weather fonts. It would certainly ease the set up of the conky on the user end. Unfortunately, it would imply more work for me and right now I am too lazy to do the change. The weather information is downloaded from weather.com. They assign numbers to the weather conditions icons and the icons I am using were already numbered to work with the weather.com system, so it was easier for me to do it like this. Maybe I will do it someday. Thanks for the feedback anyway. (:
Reply
:iconefest:
efest Featured By Owner Oct 24, 2013
Hello
I wonder how to get off the
shadow around the border?

s13.postimg.org/k6bvgurl3/Capt…
Reply
:iconpabloferz:
pabloferz Featured By Owner Oct 24, 2013
In the conkyrc file look for the own_window_type value. If you have

own_window_type normal

change it for

own_window_type override
Reply
:iconefest:
efest Featured By Owner Oct 24, 2013
I have this
"
own_window yes
own_window_type override #Change to normal when using GNOME Shell
own_window_title "Flat-Weather"
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
"
Reply
:iconpabloferz:
pabloferz Featured By Owner Oct 25, 2013
Ok. Then try to change the line

own_window_type override

to

own_window_type normal
Reply
:iconefest:
efest Featured By Owner Oct 25, 2013
thanks its ok! :)
Reply
:iconpabloferz:
pabloferz Featured By Owner Oct 25, 2013
You are welcome. (:
Reply
:icontassos10:
Tassos10 Featured By Owner Oct 19, 2013
Το αποσυμπιέζω και βάζω τον φάκελο στο conky-manager ( επειδή έχω εγκαταστήσει το conky manager ), αλλά δε μπορώ να το επιλέξω να ανοίξει.. :( γιατί;
Reply
:iconpabloferz:
pabloferz Featured By Owner Oct 24, 2013
Δεν μιλάω ελληνικά, γι 'αυτό χρησιμοποιείται το Google Translator.

Αυτό Conky δεν γίνεται να συνεργαστεί με Conky Manager. Θα προσπαθήσω να κάνω μια νέα έκδοση σύντομα, ώστε να μπορείτε να το χρησιμοποιήσετε με Conky Manager.
Reply
:icontassos10:
Tassos10 Featured By Owner Oct 28, 2013
First of all thank you very much for answer your this way.
I see it as an honor and thank you very much.

 For this reason I will try in this way to answer you and I, as a sign of respect.

Thank you very much for your interest. And it's okay, no need to make changes, simply stated, that an average user who will try the konky-manager will not make it.

However it seems a very good job and congratulations. :)

(I thought you're a Greek, because I saw on the picture to get to Athens and to writing in Greek)
Reply
:iconpabloferz:
pabloferz Featured By Owner Feb 17, 2014
I updated a new version that works with Conky Manager in case you still want to use this Conky.

Cheers!
Reply
:icongusmt:
gusmt Featured By Owner Aug 17, 2013
Hola. Quisiera saber qué variable debo modificar para que no aparezca el icono cortado cuando aumento su tamaño. Gracias. Gran trabajo!!!
Reply
:iconpabloferz:
pabloferz Featured By Owner Aug 19, 2013
¿Qué opciones configuración estás utilizando para el script?
Reply
:icongusmt:
gusmt Featured By Owner Aug 18, 2013
Ya está. Había que agregar "minimum_size". Gracias. Perdón por la molestia.
Reply
:icongmrocher:
gmrocher Featured By Owner Aug 11, 2013
Hi, I made it work smooth, understod the config file and made some changes. But I have 2 doubts.
How to make more than one city?
I have no background like your screenshot. How to put one? 

(Ubuntu 13.04, Unity, BC and Imagemagick installed)
Reply
Add a Comment:
 
×




Details

Submitted on
May 8, 2011
File Size
770 KB
Link
Thumb
Embed

Stats

Views
30,582 (13 today)
Favourites
122 (who?)
Comments
232
Downloads
4,635

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
×