Conky Helps and Stuff

Message
Author
User avatar
JmaCWQ
Posts: 225
Joined: Fri Sep 09, 2016 4:42 am

Re: Conky Helps and Stuff

#211 Post by JmaCWQ »

KoO wrote: Tue Sep 04, 2018 5:18 pm To get B/s, KB/s, MB/s to read the (kb/s) need to be remove from the code like below.
Just a little more on this I never thought of yesterday.
There's actually 2 changes needed to get B/s, KB/s & MB/s to display.
The first is as you mention, the kb/s needs removing as it's only text & isn't needed after the 2nd change is made.
The 2nd change is remove the "f" from upspeedf & downspeedf parameters so they are just upspeed & downspeed.
With the f removed the rate will be displayed auto & will show either B, KiB or MiB depending on the speeds measured.

Here's that section of code again reflecting those 2 changes Image

Code: Select all

# NETWORK
${voffset -8}${font Open Sans:Bold:size=10}${color0}NETWORK ${color EC0100}${hr 3}$color
#$color${font Open Sans:bold:size=8.5}External IP ${font}${alignr}${execi 60 curl http://google.com --connect-timeout 2 | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"}$font
#${voffset -14}$alignc${execpi 4 echo "\${font}\${color}ping: \${font Open Sans:bold:size=8.5}\${color6}$(ping -W 1 -c 1 8.8.8.8 -q | grep rtt | egrep [0-9]+\.[0-9]+ -o | head -n 2 | tail -n 1)\${font}\${color} ms"}

${voffset -10}${font Open Sans:bold:size=8.5}Ethernet $font$alignr ${addr eth0}
↑ ${upspeed eth0}  $alignr ${totalup eth0}
${voffset -14}$alignc${upspeedgraph eth0 10,120  ff0000 0000ff}
↓ ${downspeed eth0}  $alignr ${totaldown eth0}
${voffset -14}$alignc${downspeedgraph eth0 10,120  ff0000 0000ff}

${voffset -10}${font Open Sans:bold:size=8.5}WiFi $font${wireless_bitrate wlan0} $alignr ${addr wlan0}
${voffset -14}$alignc${wireless_essid wlan0}
$alignc${color2}${wireless_link_bar 4,260 wlan0}${color E9E9E9} 
↑ ${upspeed wlan0}  $alignr ${totalup wlan0}
${voffset -14}$alignc${upspeedgraph wlan0 10,120 ff0000 0000ff}
↓ ${downspeed wlan0}  $alignr ${totaldown wlan0}
${voffset -14}$alignc${downspeedgraph wlan0 10,120 ff0000 0000ff}


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

Re: Conky Helps and Stuff

#212 Post by KoO »

Just a little more on this I never thought of yesterday.
There's actually 2 changes needed to get B/s, KB/s & MB/s to display.
The first is as you mention, the kb/s needs removing as it's only text & isn't needed after the 2nd change is made.
The 2nd change is remove the "f" from upspeedf & downspeedf parameters so they are just upspeed & downspeed.
With the f removed the rate will be displayed auto & will show either B, KiB or MiB depending on the speeds measured.

Here's that section of code again reflecting those 2 changes Image
Nice work Welcome to the world of conky
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)

User avatar
JmaCWQ
Posts: 225
Joined: Fri Sep 09, 2016 4:42 am

Re: Conky Helps and Stuff

#213 Post by JmaCWQ »

KoO wrote: Fri Sep 14, 2018 10:23 pm Nice work Welcome to the world of conky
Thanks.
Until recently one of the first things I would do on a new install was toggle Conky to off.
Now I wouldn't run without it :p

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

Re: Conky Helps and Stuff

#214 Post by Eadwine Rose »

Well.. as of yesterday evening the conky thing is not showing the weather graphs anymore on the desktop, only the text. Didn't do anything with it, all is in the same spot.

*shrug* I might just let this go and start getting used to the weather app in the panel.


Code: Select all

# 2018-06-26 @male for @Eadwine Rose

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,skip_taskbar,skip_pager,below
#own_window_colour 000000
#own_window_argb_visual yes
#own_window_argb_value 80
own_window_class Conky

minimum_size 650 220
#maximum_width 655
gap_x 25 # l|r
gap_y 225 # u|d
#alignment tl
#alignment mr
alignment top_left

use_xft yes
xftfont GE Inspira:size=9
xftalpha 1

override_utf8_locale yes

draw_shades no
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color ffffff
color1 778899
color2 FFA07A
color3 87CEFA
color4 48D1CC
color5 FFDEAD
color6 00BFFF
color7 ffffff
color8 FFD700
color9 ffffff

draw_borders no
stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2
draw_graph_borders no
background no
use_spacer none
no_buffers yes
double_buffer yes

update_interval 1

lua_load ~/LUA/image.lua

