You are not logged in.

#1 2018-06-30 09:54:43

wagmic
Member
From: Casablanca
Registered: 2015-09-30
Posts: 66

conky issues since switching to helium #solve#

Hi i have change my hard disk and change for helium
i keep all my config files but one of my conky does not work.

here is the error message

┌─╼ wagmic ╺─╸ bunsenwag [~]
└╼ conky -c ~/.config/conky/conkywifi.conkyrc
conky: Syntax error (/home/wagmic/.config/conky/conkywifi.conkyrc:2: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:46: '}' expected (to close '{' at line 1) near '100'

here is the conky config

# librement inspiré de Conky Google Now style #
# Par wagmic #
# Conky settings #
background no
update_interval 1
double_buffer yes
no_buffers yes

# Window specifications #
own_window_class Conky
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size 250

# Alignment #
alignment tm
gap_x 18
gap_y 43

border_inner_margin 15
border_outer_margin 0

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=7

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color D3E6E6

#minimum_size 120 250
maximum_width 250 100

TEXT
${if_existing /proc/net/route wlan0}${goto 35}${wireless_essid wlan0}${goto 150}${wireless_link_qual_perc wlan0}%
${goto 35}Gateway:${goto 150}$gw_ip
${goto 35}Ip:${goto 150}${addr wlan0}
${goto 35}Ip public:${goto 147}${execi 1800 wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1 | tail}
${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan0 | cut -c 39-55}
${goto 35}Up:${upspeed wlan0}${goto 150}Down:${downspeed wlan0}
${upspeedgraph wlan0 50,120 FFFFF0 FF8800 -t -l}${alignr}${downspeedgraph wlan0 50,120 FF8800 FFFFF0-t -l}
${alignc}Sent:${totalup wlan0}${alignr}Received:${totaldown wlan0}
${else}${if_existing /proc/net/route wlan2}${goto 35}${wireless_essid wlan2}${goto 150}${wireless_link_qual_perc wlan2}%
${goto 35}Gateway:${goto 150}$gw_ip
${goto 35}Ip:${goto 150}${addr wlan2}
${goto 35}Ip public:${goto 150}${execi 1800 wget -q -O - http://ip.tupeux.com | tail }
${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan2 | cut -c 39-55}
${goto 35}Up:${upspeed wlan2}${goto 150}Down:${downspeed wlan2}
${upspeedgraph wlan2 50,120 FFFFF0 FF8800 -t -l}${alignr}${downspeedgraph wlan2 50,120 FF8800 FFFFF0-t -l}
${alignc}Sent:${totalup wlan2}${alignr}Received:${totaldown wlan2}
${else}${if_existing /proc/net/route eth0}
Up:${upspeed eth0}${alignr}Down:${downspeed eth0}
${upspeedgraph eth0 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth0 50,120 FF8800 FF8800}
Sent:${totalup eth0}${alignr}Received:${totaldown eth0}
${else}${if_existing /proc/net/route wlan2}${goto 85}${wireless_essid wlan2}${alignr}${wireless_link_qual_perc wlan2}%
Up:${upspeed wlan2}${alignr}Down:${downspeed wlan2}
${upspeedgraph wlan2 50,120 FF8800 FF8800}${alignr}${downspeedgraph wlan2 50,120 FF8800 FF8800}
Sent:${totalup wlan2}${alignr}Received:${totaldown wlan2}
${else}${if_existing /proc/net/route ppp0}
Up:${upspeed ppp0}${alignr}Down:${downspeed ppp0}
${upspeedgraph ppp0 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp0 50,120 FF8800 FF8800}
Sent:${totalup ppp0}${alignr}Received:${totaldown ppp0}
${else}
Network disconnected
${color6}Connect to a network to see statistics
${voffset 50}
${endif}${endif}${endif}${endif}${endif}
┌─╼ wagmic ╺─╸ bunsenwag [~]
└╼ iwconfig
lo        no wireless extensions.

enp8s0    no wireless extensions.

wlp6s0    IEEE 802.11  ESSID:"ADSL5539"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:19:70:91:86:DF   
          Bit Rate=54 Mb/s   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=65/70  Signal level=-45 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:37   Missed beacon:0

First i see the name of the interface swich from wlan0 to wlp6s0 but when i change that the error stay

if somebody have 5 min and can take a look it'll be kind

thanks by advance

Last edited by wagmic (2018-07-01 13:45:38)


La liberté, personne ne peut l’expliquer mais tout le monde peut la comprendre.Cecilia Meireles
Tout ce qui n'est pas donné ou partagé est perdu (proverbe tsigane)

Offline

#2 2018-06-30 11:26:43

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,579

Re: conky issues since switching to helium #solve#

Conky 1.10 is using a new syntax and I assume that lua script is called trying to convert your old syntax (and fails). I know that wasn't really helpful, but i'd start with clean (empty conky config) and convert it manually (basically line by line). (At least for /me that cryptic error is not doing anything.)

Mini example

conky.config = {
    alignment = 'bottom_right',
    background = true,
    border_width = 0,
    cpu_avg_samples = 2,
    default_color = 'black',
    draw_borders = false,
    draw_graph_borders = false,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    gap_x = 8,
    gap_y = 6,
    minimum_height = 5,
    minimum_width = 25,
    net_avg_samples = 2,
    no_buffers = false,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_argb_visual = true,
    own_window_hints = undecorated,below,sticky,skip_taskbar,skip_pager,
    own_window_transparent = true,
    stippled_borders = 0,
    update_interval = 5.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false,
    default_bar_width = 80,
    default_bar_height = 8,
}

conky.text = [[
${color #131313}
CPU ${cpubar} MEM ${membar} HOME ${fs_bar /home} 
]]

And a slightly fatter example.

Last edited by brontosaurusrex (2018-06-30 11:45:09)

Offline

#3 2018-06-30 13:08:14

unklar
Member
Registered: 2015-10-31
Posts: 729

Re: conky issues since switching to helium #solve#

Try my conversion to the syntax1.10 of your configuration file.
With your commands below TEXT, it won't work on my machine. That's why I cut out the two orders and put them upstairs.

I don't have now time to look into it more closely now.

conky.config = {
-- librement inspiré de Conky Google Now style #
-- Par wagmic #
-- Conky settings #
	background = false,
	update_interval = 1,
	double_buffer = true,
	no_buffers = true,

-- Window specifications #
	own_window_class = 'Conky',
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',  --stick
	own_window_colour = '000000',

	minimum_width = 250, minimum_height = 100,

-- Alignment #
	alignment = 'top_middle',
	gap_x = 20,
	gap_y = 50,

	border_inner_margin = 15,
	border_outer_margin = 0,

-- Graphics settings #
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

-- Text settings #
	use_xft = true,
	xftalpha = 0,
	font = 'Open Sans Light:size=7',

	override_utf8_locale = true,

	imlib_cache_size = 0,

-- Color scheme #
	default_color = '#D3E6E6',

-- if_up_strictness link:  up | link | address
	if_up_strictness = address,

--#${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan0 | cut -c 39-55}
--#${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan2 | cut -c 39-55}

};

conky.text = [[
${if_existing /proc/net/route wlan0}${goto 35}${wireless_essid wlan0}${goto 150}${wireless_link_qual_perc wlan0}%
${goto 35}Gateway:${goto 150}$gw_ip
${goto 35}Ip:${goto 150}${addr wlan0}
${goto 35}Ip public:${goto 147}${execi 1800 wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1 | tail}

${goto 35}Up:${upspeed wlan0}${goto 150}Down:${downspeed wlan0}
${upspeedgraph wlan0 50,120 FFFFF0 FF8800 -t -l}${alignr}${downspeedgraph wlan0 50,120 FF8800 FFFFF0-t -l}
${alignc}Sent:${totalup wlan0}${alignr}Received:${totaldown wlan0}
${else}${if_existing /proc/net/route wlan2}${goto 35}${wireless_essid wlan2}${goto 150}${wireless_link_qual_perc wlan2}%
${goto 35}Gateway:${goto 150}$gw_ip
${goto 35}Ip:${goto 150}${addr wlan2}
${goto 35}Ip public:${goto 150}${execi 1800 wget -q -O - http://ip.tupeux.com | tail }

${goto 35}Up:${upspeed wlan2}${goto 150}Down:${downspeed wlan2}
${upspeedgraph wlan2 50,120 FFFFF0 FF8800 -t -l}${alignr}${downspeedgraph wlan2 50,120 FF8800 FFFFF0-t -l}
${alignc}Sent:${totalup wlan2}${alignr}Received:${totaldown wlan2}
${else}${if_existing /proc/net/route eth0}
Up:${upspeed eth0}${alignr}Down:${downspeed eth0}
${upspeedgraph eth0 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth0 50,120 FF8800 FF8800}
Sent:${totalup eth0}${alignr}Received:${totaldown eth0}
${else}${if_existing /proc/net/route wlan2}${goto 85}${wireless_essid wlan2}${alignr}${wireless_link_qual_perc wlan2}%
Up:${upspeed wlan2}${alignr}Down:${downspeed wlan2}
${upspeedgraph wlan2 50,120 FF8800 FF8800}${alignr}${downspeedgraph wlan2 50,120 FF8800 FF8800}
Sent:${totalup wlan2}${alignr}Received:${totaldown wlan2}
${else}${if_existing /proc/net/route ppp0}
Up:${upspeed ppp0}${alignr}Down:${downspeed ppp0}
${upspeedgraph ppp0 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp0 50,120 FF8800 FF8800}
Sent:${totalup ppp0}${alignr}Received:${totaldown ppp0}
${else}
Network disconnected
${color6}Connect to a network to see statistics
${voffset 50}
${endif}${endif}${endif}${endif}${endif}]];

Offline

#4 2018-07-01 13:44:56

wagmic
Member
From: Casablanca
Registered: 2015-09-30
Posts: 66

Re: conky issues since switching to helium #solve#

@ unklar thanks a lot
i have worked hard yesterday to come to the same config file, i just clean the code and follow the instruction you gave me

conky.config = {
	background = false,
	update_interval = 1,
	double_buffer = true,
	no_buffers = true,
	own_window_class = 'Conky',
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	minimum_width = 250,
	alignment = 'top_middle',
	gap_x = 18,
	gap_y = 43,
	border_inner_margin = 15,
	border_outer_margin = 0,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	use_xft = true,
	xftalpha = 0,
	font = 'Open Sans Light:size=7',
	override_utf8_locale = true,
	imlib_cache_size = 0,
	default_color = '#D3E6E6',
	--maximum_width = 250 100,
	--${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan0 | cut -c 39-55}
	--${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan2 | cut -c 39-55}
}

conky.text = [[
${if_existing /proc/net/route wlan0}${goto 35}${wireless_essid wlan0}${goto 150}${wireless_link_qual_perc wlan0}%
${goto 35}Gateway:${goto 150}$gw_ip
${goto 35}Ip:${goto 150}${addr wlan0}
${goto 35}Ip public:${goto 147}${execi 1800 wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1 | tail}
${goto 35}Up:${upspeed wlan0}${goto 150}Down:${downspeed wlan0}
${upspeedgraph wlan0 50,120 FFFFF0 FF8800 -t -l}${alignr}${downspeedgraph wlan0 50,120 FF8800 FFFFF0-t -l}
${alignc}Sent:${totalup wlan0}${alignr}Received:${totaldown wlan0}
${else}${if_existing /proc/net/route eth0}
Up:${upspeed eth0}${alignr}Down:${downspeed eth0}
${upspeedgraph eth0 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth0 50,120 FF8800 FF8800}
Sent:${totalup eth0}${alignr}Received:${totaldown eth0}
${else}${if_existing /proc/net/route ppp0}
Up:${upspeed ppp0}${alignr}Down:${downspeed ppp0}
${upspeedgraph ppp0 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp0 50,120 FF8800 FF8800}
Sent:${totalup ppp0}${alignr}Received:${totaldown ppp0}
${else}
Network disconnected
${color6}Connect to a network to see statistics
${voffset 50}
${endif}${endif}${endif}
]]

La liberté, personne ne peut l’expliquer mais tout le monde peut la comprendre.Cecilia Meireles
Tout ce qui n'est pas donné ou partagé est perdu (proverbe tsigane)

Offline

Board footer

Powered by FluxBB