Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Conky Helps and Stuff

Message
Author
User avatar
male
Forum Regular
Forum Regular
Posts: 306
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#241 Post by male » Wed Oct 10, 2018 12:29 pm

@eadwine

If you are using MX17.1, then you have:

Code: Select all

$ apt policy conky-all
conky-all:
  Installiert:           1.10.6-1
  Installationskandidat: 1.10.6-1
  Versionstabelle:
 *** 1.10.6-1 500
        500 https://deb.debian.org/debian stretch/main i386 Packages
        100 /var/lib/dpkg/status
You don't have to be confused. It is quite simple. ;)
Here I have described the procedure already once

If you're don't get along, then get back to me
Male is the capital of the Maldives and its wonderful people.

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6217
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#242 Post by Eadwine Rose » Wed Oct 10, 2018 3:10 pm

Lots of hiccups trying to follow along, but I figured out which conky folder things were in.
$ lua convert.lua conkyrc9 conkyrc10
bash: lua: command not found
And that is where I get stuck.


The solution to this problem is the removal of the
of the Lua Toung
What do you mean??


and the use e.g.

Code: Select all

${image $HOME/1_accuweather/forecast_2015/forecast_0.png -p 0,35 -s 167x100}
how that TBG in its 1.10 configurations makes. :happy:
Again, at a loss what you mean.
MX-17.1_x64 Horizon 3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP Envy5030

User avatar
male
Forum Regular
Forum Regular
Posts: 306
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#243 Post by male » Wed Oct 10, 2018 4:23 pm

Eadwine Rose wrote: $ lua convert.lua conkyrc9 conkyrc10
bash: lua: command not found

And that is where I get stuck.
Sorry, in debian the Lua command line interpreter is always missing.
So install

Code: Select all

apt install lua5.2
to execute the lua convert command.

THAT IS EVERYTHING! ;)
Male is the capital of the Maldives and its wonderful people.

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3619
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#244 Post by asqwerth » Thu Oct 11, 2018 12:13 am

Eadwine Rose, if you don't use Conky Manager to manage your conkies, you don't have to bother with any conversion from 1.9 to 1.10.

To explain male's explanation (heh!):

1. the version of conky used since MX15 has been conky 1.10 all this while. It is only that Conky Manager was installed by default from MX17. From conky 1.10, a different syntax was introduced for the instruction lines within individual conky config files. The old style/syntax is the one most of us are more familiar with, and was the default up to conky 1.9
2. HOWEVER conky 1.10 can read and convert run old 1.9 syntax config files. There are edge cases that may not convert well, but from male's explanation, they won't affect the simple conkies I use. The difference is not a big deal if your conkies don't rely a lot on lua scripts to draw circles and lines and frames.
3. the only issue is if you use Conky Manager to list and manage your various conkies, because the dev for CM only made it detect and recognise old syntax config files as conkies to be listed within CM. This doesn't affect the usability of new syntax conkies themselves; they just cannot be seen from within CM and thus you can't enable or disable them from within.
4. But if you don't use CM at all and instead start your conkies manually from terminal or with some script, then the difference in syntax should not suddenly be affecting your conkies.

So I don't know what's wrong with your stuff but surely it can't be the syntax issue? :confused:

[ADDED] however, male is probably asking you to convert the old syntax file to new syntax so it's easier to compare and troubleshoot against the original scripts from TeoBigusGeekus, the weather conky man.

I don't have any issue with the conkies male has provided, whether in MX15, 16 or 17. In MX15/16, I manually manage them and in MX17, they are managed from CM. I can't recall if they were old syntax configs all the way, or were new syntax which I converted to old syntax so I could see them in CM.
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
Forum Veteran
Forum Veteran
Posts: 3619
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#245 Post by asqwerth » Thu Oct 11, 2018 12:31 am

Eadwine Rose wrote:
Wed Oct 10, 2018 5:48 am
...

and the weather conky:

Code: Select all

eadwine@mx17.1-eadwine:~
$ conky -c /home/eadwine/eadwine/conkyrc9
conky: Syntax error (/home/eadwine/eadwine/conkyrc9:3: '=' expected near 'yes') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (1a00003) is subwindow of root window (290)
conky: window type - normal
conky: drawing to created window (0x8200001)
conky: drawing to double buffer
sed: can't read /home/eadwine/1_accuweather/aktualisiert: No such file or directory

[1]+  Stopped                 conky -c /home/eadwine/eadwine/conkyrc9
eadwine@mx17.1-eadwine:~
$ rm: cannot remove '/home/eadwine/1_accuweather/altogether16': No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16_2016': No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16: No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16_2016: No such file or directory

Nothing wrong with the normal conky, it has been running on my system literally for years.
The first few lines about syntax error is normal when conky 1.10 is attempting to convert old syntax conky config to run.