TEXT
##### Start #####
${execi 6000 bash $HOME/1_accuweather/1_accuweather -f2015 -h2015}
##### Time #####
${voffset -38}${font GE Inspira:size=55}${font GE Inspira:size=18}${goto 25}Mycity$color$font
##### Date #####
${voffset -49}${font GE Inspira:size=12}${goto 300}${time %A, %d %B %Y}$font
##### Wind-Info ######
${goto 300}${font GE Inspira:size=12}Wind : ${execi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 300}Humidity : ${execi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 300}Pressure : ${execi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
#### Stadt ####
${voffset -5}${font GE Inspira:size=14}           ${font} ${execi 600 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font}${goto 25}Current :${voffset -10}${font GE Inspira:size=18}${goto 100}${execi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°C         ${font}${goto 250}Today :${voffset -10}${font GE Inspira:size=18}${goto 325}${execi 600 sed -n '3p' $HOME/1_accuweather/first_days}°C / ${execi 600 sed -n '4p' $HOME/1_accuweather/first_days}°C
${goto 555}${voffset -124}${font ubuntu:size=11}  $font
${goto 522}${voffset 8}${font Ubuntu:size=6}  ${goto 583} $font
${goto 493}${voffset -6}${font Ubuntu:size=9}  ${goto 611} $font
${goto 486}${voffset 10}${font Ubuntu:size=6}  ${goto 618} $font
${goto 468}${voffset 5}${font Ubuntu:size=11}  ${goto 641} $font
${goto 486}${voffset 9}${font Ubuntu:size=6}  ${goto 618} 
${goto 493}${voffset 16}${font Ubuntu:size=9}  ${goto 611} $font
${goto 522}${voffset -4}${font Ubuntu:size=6}  ${goto 583} 
${goto 555}${voffset 4}${font Ubuntu:size=11}  $font
#### Showing next two hours and four days ####
${voffset -64}${goto 20}\
${goto 25}${tztime GMT-3 %H} h\
${goto 100}${tztime GMT-4 %H} h\
${goto 175}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3}'`}\
${goto 250}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3}'`}\
${goto 325}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3}'`}\
${goto 400}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3}'`}
##### Temperatures #####
${voffset 25}
${goto 20}\
${goto 25}${execi 600 sed -n '30p' $HOME/1_accuweather/hourly1}°\
${goto 100}${execi 600 sed -n '31p' $HOME/1_accuweather/hourly1}°\
${goto 175}${color9}${execi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 250}${color9}${execi 600 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 325}${color9}${execi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${color}\
${goto 400}${color9}${execi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${color}
#### Icons aktuelle Bedingungen und Wind main image h160 v8 h132 w80 rotation0 ####
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 160 8 132 80 0}#${lua fDrawImage $HOME/1_accuweather/forecast_2015/wind_0.png 465 4 190 190 0}\
#### Icons for the next two hours and four days ####
${lua fDrawImage 0 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_2.png 3 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_3.png 78 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png 155 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png 230 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png 305 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_5.png 380 145 70 40 0}
${voffset -800}
MX-23.2_x64 July 31 2023 * 6.1.0-18-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
richb
Administrator
Posts: 10322
Joined: Wed Jul 12, 2006 2:17 pm

Re: Conky Helps and Stuff

#215 Post by richb »

*shrug* I might just let this go and start getting used to the weather app in the panel.
After my unsuccessful attempts I did just that. It is either the panel app or Accuweather website in my case.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
sunrat
Posts: 636
Joined: Mon Mar 28, 2016 9:54 pm

Re: Conky Helps and Stuff

#216 Post by sunrat »

I gave up on having wttr.in in Conky as well. It regularly would display that data requests were over limit.

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

Re: Conky Helps and Stuff

#217 Post by Eadwine Rose »

I just went and compared with a backup I had made, turns out the images were removed from the /home/username/1_accuweather/forecast_2015/ directory, the /hourly_2015/ directory.


I saw this in the terminal:

Code: Select all

 rm: cannot remove '/home/eadwine/1_accuweather/forecast_2015/forecast_*.png': No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/hourly_2015/hourly_*.png': No such file or directory
which gave it away.


So.. for now this is fixed by simply copying the images back in.
MX-23.2_x64 July 31 2023 * 6.1.0-18-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

male

Re: Conky Helps and Stuff

#218 Post by male »

The pictures
- forecast_2015
- forecast_2016
are also missing here
2018-09-26-16-45-34_scrot.png

Cause is not yet known to me. Probably the website was changed...
The output of the font "ConkyWeather.ttf" is ok.

And, wttr.in has nothing to do with it, but that's okay too. ;)
You do not have the required permissions to view the files attached to this post.

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

Re: Conky Helps and Stuff

#219 Post by Eadwine Rose »

And they disappeared again.

There must be something in the code that is doing this. But yeah.. if I have to reinsert them every few hours.. no.



Edit: just put them back and set all permissions on those images to read only. Wait and see what happens.
MX-23.2_x64 July 31 2023 * 6.1.0-18-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

male

Re: Conky Helps and Stuff

#220 Post by male »

Solution:

In the script, change 1_accuweather to "Search and Replace".
the (5) lines

Code: Select all

wget -o /dev/null -O ...
in

Code: Select all

wget -U firefox -o /dev/null -O ...
and the Conky's are working properly again.
2018-09-26-22-12-30_scrot.png

TBG made the following statement here and presented the solution.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Software / Configuration”