You are not logged in.
Hello Guys
I installed Mint Sarah Xfce & she have conky in 1.10 version , i modify ( some lua script don't work ) it but he doesn't work so perfect witch in 1.09 version .In the old version wind direction and wind direction-icon are the same at launch , in the version 1.10 it is not.
here my conkyrc
conky.config = {
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'skip_taskbar,skip_pager,undecorated,below',
own_window_colour = '#000000',
minimum_width = 650, minimum_height = 450,
maximum_width = 655,
gap_x = 450,--# l|r
gap_y = 250,--# u|d
alignment = 'top_left',
use_xft = true,
font = 'GE Inspira:size=9',
xftalpha = 1.0,
override_utf8_locale = true,
draw_shades = false,
default_shade_color = '#000000',
draw_outline = false,
default_outline_color = '#000000',
default_color = '#ffffff',--# MintCream
color1 = '#778899',--# LightSlateGray
color2 = '#FFA07A',--# LightSalmon
color3 = '#87CEFA',--# LightSkyBlue
color4 = '#48D1CC',--# MediumTurquoise
color5 = '#FFDEAD',--# NavajoWhite
color6 = '#00BFFF',--# DeepSkyBlue
color7 = '#B0E0E6',--# PowderBlue
color8 = '#FFD700',--# Gold
color9 = '#CD5C5C',--# IndianRed
draw_borders = false,
stippled_borders = 5,
border_inner_margin = 5,
border_outer_margin = 0,
border_width = 2,
draw_graph_borders = false,
background = false,
use_spacer = 'none',
no_buffers = true,
double_buffer = true,
update_interval = 1,
lua_load = '~/.conky/lua/image.lua',
--lua_load = '~/2b_Wunderground_API/scripts/barow.lua,
--lua_draw_hook_pre = 'main',
-- lua_load = '~/2b_Wunderground_API/scripts/textwritingw.lua',
--lua_draw_hook_post = 'draw_text'
};
conky.text = [[
#### Lancement du script récupérant les données météo ####
${execi 1800 bash $HOME/2b_Wunderground_API/2b}
##### Heure de mise à jour #####
${voffset 58}${goto 25}Dernière mise à jour : ${execi 600 sed -n '53p' $HOME/2b_Wunderground_API/Conditions-fr | cut -c18-22}
#### Date ####
${voffset -80}${font Ubuntu:size=14}${alignc -50}${time %A, %d %B %Y}$font
${goto 320}Saint(e): ${execi 1000 wget -O - -q http://fetedujour.fr/ --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep h2 | head -1 | cut -d">" -f2 | cut -d"<" -f1 | cut -d":" -f2 }
##### Affichage infos vent ######
${voffset 6}${goto 310}${font Ubuntu:size=10}Vent : ${execi 600 sed -n '73p' $HOME/2b_Wunderground_API/Conditions-fr}
${goto 310}Vit. : ${execi 600 sed -n '81p' $HOME/2b_Wunderground_API/Conditions} km/h
${goto 310}Pluie : ${execi 600 sed -n '57p' $HOME/2b_Wunderground_API/Simple_Forecast} mm
##### ville #####
${voffset 2}${goto 15}${font Ubuntu:size=14:}Sarreguemines : ${font}${execi 600 sed -n '63p' $HOME/2b_Wunderground_API/Conditions-fr}
#### Affichage rose des vents ####
${goto 555}${voffset -89}${font ubuntu:size=11}N $font
${goto 522}${voffset 8}${font Ubuntu:size=6}NNO ${goto 583}NNE$font
${goto 493}${voffset -6}${font Ubuntu:size=9}NO ${goto 611}NE$font
${goto 486}${voffset 10}${font Ubuntu:size=6}ONO ${goto 618}ENE$font
${goto 468}${voffset 5}${font Ubuntu:size=11}O ${goto 641}E$font
${goto 486}${voffset 9}${font Ubuntu:size=6}OSO ${goto 618}ESE
${goto 493}${voffset 16}${font Ubuntu:size=9}SO ${goto 611}SE$font
${goto 522}${voffset -4}${font Ubuntu:size=6}SSO ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S $font
#### Affichage trois prochaines heures et trois prochains jours ####
${voffset -72}${goto 25}${execi 600 sed -n '4p' $HOME/2b_Wunderground_API/Hourly}h\
${goto 105}${execi 600 sed -n '121p' $HOME/2b_Wunderground_API/Hourly}h\
${goto 180}${execi 600 sed -n '236p' $HOME/2b_Wunderground_API/Hourly}h\
${alignc 30}${execi 600 echo `date --date="1 day" | awk '{print $1" "$2} {}'`}\
${alignc -20}${execi 600 echo `date --date="2 day" | awk '{print $1" "$2} {}'`}\
${alignc -90}${execi 600 echo `date --date="3 day" | awk '{print $1" "$2} {}'`}
##### Affichage temperatures #####
${voffset 35}T${goto 25}${execi 600 sed -n '172p' $HOME/2b_Wunderground_API/Hourly}°\
${goto 105}${execi 600 sed -n '289p' $HOME/2b_Wunderground_API/Hourly}°\
${goto 175}${execi 600 sed -n '406p' $HOME/2b_Wunderground_API/Hourly}°\
${alignc 26}${color9}${execi 600 sed -n '145p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '150p' $HOME/2b_Wunderground_API/Simple_Forecast}°\
${alignc -30}${color9}${execi 600 sed -n '251p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '256p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${alignc -90}${color9}${execi 600 sed -n '357p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '362p' $HOME/2b_Wunderground_API/Simple_Forecast} $color
#### Affichage vitesse du vent ####
V${goto 25}${execi 600 sed -n '74p' $HOME/2b_Wunderground_API/Hourly}km/h\
${goto 105}${execi 600 sed -n '191p' $HOME/2b_Wunderground_API/Hourly}km/h\
${goto 175}${execi 600 sed -n '308p' $HOME/2b_Wunderground_API/Hourly}km/h\
${goto 245}${execi 90 sed -n '96p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 320}${execi 90 sed -n '202p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 400}${execi 90 sed -n '308p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h
#### Affichage direction vent ####
D${goto 25}${execi 600 sed -n '77p' $HOME/2b_Wunderground_API/Hourly}\
${goto 105}${execi 600 sed -n '194p' $HOME/2b_Wunderground_API/Hourly}\
${goto 175}${execi 600 sed -n '311p' $HOME/2b_Wunderground_API/Hourly}\
${goto 245}${execi 90 sed -n '195p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 320}${execi 90 sed -n '301p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 400}${execi 90 sed -n '407p' $HOME/2b_Wunderground_API/Simple_Forecast}
#### Affichage pluie ####
P${goto 25}${execi 600 sed -n '105p' $HOME/2b_Wunderground_API/Hourly} mm\
${goto 105}${execi 600 sed -n '222p' $HOME/2b_Wunderground_API/Hourly} mm\
${goto 175}${execi 600 sed -n '339p' $HOME/2b_Wunderground_API/Hourly} mm\
${goto 245}${execi 90 sed -n '57p' $HOME/2b_Wunderground_API/Simple_Forecast} mm\
${goto 320}${execi 90 sed -n '163p' $HOME/2b_Wunderground_API/Simple_Forecast} mm\
${goto 400}${execi 90 sed -n '269p' $HOME/2b_Wunderground_API/Simple_Forecast} mm
#### Divers ####
${voffset 10}${goto 60}Aujourd'hui le jour se lève à ${execi 600 sed -n '16p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '18p' $HOME/2b_Wunderground_API/Moon_Sun}\
et la nuit tombe à ${execi 600 sed -n '21p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '23p' $HOME/2b_Wunderground_API/Moon_Sun}
${goto 60}En ce moment l'indice d'UV est de : ${execi 600 sed -n '121p' $HOME/2b_Wunderground_API/Conditions}\
et la visibilitée de ${execi 600 sed -n '117p' $HOME/2b_Wunderground_API/Conditions} kms
#### lunaison ####
${voffset 10}${goto 35}Phase : ${execi 600 sed -n '6p' $HOME/2b_Wunderground_API/Moon_Sun}
${goto 35}Visibilitée : ${execi 600 sed -n '2p' $HOME/2b_Wunderground_API/Moon_Sun} %
${goto 35}La lune se léve à : ${execi 600 sed -n '26p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '28p' $HOME/2b_Wunderground_API/Moon_Sun} et se couche à : ${execi 600 sed -n '31p' $HOME/2b_Wunderground_API/Moon_Sun} h ${execi 600 sed -n '33p' $HOME/2b_Wunderground_API/Moon_Sun}
${goto 35}Elle à ${execi 600 sed -n '4p' $HOME/2b_Wunderground_API/Moon_Sun} jour (s)
#### barometre ####
${voffset -85}${goto 535}${execi 600 sed -n '85p' $HOME/2b_Wunderground_API/Conditions} mb
${voffset 10}${goto 480}Temp ${goto 610}Res
${goto 480}${font Ubuntu:size=18}${execi 600 sed -n '67p' $HOME/2b_Wunderground_API/Conditions}${goto 610}${execi 600 sed -n '113p' $HOME/2b_Wunderground_API/Conditions} ° $font
#### alerte ####
${voffset 30}${alignc}${execi 600 sed -n '1p' $HOME/2b_Wunderground_API/Alertes| fold -s -w100 }
${alignc}${execi 600 sed -n '2p' $HOME/2b_Wunderground_API/Alertes| fold -s -w100 }
#### icone condition actuelle ####
${lua fDrawImage $HOME/2b_Wunderground_API/Now.png 150 0 145 100 0}\
#### icone direction vent ####
${lua fDrawImage $HOME/2b_Wunderground_API/Wind1.png 460 10 200 200 0}\
#### icones 3 prochaines heures ####
${lua fDrawImage $HOME/2b_Wunderground_API/h2.png 0 132 70 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/h3.png 75 132 70 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/h4.png 150 132 70 45 0}\
#### icones 3 prochains jours ####
${lua fDrawImage $HOME/2b_Wunderground_API/d2.png 225 132 70 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/d3.png 300 132 70 45 0}\
${lua fDrawImage $HOME/2b_Wunderground_API/d4.png 380 132 70 45 0}
#### icone lune ####
${lua fDrawImage $HOME/2b_Wunderground_API/Moon_phase.png 345 260 60 60 0}
${voffset -350}
]];
Tank's
&
@+
Last edited by loutch (2016-08-20 17:02:23)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Hi loutch
I don't have 1.10 installed but shouldn't all the commented lines below
conky.text = [[
be commented out using LUA syntax?
A sample:
conky.text = [[
-- Lancement du script récupérant les données météo ####
${execi 1800 bash $HOME/2b_Wunderground_API/2b}
-- Heure de mise à jour #####
${voffset 58}${goto 25}Dernièr...
maybe that will allow it to work better.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Re
Don't work, then I removed all the commented lines & now i'm waiting for a new refresh .
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
I realize you have two commented out ... but can you post all three of these LUA scripts.
lua_load = '~/.conky/lua/image.lua',
--lua_load = '~/2b_Wunderground_API/scripts/barow.lua,
--lua_draw_hook_pre = 'main',
-- lua_load = '~/2b_Wunderground_API/scripts/textwritingw.lua',
--lua_draw_hook_post = 'draw_text'
I will install conky v1.10 and test your setup.
Please confirm with
aptitude search conky
what conky you have installed. I'll be installing conky-all
Last edited by Sector11 (2016-08-20 19:23:24)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I also don't have your "Conditions-fr" file but it's looking good so far! - need to connect my wunderground script location
More tweaking required.
EDIT changing 'conditions-fr' to 'conditions' gives the English equivalent so that isn't the problem.
Last edited by Sector11 (2016-08-20 19:55:59)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
Good morning
Ok y try it with ${image...
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Darker background - or - use shaded text
draw_shades = true,
default_shade_color = '#000000',
draw_outline = false,
default_outline_color = '#000000',
Or even better, for my tired, old eyes, make the font bold and shaded, plus tweak the spacing a little:
Which will allow for a wider range of wallpapers, IMHO.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Ok
tank's for helping
&
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
I will always help you my friend, always.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline