Conky Helps and Stuff

Message
Author
male

Re: Conky Helps and Stuff

#171 Post by male »

I have to correct that...
male wrote:the calling up the images

Code: Select all

${lua fDrawImage $HOME...}
will no longer work. :mad:
https://forum.mxlinux.org/viewtopic.php ... 50#p453603

it works under

Code: Select all

conky -v
conky 1.10.8 compiled Tue May 15 07:41:15 UTC 2018 for Linux 4.9.0-6-amd64 x86_64
Can someone test this with mx17?
Here is the configuration:

Code: Select all

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 = 660, minimum_height = 220,
   maximum_width = 655,

   gap_x = 10,--# l|r
   gap_y = -50,--# u|d
   alignment = 'mr',

   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 = '#ffffff',--# PowderBlue
   color8 = '#FFD700',--# Gold
   color9 = '#ffffff',--# 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 = '~/LUA/image.lua',
   
};
 
conky.text = [[
##### Start #####
${texeci 500 bash $HOME/1_accuweather/1_accuweather -f2015 -h2015}
##### Zeit #####
${voffset -35}${font GE Inspira:size=55}${time %H}:${time %M}${font GE Inspira:size=20}${color 808080}${goto 180}${time %S}$color$font
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${alignc -50}${time %A, %d %B %Y}$font
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Humidity : ${execi 90 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 310}Pressure : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
#### Stadt ####
${voffset -5}${font GE Inspira:size=14}Den Haag, NL : ${font} ${execi 90 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C ${font} Gefühlt :  ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
${goto 555}${voffset -124}${font ubuntu:size=11}N $font
${goto 522}${voffset 8}${font Ubuntu:size=6}NNW ${goto 583}NNE$font
${goto 493}${voffset -6}${font Ubuntu:size=9}NW ${goto 611}NE$font
${goto 486}${voffset 10}${font Ubuntu:size=6}WNW ${goto 618}ENE$font
${goto 468}${voffset 5}${font Ubuntu:size=11}W ${goto 641}E$font
${goto 486}${voffset 9}${font Ubuntu:size=6}WSW ${goto 618}ESE
${goto 493}${voffset 16}${font Ubuntu:size=9}SW ${goto 611}SE$font
${goto 522}${voffset -4}${font Ubuntu:size=6}SSW ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S $font
#### Anzeige der nächsten drei Stunden und drei Tage ####
${voffset -60}${goto 20}${time %H}h\
${goto 95}${tztime GMT-3 %H}h\
${goto 170}${tztime GMT-4 %H}h\
${goto 245}${execi 3600 date  --date='1 day' '+%a. %e'}\
${goto 320}${execi 3600 date  --date='2 day' '+%a. %e'}\
${goto 400}${execi 3600 date  --date='3 day' '+%a. %e'}
##### Temperaturanzeige  #####
${voffset 25}
T${goto 20}${execi 90 sed -n '29p' $HOME/1_accuweather/hourly1}°\
${goto 95}${execi 90 sed -n '30p' $HOME/1_accuweather/hourly1}°\
${goto 170}${execi 90 sed -n '31p' $HOME/1_accuweather/hourly1}°\
${goto 245}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 320}${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 400}${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}
#### Icons aktuelle Bedingungen und Wind ####
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 180 5 132 80 0}${lua fDrawImage $HOME/1_accuweather/forecast_2015/wind_0.png 465 12 190 190 0}\
#### Icons für die nächsten 3 Stunden und 3 Tage ####
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_1.png 0 155 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_2.png 75 155 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_3.png 150 155 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png 225 155 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png 300 155 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png 380 155 70 40 0}
${voffset -800}
]]; 

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#172 Post by KoO »

I gave it a spin but not loading.
conky: llua_do_call: function conky_fDrawImage execution failed: attempt to call a nil value

MX-17.1 4.15.0-1-amd64 conky 1.10.6
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

male

Re: Conky Helps and Stuff

#173 Post by male »

Hello KoO,
thank you for your help. ;)

Do you have image.lua in your ~/LUA directory?
From here: https://forum.mxlinux.org/viewtopic.php ... 40#p452807

User avatar
smilliken
Posts: 206
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky Helps and Stuff

#174 Post by smilliken »

asqwerth wrote: Fri Jul 06, 2018 11:35 pm Did you download the archive file attached to my post and extract it to your home folder?

Run conky from terminal to see the error messages.

[added] or you didn't install jq and /or curl.

Code: Select all

conky: Syntax error (/home/mx1/.conkyrc:3: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (1e00003) is subwindow of root window (e8)
conky: window type - normal
conky: drawing to created window (0x5000001)
conky: drawing to double buffer
I donn't see anything on line 3 that is any different than the other uncommented lines.

The conky jumps from a 4 day to a five day forecast every second.

jq and curl are both installed
You do not have the required permissions to view the files attached to this post.
There is no "Ctrl+Z" in life!
Asus X570, Rysen 3600, 32 GB RAM MX-21
Acer 7551G MX-21 & Win 10
Asus i5, 16 GB RAM MX-21 & Win 10
Brother DCP-7065DN/HL-L3270CDW
Linux User# 4523410

User avatar
asqwerth
Developer
Posts: 7226
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#175 Post by asqwerth »

smilliken wrote: Mon Jul 09, 2018 10:36 am

Code: Select all

conky: Syntax error (/home/mx1/.conkyrc:3: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (1e00003) is subwindow of root window (e8)
conky: window type - normal
conky: drawing to created window (0x5000001)
conky: drawing to double buffer
I donn't see anything on line 3 that is any different than the other uncommented lines....
Those lines are fine, as they indicate that the new conky 1.10 has noted that line 3 starts with

#, etc etc

meaning that it's likely to be in the older conky 1.9 syntax, and it's converting/reading the script accordingly. Not an issue.

What error msgs come after those lines?


Could you post the whole of your amended conky with your location? If you are not comfortable displaying your new API key, pls post the whole text of conky via PM.

Lines 57 and 58 must include the question mark just before your API key and city code.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
asqwerth
Developer
Posts: 7226
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#176 Post by asqwerth »

Also, did you save the

/.conky-google-now-Openweather

folder of weather images with the dot in front of the rest of the folder name?
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
smilliken
Posts: 206
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky Helps and Stuff

#177 Post by smilliken »

Weather Conky is up and running. Will play with the colour and the background that is being used, but to start, here is an png.
You do not have the required permissions to view the files attached to this post.
There is no "Ctrl+Z" in life!
Asus X570, Rysen 3600, 32 GB RAM MX-21
Acer 7551G MX-21 & Win 10
Asus i5, 16 GB RAM MX-21 & Win 10
Brother DCP-7065DN/HL-L3270CDW
Linux User# 4523410

User avatar
Eadwine Rose
Administrator
Posts: 11949
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#178 Post by Eadwine Rose »

With all the new instructions and such being one big garble (I have no idea what to follow anymore), is there a sure way to get this conky running?

Even with the other conkies that are there and not interfering with each other?
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
smilliken
Posts: 206
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky Helps and Stuff

#179 Post by smilliken »

Eadwine Rose wrote: Tue Jul 10, 2018 4:32 pm With all the new instructions and such being one big garble (I have no idea what to follow anymore), is there a sure way to get this conky running?

Even with the other conkies that are there and not interfering with each other?
I'm using the Conky Manager and palced the .conkyrc file in the .conky directory. Open the Conky Manager, use the gears on the right side of the toolbar and make sure where the .conkyrc file is placed is in the directories where Conky Manager looks for these files. Once changed, click on the Circular Arrow on the toolbar. There is a progress bar that goes back and forth, and this could take some time to complete.

Once all of this stops, you should be able to locate and then click on the box to activate it.

The icons that are suggested need to be in the right directory (.conky-google....) I also found that down near the bottom of the script, where it grabs the kernel number, and other items qbout the computer, you need to change the home directory from tuaz to your own. I got caught with not changing and it just doesn't work, unless your home directory is tuaz!

I did have some troubles, but it did come around. I think you need to let it also record some data for a bit to give you your readings, at least that was my take on it.
There is no "Ctrl+Z" in life!
Asus X570, Rysen 3600, 32 GB RAM MX-21
Acer 7551G MX-21 & Win 10
Asus i5, 16 GB RAM MX-21 & Win 10
Brother DCP-7065DN/HL-L3270CDW
Linux User# 4523410

User avatar
asqwerth
Developer
Posts: 7226
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#180 Post by asqwerth »

Eadwine rose, my instructions here :

https://forum.mxlinux.org/viewtopic.php ... 90#p452190

Are complete and unchanged from before. And they relate to the weather section.

The part that smiliken says has some file paths that need to be changed relates to the text portion below the weather portion, and which I had already said in my earlier post could be removed if all you wanted was the weather part.

Smiliken's issues with the weather part went away with no further changes from me or him. Probably just needed some time for the information and selected weather icons to be generated and to populate a cache folder.

I assumed that you won't be using Conky Manager. You can save the conky itself anywhere. It's the weather icons folder that should not have its folder location changed unless you want to amend all references to it in the conky.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Post Reply

Return to “Software / Configuration”