I still think it's the "aktualisiert" thing onwards that is causing the issue. Some of male's conky configs show up with German words within, but if your system is set to a different language or locale (for me, English), would the 1_accuweather script be creating a file called "aktualisiert"?

I think from my comparisons and checks, this is actually the data for "feels like", as in, "actual temp = X, but feels like = Y".

viewtopic.php?f=108&t=44927&p=453297&hi ... rt#p453297
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
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6217
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#246 Post by Eadwine Rose » Thu Oct 11, 2018 3:41 am

The conky weather thing on its own seems to work fine, just when I run it with my standard non conky manager (I disable that right after the install!) plain text conky the latter locks up.

Considering THAT conky is more important to me than the weather conky (I like to see when my computer overheats, what process is using up all my cpu and stuff like that) I cannot use the two together.

I don't see how converting the weather conky is going to help this.. but I will try the conversion thing, if it doesn't work after that I think I will give up, there is just too much I don't understand.


Here it is after converting, the terminal output. The conky won't show up until I close this terminal.

Code: Select all

eadwine@mx17.1-eadwine:~
$ conky -c /home/eadwine/eadwine/conkyrc10
conky: desktop window (1600003) is subwindow of root window (290)
conky: window type - normal
conky: drawing to created window (0x5e00001)
conky: drawing to double buffer

[1]+  Stopped                 conky -c /home/eadwine/eadwine/conkyrc10
eadwine@mx17.1-eadwine:~
$ sed: can't read /home/eadwine/1_accuweather/aktualisiert: No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16': No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16_2016': No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16: No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16_2016: No such file or directory

I have put the conkyrc10 command in the autostart section now, it'll start at boot like the rc9 used to do. We'll see.
MX-17.1_x64 Horizon 3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP Envy5030

User avatar
male
Forum Regular
Forum Regular
Posts: 306
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#247 Post by male » Thu Oct 11, 2018 4:24 am

@eadwine
Congratulations to the successful transform! :number1:
The conky won't show up until I close this terminal.
that doesn't appear, because at the end the & is missing!
All my Conky Start and Kill commands have the closing & :exclamation:

Please, show me the two configurations so I can help you (your favorite system Conky and the weather Conky with the section "aktualisiert")
Male is the capital of the Maldives and its wonderful people.

User avatar
male
Forum Regular
Forum Regular
Posts: 306
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#248 Post by male » Thu Oct 11, 2018 6:40 am

Eadwine Rose wrote:

Code: Select all

eadwine@mx17.1-eadwine:~
$ sed: can't read /home/eadwine/1_accuweather/aktualisiert: No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16': No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16_2016': No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16: No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16_2016: No such file or directory
These messages have nothing to do with your problem:

Code: Select all

$ sed: can't read /home/eadwine/1_accuweather/aktualisiert: No such file or directory
"aktualisiert" was the built-in update time of the weather display. This can be commented out or deleted.

Code: Select all

#### Stadt ####
${voffset -5}${font GE Inspira:size=14}Den Haag, NL : ${font} #${execi 90 sed -n '1p' $HOME/1_accuweather/aktualisiert}
or

Code: Select all

#### Stadt ####
${voffset -5}${font GE Inspira:size=14}Den Haag, NL : ${font}
=======================================================================================

Code: Select all

rm: cannot remove '/home/eadwine/1_accuweather/altogether16': No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16_2016': No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16: No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16_2016: No such file or directory
is generated by the script and is not an error. A user who uses the images2016 sees for it

Code: Select all

rm: cannot remove '/home/eadwine/1_accuweather/altogether16': No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16_2015': No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16: No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16_2015: No such file or directory
I hope all the ambiguities have now been resolved. :happybday:
Male is the capital of the Maldives and its wonderful people.

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6217
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#249 Post by Eadwine Rose » Thu Oct 11, 2018 7:42 am

Adding the # sorts that indeed. The & at the end makes it show up before closing.



Which configurations do you mean that you want to see?



The basic conky is this

Code: Select all

conky.config = {
    alignment = 'bottom_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'DDDDDD',
    default_outline_color = 'white',
    default_shade_color = 'black',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    xftalpha = 0.8,
    font = 'Monospace:size=8',
    gap_x = 5,
    gap_y = 50,
    minimum_height = 5,
    minimum_width = 5,
    maximum_width = 500,
    net_avg_samples = 2,
    no_buffers = false,
    double_buffer = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    imlib_cache_size =0,
    override_utf8_locale = true,
    own_window = true,
    own_window_class = 'conky-semi',
  own_window_type = 'override',
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    total_run_times = 0,
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
${color Tan1}Uptime             ${color}${uptime}${color Tan1}${alignr}TOP              PID    CPU    MEM 
${color Tan1}CPU temperature    ${color}${exec sensors | grep 'CPU Temperature' | cut -c22-25}C${color}${alignr}${top name 1}${alignr}${color}${top pid 1} ${top cpu 1} ${top mem 1}
${color Tan1}CPU fan speed      ${color}${exec sensors | grep 'CPU FAN'| cut -b 20-27}  ${color}${alignr}${top name 2}${alignr}${color}${top pid 2} ${top cpu 2} ${top mem 2}
${color Tan1}Core 1             ${color}${cpu cpu1}% ${color}${alignr}${top name 3}${alignr}${color}${top pid 3} ${top cpu 3} ${top mem 3}
${color Tan1}Core 2             ${color}${cpu cpu2}% ${color}${alignr}${top name 4}${alignr}${color}${top pid 4} ${top cpu 4} ${top mem 4}
${color Tan1}Core 3             ${color}${cpu cpu3}% ${color}${alignr}${top name 5}${alignr}${color}${top pid 5} ${top cpu 5} ${top mem 5}
${color Tan1}Core 4             ${color}${cpu cpu4}% ${color}${alignr}${top name 6}${alignr}${color}${top pid 6} ${top cpu 6} ${top mem 6}
${color Tan1}MB temperature     ${color}${exec sensors | grep 'MB Temperature' | cut -c22-25}C ${color}${alignr}${top name 7}${alignr}${color}${top pid 7} ${top cpu 7} ${top mem 7}
${color Tan1}Chassis fan speed ${color}${exec sensors | grep 'CHASSIS FAN'| cut -b 20-27} ${color}${alignr}${top name 8}${alignr}${color}${top pid 8} ${top cpu 8} ${top mem 8}
${color Tan1}Ram in use         ${color}${mem}/$memmax ${color}${alignr}${top name 9}${alignr}${color}${top pid 9} ${top cpu 9} ${top mem 9}
# calculate down and up speed scale (105*1000000)/8/1024 where 105 is the amount of mbits the eth0 connection has
# calculate down and up speed scale (25*1000000)/8/1024 where 25 is the amount of mbits the wlan0 connection has
${color Tan1}Eth0 down          ${color}${downspeedgraph eth0 10,70 00ff00 00ff00 12817KiB} ${downspeed eth0}
${color Tan1}Eth0 up            ${color}${upspeedgraph eth0 10,70 ff0000 ff0000 12817KiB} ${color}${upspeed eth0}
${color Tan1}Wlan0 down         ${color}${downspeedgraph wlan0 10,70 00ff00 00ff00 3052KiB} ${downspeed wlan0}
${color Tan1}Wlan0 up           ${color}${upspeedgraph wlan0 10,70 ff0000 ff0000 3052KiB} ${color}${upspeed wlan0}
${color Tan1}PCI adapter temp   ${color}${exec sensors | grep 'temp1' | cut -c16-17}C 
${color Tan1}HDD A temperature  ${color}${hddtemp /dev/sda}C
${color Tan1}HDD B temperature  ${color}${hddtemp /dev/sdb}C
${color Tan1}GeForce GT640-1GD5 ${color}${nvidia temp}C
#${color Tan1}GeForce ram in use ${color}${exec nvidia-smi -q -d MEMORY | grep Used | cut -c39-45}
${color Tan1}GeForce MiB in use ${color}${exec nvidia-smi -q -d memory | grep Used | sed 's:^[^0-9]*\([0-9]*\)[^0-9]*:\1:'}
${font Verdana:size=8}${color Tan1}Omroep Brabant ${color}${rss http://www.omroepbrabant.nl/rss/?feed=west 15 item_titles 3}
${color Tan1}BN DeStem ${color}${rss http://www.bndestem.nl/roosendaal/rss.xml 15 item_titles 3}
#${color Tan1}Nieuws.nl ${color}${rss http://nieuws.nl/feed/ 15 item_titles 3}
${color Tan1}Brabants Dagblad ${color}${rss http://www.bd.nl/brabant/rss.xml 15 item_titles 3}
#${color Tan1}Nu.nl ${color}${rss http://www.nu.nl/rss/algemeen 15 item_titles 3}
#${color Tan1}GeenStijl ${color}${rss https://www.geenstijl.nl/feeds/recent.atom 15 item_titles 3}
#${color Tan1}CNN ${color}${rss http://rss.cnn.com/rss/cnn_latest.rss 15 item_titles 3}

${color}${exec tail -n5 /var/log/syslog | fold -w79}
]]
MX-17.1_x64 Horizon 3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP Envy5030

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6217
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#250 Post by Eadwine Rose » Thu Oct 11, 2018 9:09 am

Aaaand it's frozen. Happened about 45 minutes ago by the looks of the uptime. The weather one was still working, because the forecast is still for the upcoming hour.


And again, after only 11 minutes uptime. The weather conky looks normal with the first upcoming hour like it should be.
MX-17.1_x64 Horizon 3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP Envy5030

Post Reply

Return to “Software / Configuration”