SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#7726 2014-08-04 08:53:02

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

Hi,

I have a question. The network stats don't work. I use here antergos KDE

Here is the code

${color #4AEDC5}Netwerk:
${downspeedgraph eth0 25,120 000000 0ABFFF} ${alignr}${upspeedgraph eth0 25,120 000000 0ABFFF}$color
${color #0ABFFF}Total:$color ${totaldown eth0} ${alignr}${color #0ABFFF}Total:$color ${totalup eth0}

Offline

Be excellent to each other!

#7727 2014-08-04 13:05:45

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

Antergos is Arch based, use ip in a terminal to see what your network interfaces are called - Arch implementation of systemd didn't use eth0 or wlan0 when I installed it a while back.

in a terminal

ip link

will list your active interfaces (most basic command, there are some better ones to get more information).


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#7728 2014-08-04 15:43:37

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

I found it. I must change eth0 with enp3s0

I have antother question. Is it possible to show altime download and upload stats in conky?

Offline

#7729 2014-08-04 16:57:45

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Yes, you need "vnstats"
2014_08_04_13_54_55_1920x1080_Sector11.jpg

${voffset 5}Transfer Totals ${color7}${hr}${color}
${color5}rx ↓${goto 85}${color0}tx ↑${goto 170}${color5}Total
${goto 5}${color}${exec date --date="0 day" | awk '{print $3" "$2" "$6}'}
${color5}${execpi 300 vnstat | grep "today" | awk '{print $2" "$3"\
${color0}${goto 85}"$5" "$6"\
${color5}${goto 170}"$8" "$9}'}
${goto 5}${color}${execpi 3600 date --date="-1 day" | awk '{print $3" "$2" "$6}'}
${color5}${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3"\
${color0}${goto 85}"$5" "$6 "\
${color5}${goto 170}" $8" "$9}'}
${goto 5}${color}Current Week
${color5}${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
${color0}${goto 85}" $6" "$7 "\
${color5}${goto 170}" $9" "$10}'}
${goto 5}${color}Last Week
${color5}${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
${color0}${goto 85}" $6" "$7 "\
${color5}${goto 170}" $9" "$10}'}
${goto 5}${color}Last 7 Days
${color5}${execpi 300 vnstat -w | grep "last 7 days" | awk '{print $4" "$5 "\
${color0}${goto 85}" $7" "$8 "\
${color5}${goto 170}" $10" "$11}'}
${goto 5}${color}${time %b %Y}
${color5}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
${color0}${goto 85}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${color5}${goto 170}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7730 2014-08-04 17:10:29

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

Must I place that in the conky.conf?

I have done that. Do I have stats there at the same time? Because I don't see anything

Last edited by satshow (2014-08-04 17:17:32)

Offline

#7731 2014-08-04 17:38:15

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

Must I place that in the conky.conf?

I have done that. Do I have stats there at the same time? Because I don't see anything

conky.config?  What conky file are you editing?

Using vnstat in conky

Looks like you'll need to do:

sudo vnstat -u -i enp3s0

vnstats keeps records back one year.  I have edited /home/sector11/.vnstatrc because the single ' in the year caused problems:

~/.vnstatrc

# vnStat 1.11 config file
##

# default interface
Interface "enp3s0"      ###"eth0"  change this to enp3s0

# location of the database directory
DatabaseDir "/var/lib/vnstat"

# locale (LC_ALL) ("-" = use system locale)
Locale "-"

# on which day should months change
MonthRotate 1

# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
#DayFormat    "%x"
DayFormat    "%d/%m/%y"
MonthFormat  "%b %y"
#TopFormat    "%x"
TopFormat    "%d/%m/%y"

# characters used for visuals
RXCharacter       "%"
TXCharacter       ":"
RXHourCharacter   "r"
TXHourCharacter   "t"

# how units are prefixed when traffic is shown
# 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
# 1 = old style binary prefixes (KB/MB/GB/TB)
UnitMode 1

# output style
# 0 = minimal & narrow, 1 = bar column visible
# 2 = same as 1 except rate in summary and weekly
# 3 = rate column visible
OutputStyle 3

# used rate unit (0 = bytes, 1 = bits)


RateUnit 1

# maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
# (unless interface specific limit is given)
MaxBandwidth 600

# interface specific limits
#  example 8Mbit limit for eth0 (remove # to activate):
#MaxBWeth0 8

# how many seconds should sampling for -tr take by default
Sampletime 5

# default query mode
# 0 = normal, 1 = days, 2 = months, 3 = top10
# 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
QueryMode 0

# filesystem disk space check (1 = enabled, 0 = disabled)
CheckDiskSpace 1

# database file locking (1 = enabled, 0 = disabled)
UseFileLocking 1

# how much the boot time can variate between updates (seconds)
BootVariation 15

# log days without traffic to daily list (1 = enabled, 0 = disabled)
TrafficlessDays 1


# vnstatd
##

# how often (in seconds) interface data is updated
UpdateInterval 30

# how often (in seconds) interface status changes are checked
PollInterval 5

# how often (in minutes) data is saved to file
SaveInterval 5

# how often (in minutes) data is saved when all interface are offline
OfflineSaveInterval 30

# force data save when interface status changes (1 = enabled, 0 = disabled)
SaveOnStatusChange 1

# enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
UseLogging 2

# file used for logging if UseLogging is set to 1
LogFile "/var/log/vnstat.log"

# file used as daemon pid / lock file
PidFile "/var/run/vnstat.pid"


# vnstati
##

# title timestamp format
HeaderFormat "%x %H:%M"

# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1

# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 1

# layout of summary (1 = with monthly, 0 = without monthly)
SummaryLayout 1

# transparent background (1 = enabled, 0 = disabled)
TransparentBg 0

# image colors
CBackground     "FFFFFF"
CEdge           "AEAEAE"
CHeader         "606060"
CHeaderTitle    "FFFFFF"
CHeaderDate     "FFFFFF"
CText           "000000"
CLine           "B0B0B0"
CLineL          "-"
CRx             "92CF00"
CTx             "606060"
CRxD            "-"
CTxD            "-"

To see it in action - In a terminal type:

vnstat

or for weeks:

vnstat -w

or for days:

vnstat -d

or for months:

vnstat -m

If you have 'just' installed vnstat - then the database will start with today and will record what your net stats are for a year, then it starts over writing the oldest data.  the above will show more info as time passes.

Mine:

 04 Aug 14 | 14:26:25 ~
    $ vnstat
Database updated: Mon Aug  4 14:21:33 2014

   eth0 since 16/07/14

          rx:  16.04 GB      tx:  691.75 MB      total:  16.72 GB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
        Jul 14       9.04 GB |   446.30 MB |     9.48 GB |   29.69 kbit/s
        Aug 14       7.00 GB |   245.46 MB |     7.24 GB |  195.32 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated      60.30 GB |     2.06 GB |    62.36 GB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     yesterday       1.26 GB |    46.02 MB |     1.31 GB |  127.14 kbit/s
         today      90.48 MB |     6.25 MB |    96.73 MB |   15.33 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        150 MB |       10 MB |      160 MB |
 
 04 Aug 14 | 14:26:29 ~
    $ vnstat -w

 eth0  /  weekly

                      rx      |     tx      |    total    |   avg. rate
   ---------------------------+-------------+-------------+---------------
    last 7 days       8.02 GB |   311.52 MB |     8.32 GB |  122.37 kbit/s
      last week       8.60 GB |   333.40 MB |     8.92 GB |  123.77 kbit/s
   current week      90.51 MB |     6.27 MB |    96.78 MB |   15.25 kbit/s
   ---------------------------+-------------+-------------+---------------
      estimated       1.05 GB |       72 MB |     1.12 GB |
 
 04 Aug 14 | 14:27:22 ~
    $ vnstat -d

 eth0  /  daily

         day         rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
      16/07/14     569.93 MB |    29.43 MB |   599.37 MB |   56.83 kbit/s
      17/07/14       1.42 GB |    55.29 MB |     1.47 GB |  142.64 kbit/s
      18/07/14     418.94 MB |    23.24 MB |   442.18 MB |   41.93 kbit/s
      19/07/14     119.38 MB |    13.34 MB |   132.72 MB |   12.58 kbit/s
      20/07/14     242.98 MB |    16.34 MB |   259.32 MB |   24.59 kbit/s
      21/07/14     304.50 MB |    21.97 MB |   326.46 MB |   30.95 kbit/s
      22/07/14       1.53 GB |    62.86 MB |     1.59 GB |  154.24 kbit/s
      23/07/14     451.84 MB |    24.61 MB |   476.45 MB |   45.17 kbit/s
      24/07/14     444.80 MB |    24.93 MB |   469.73 MB |   44.54 kbit/s
      25/07/14     406.90 MB |    21.08 MB |   427.98 MB |   40.58 kbit/s
      26/07/14     497.19 MB |    19.69 MB |   516.88 MB |   49.01 kbit/s
      27/07/14       1.04 GB |    39.30 MB |     1.08 GB |  104.65 kbit/s
      28/07/14     685.81 MB |    28.15 MB |   713.96 MB |   67.69 kbit/s
      29/07/14     441.59 MB |    21.40 MB |   463.00 MB |   43.90 kbit/s
      30/07/14     302.09 MB |    20.97 MB |   323.06 MB |   30.63 kbit/s
      31/07/14     298.25 MB |    23.67 MB |   321.93 MB |   30.52 kbit/s
      01/08/14       2.24 GB |    79.24 MB |     2.32 GB |  225.13 kbit/s
      02/08/14       3.40 GB |   113.94 MB |     3.52 GB |  341.38 kbit/s
      03/08/14       1.26 GB |    46.02 MB |     1.31 GB |  127.14 kbit/s
      04/08/14      90.51 MB |     6.27 MB |    96.78 MB |   15.25 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        149 MB |        9 MB |      158 MB |
 
 04 Aug 14 | 14:27:27 ~
    $

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7732 2014-08-04 18:08:22

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

sudo vnstat -u -i enp3s0

When I do that in the terminal nothing found

I edit conky.conf  in the map conky

Edit I have installed and make a database. I see there is not enough date right now

Last edited by satshow (2014-08-04 18:31:03)

Offline

#7733 2014-08-04 19:16:33

Dave6
#! CrunchBanger
Registered: 2014-05-25
Posts: 101

Re: Conky v1.9 Thread

Have you installed vnstat?

Offline

#7734 2014-08-04 19:36:24

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

Yes I have installed vnstat.

I have reboot my system and I see this in the terminal

[fred@fred ~]$ vnstat
 enp3s0: Not enough data available yet.

When I look in dolphin to ~var/lib/vnstat I see there a file that is created but after that nothing to do.

In the conky I see now 6 kb download, but I do a test and download a big file like 250 MB but I don't see that in the conky and not when I do in the terminal vnstat

This my database now

Database updated: Mon Aug  4 22:09:23 2014

   enp3s0 since 04/08/14

          rx:  3 KB      tx:  3 KB      total:  6 KB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
        Aug 14          3 KB |        3 KB |        6 KB |    0.00 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
      04/08/14          3 KB |        3 KB |        6 KB |    0.00 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

Last edited by satshow (2014-08-05 08:23:54)

Offline

#7735 2014-08-06 10:01:17

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

I can't find how I must start vnstat during reboot.

Found it

systemctl enable vnstat.service

Last edited by satshow (2014-08-06 18:11:39)

Offline

#7736 2014-08-07 03:58:19

observingly
#! Member
From: Manila, Philippines
Registered: 2013-01-13
Posts: 98
Website

Re: Conky v1.9 Thread

The degrees sign won't show properly. How can i fix this?


"You see, but you do not observe." -Sherlock Holmes

Offline

#7737 2014-08-07 07:00:03

Copper0
#! CrunchBanger
Registered: 2013-07-02
Posts: 149

Re: Conky v1.9 Thread

@observingly

look at this post in this thread or Sector11's post right before.

Offline

#7738 2014-08-11 12:45:33

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

I have my conky with vnstat now a few days in use. I see information on my conky but in the month august I don't see anything.
When wil there the information show there?

Here is a screenscot of my conky

53e604bc77cc4-schermafdruk3.thumb.jpg

Is there someone wrong in the code? This is the code of my conky I use

override_utf8_locale yes
use_xft yes
xftfont HandelGotD:size=8
xftalpha 0.8
text_buffer_size 2048
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 
maximum_width 320
draw_shades yes
default_color ffffff
default_shade_color 000000
draw_outline no
draw_borders no
stippled_borders 0
alignment top_right
gap_x 25
gap_y 40

TEXT


${color #1EB5FF}Naam: ${color  #98FF76}$alignr $nodename
${color 0090ff}${voffset 2}${hr 1}
${color #1EB5FF}Datum: ${color #98FF76}$alignr${time %A,}$alignr ${time %e %B %G}
${color #1EB5FF}Tijd: ${color #98FF76}$alignr${time %H:%M:%S}
${color #1EB5FF}Online: ${color  #98FF76}$alignr$uptime

${color #10FAF7}Systeem:
${color 0090ff}${voffset 2}${hr 1}
${color #1EB5FF}Distributie: ${color  #98FF76}$alignr ${pre_exec cat /etc/issue.net} $machine 
${color #1EB5FF}Kernel: ${color }$alignr${color  #98FF76} $kernel
${color #1EB5FF}Public IP:${color5}${alignr}${color  #98FF76} ${execi 300 wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
${color #1EB5FF}Local IP:${color5}${alignr}${color  #98FF76}${addr enp3s0}
${color #1EB5FF}Router IP:${color5}${alignr}${color  #98FF76}${gw_ip}
${color #1EB5FF}DNS: ${color5}${alignr}${color  #98FF76}$nameserver
${color #1EB5FF}Systeem Updates: ${color5}${alignr}${color  #FF80DF}${execpi 1800 kalu -m | grep updates | cut -c 1-10 | grep -oE '[0-9]{1,9}'} ${color #98FF76}Pakketten

${color #10FAF7}CPU en Draaiende processen:
${color 0090ff}${voffset 2}${hr 1}
${color #1EB5FF}Intel Core 4 @ ${color  #98FF76} ${freq}MHz   
${color #1EB5FF}Core 1 :${color  #98FF76}${cpu cpu1}% ${color #0090ff}${cpubar cpu1}
${color #1EB5FF}Core 2 :${color  #98FF76}${cpu cpu2}% ${color #0090ff}${cpubar cpu2}
${color #1EB5FF}Core 3 :${color  #98FF76}${cpu cpu3}% ${color #0090ff}${cpubar cpu3}
${color #1EB5FF}Core 4 :${color  #98FF76}${cpu cpu4}% ${color #0090ff}${cpubar cpu4}

${color #1EB5FF}Core 1 temperatuur: $alignr ${color  #98FF76}${hwmon 2 temp 1} C
${color #1EB5FF}Core 2 temperatuur: $alignr ${color  #98FF76}${hwmon 2 temp 2} C
${color #1EB5FF}Core 3 temperatuur: $alignr ${color  #98FF76}${hwmon 2 temp 3} C
${color #1EB5FF}Core 4 temperatuur: $alignr ${color  #98FF76}${hwmon 2 temp 4} C
${color #1EB5FF}Processen: $alignr ${color  #98FF76}$processes  
${color #1EB5FF}Lopende processen: $alignr ${color  #98FF76}$running_processes lopende

${color #30DDFB}${voffset 5}CPU gebruik:${goto 122}PID${goto 163}CPU%${goto 210}MEM%${color  #98FF76}${voffset 5}
${top name 1}${goto 115}${top pid 1}${goto 160}${top cpu 1}${goto 205}${top mem 1}
${top name 2}${goto 115}${top pid 2}${goto 160}${top cpu 2}${goto 205}${top mem 2}
${top name 3}${goto 115}${top pid 3}${goto 160}${top cpu 3}${goto 205}${top mem 3}
${top name 4}${goto 115}${top pid 4}${goto 160}${top cpu 4}${goto 205}${top mem 4}
${color #30DDFB}${voffset 5}Memory gebruik:${color  #98FF76}${voffset 5}
${top_mem name 1}${goto 115} ${top_mem pid 1}${goto 160} ${top_mem cpu 1}${goto 205} ${top_mem mem 1}
${top_mem name 2}${goto 115} ${top_mem pid 2}${goto 160} ${top_mem cpu 2}${goto 205} ${top_mem mem 2}
${top_mem name 3}${goto 115} ${top_mem pid 3}${goto 160} ${top_mem cpu 3}${goto 205} ${top_mem mem 3}

${color #30DDFB}CPU:${color  #98FF76}${alignr}${cpu cpu}%
${color #0090ff}${cpubar}
${color #30DDFB}Memory: ${color #98FF76}$mem/$memmax$alignr$memperc%
${color #0090ff}${fs_bar /home}
${color #30DDFB}Harde schijf: ${color  #98FF76}$alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /}%
${color #0090ff}${fs_bar /home}
${color #30DDFB}SWAP ${color  #98FF76}$alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${color #0090ff}${swapbar}

${color #10FAF7}Netwerk en Transfer Totalen:
${color 0090ff}${voffset 2}${hr 1}
${color #30DDFB}Download ↓${goto 100}${color #30DDFB}Upload ↑${goto 190}${color #30DDFB}Totaal
${goto 5}${color #30DDFB}${exec date --date="0 day" | awk '{print $3" "$2" "$6}'}
${color  #98FF76}${execpi 300 vnstat | grep "today" | awk '{print $2" "$3"\
${color  #98FF76}${goto 85}"$5" "$6"\
${color  #98FF76}${goto 170}"$8" "$9}'}
${goto 5}${color #30DDFB}${execpi 3600 date --date="-1 day" | awk '{print $3" "$2" "$6}'}
${color  #98FF76}${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3"\
${color  #98FF76}${goto 85}"$5" "$6 "\
${color  #98FF76}${goto 170}" $8" "$9}'}
${goto 5}${color #30DDFB}Huidige Week
${color  #98FF76}${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
${color  #98FF76}${goto 85}" $6" "$7 "\
${color  #98FF76}${goto 170}" $9" "$10}'}
${goto 5}${color #30DDFB}Laatste Week
${color  #98FF76}${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
${color  #98FF76}${goto 85}" $6" "$7 "\
${color  #98FF76}${goto 170}" $9" "$10}'}
${goto 5}${color #30DDFB}Laatste 7 Dagen
${color  #98FF76}${execpi 300 vnstat -w | grep "last 7 days" | awk '{print $4" "$5 "\
${color  #98FF76}${goto 85}" $7" "$8 "\
${color  #98FF76}${goto 170}" $10" "$11}'}
${goto 5}${color #30DDFB}${time %b %Y}
${color  #98FF76}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
${color  #98FF76}${goto 85}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${color  #98FF76}${goto 170}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}
${color #0090ff}Down: ${color  #98FF76}${downspeed enp3s0} k/s ${alignr}${color #0090ff}Up:${color  #98FF76} ${upspeed enp3s0} k/s
${color #1EB5FF}${downspeedgraph enp3s0 19,100 000000 00ff00} ${alignr}${upspeedgraph enp3s0 19,100 000000 ff0000}$color
${voffset 10}${color #0090ff}Total:${color  #98FF76} ${totaldown enp3s0} ${alignr}${color #0090ff}Total:${color  #98FF76} ${totalup enp3s0}

${color #30DDFB}Netwerkverkeer:
${color #1EB5FF}Ontvangen:${tcp_portmon 1 32767 count}${alignr}Uitgaand:${tcp_portmon 32768 61000 count}
${color #1EB5FF}Totaal:${tcp_portmon 1 65535 count}

Last edited by satshow (2014-08-11 12:48:30)

Offline

#7739 2014-08-11 14:05:22

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

For all those that might be interested Lounge Radio website is back in full operation cool
This means I can use my Lounge Radio 'now playing' image script courtesy of Naik,arclance and the guys and girls on this thread.

#!/bin/bash
#pulling info from loung-radio.com for conky
#2013 by nlinedesignz@web.de
#call like ${execi 13 /path/to/loungradio.sh}
#add ${image ~/.loungeradio -p xx,yy -s 123x123} for albumart
 
wget http://www.lounge-radio.com/code/pushed_files/now.html -O ~/loungeradio.html >/dev/null 2>&1 &&
 
artist=$(awk '/id="artist"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
album=$(awk '/id="album"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
track=$(awk '/id="track"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
 
wget "http://www.lounge-radio.com/code/pushed_files/$(awk '/id="covercontainer"/{print}' ~/loungeradio.html | sed -r 's/.*src="(.*)" width=.*/\1/')" -O ~/.loungeradio >/dev/null 2>&1 &&
 
echo 'Artist:' $artist;
echo 'Track:' $track;
echo 'Album:' $album;
 
exit
##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont Tamsyn:pixelsize=12
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_class conky
double_buffer yes
minimum_size 300 400
maximum_width 450
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_inner_margin 0
border_width 1
draw_graph_borders no
default_color grey10
color1 grey30
color2 grey20
default_shade_color grey10
default_outline_color white
alignment tr
gap_x 20
gap_y  20
 no_buffers yes
uppercase no
text_buffer_size 1024
imlib_cache_size 0 
cpu_avg_samples 2
show_graph_scale no
show_graph_range no
short_units yes
override_utf8_locale yes
use_spacer none
if_up_strictness address
##############################################
#  Output
##############################################
TEXT

##__${blink |}__${blink |}__${blink |}__${color1} 
${execi 120 ~/loungeradio.sh}
${image ~/.loungeradio -p 100,50 -s 160x160}

I am designing a desktop in black and white.
How would I output the 'now playing' image in conky in black and white?
Imagemagick maybe;

convert ~/.loungeradio -monochrome ~/.loungeradio1

I think I just need to integrate something like this into the script...

Any ideas welcome.

Last edited by chameleon (2014-08-11 14:26:58)

Offline

#7740 2014-08-11 14:35:41

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

May be like this in your conkyrc, after :
${execi 120 ~/loungeradio.sh}

${execi 120 convert ~/.loungeradio -monochrome ~/.loungeradio1}
${image ~/.loungeradio1 -p 100,50 -s 160x160}

Last edited by chepioq (2014-08-11 14:37:56)

Offline

#7741 2014-08-11 14:40:46

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

@chepioq
Thanks.
Got it now... I have also found this ImageMagick command gives a better 'black and white' for me;

convert ~/.loungeradio -colorspace Gray ~/.loungeradio1

Offline

#7742 2014-08-13 21:35:30

jeffog
New Member
Registered: 2014-08-13
Posts: 1

Re: Conky v1.9 Thread

Ok, who wants a bit of fun?

Ascii Instagram (https://richardkszabo.me/instascii/)
+
Conky
=
Absolutely pointless but interesting

Offline

#7743 2014-08-17 09:52:26

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

i want to display the current utc-time with conky? do you have an idea how to use this? maybe a built in function?

edit: i just found the conky-variable utime. i hope this works.

Last edited by lionhead (2014-08-17 09:57:33)

Offline

#7744 2014-08-17 11:44:04

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

If that don't work you can use date command :

date -u +%H:%M

Last edited by chepioq (2014-08-17 11:44:40)

Offline

#7745 2014-08-17 13:19:08

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

i use this code in conky:

${utime %H:%M:%S}

and this code in lua (only for hours):

os.date("!%H")

Last edited by lionhead (2014-08-17 13:51:08)

Offline

#7746 2014-08-18 01:17:22

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

Is there somethinge wrong in the code? This is the code of my conky I use

Not a thing wrong with your code... you are using my coding, and I changed my vnstat config file:

These are from my conky (less any colour or other format commands):

${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}
${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}

These (less any colour or other format commands) are from your conky:
${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}

They are the same which means you have not changed your config for vnstat.
man vnstat tells us:

       /etc/vnstat.conf
              Config file that will be used unless $HOME/.vnstatrc exists. See vnstat.conf(5) for more infor‐
              mation.

and for the "Month" that shows:

DayFormat    "%x"
MonthFormat  "%b '%y"
TopFormat    "%x"

I created $HOME/.vnstatrc an that section is missing the ' before the year MonthFormat  "%b '%y":
Copy and paste this to your home and restart your conky ... it should work, if not restart your session.
~/.vnstatrc

# vnStat 1.11 config file
##

# default interface
Interface "eth0"

# location of the database directory
DatabaseDir "/var/lib/vnstat"
#DatabaseDir "/home/sector11/vnstat"

# locale (LC_ALL) ("-" = use system locale)
Locale "-"

# on which day should months change
MonthRotate 1

# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
#DayFormat    "%x"
DayFormat    "%d/%m/%y"
MonthFormat  "%b %y"
#TopFormat    "%x"
TopFormat    "%d/%m/%y"

# characters used for visuals
RXCharacter       "%"
TXCharacter       ":"
RXHourCharacter   "r"
TXHourCharacter   "t"

# how units are prefixed when traffic is shown
# 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
# 1 = old style binary prefixes (KB/MB/GB/TB)
UnitMode 1

# output style
# 0 = minimal & narrow, 1 = bar column visible
# 2 = same as 1 except rate in summary and weekly
# 3 = rate column visible
OutputStyle 3

# used rate unit (0 = bytes, 1 = bits)
RateUnit 1

# maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
# (unless interface specific limit is given)
MaxBandwidth 600

# interface specific limits
#  example 8Mbit limit for eth0 (remove # to activate):
#MaxBWeth0 8

# how many seconds should sampling for -tr take by default
Sampletime 5

# default query mode
# 0 = normal, 1 = days, 2 = months, 3 = top10
# 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
QueryMode 0

# filesystem disk space check (1 = enabled, 0 = disabled)
CheckDiskSpace 1

# database file locking (1 = enabled, 0 = disabled)
UseFileLocking 1

# how much the boot time can variate between updates (seconds)
BootVariation 15

# log days without traffic to daily list (1 = enabled, 0 = disabled)
TrafficlessDays 1


# vnstatd
##

# how often (in seconds) interface data is updated
UpdateInterval 30

# how often (in seconds) interface status changes are checked
PollInterval 5

# how often (in minutes) data is saved to file
SaveInterval 5

# how often (in minutes) data is saved when all interface are offline
OfflineSaveInterval 30

# force data save when interface status changes (1 = enabled, 0 = disabled)
SaveOnStatusChange 1

# enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
UseLogging 2

# file used for logging if UseLogging is set to 1
LogFile "/var/log/vnstat.log"

# file used as daemon pid / lock file
PidFile "/var/run/vnstat.pid"


# vnstati
##

# title timestamp format
HeaderFormat "%x %H:%M"

# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1

# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 1

# layout of summary (1 = with monthly, 0 = without monthly)
SummaryLayout 1

# transparent background (1 = enabled, 0 = disabled)
TransparentBg 0

# image colors
CBackground     "FFFFFF"
CEdge           "AEAEAE"
CHeader         "606060"
CHeaderTitle    "FFFFFF"
CHeaderDate     "FFFFFF"
CText           "000000"
CLine           "B0B0B0"
CLineL          "-"
CRx             "92CF00"
CTx             "606060"
CRxD            "-"
CTxD            "-"

I reinstalled last month so it doesn't go back as far as it used to.
2014_08_17_22_10_21_1920x1080_Sector11.jpg

BTW could you share your wallpaper?


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7747 2014-08-18 16:34:48

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

I have make the changes but I don't see anything changes. What is your output of  /etc/vnstat.conf?

Maybe I did there  some wrong. I have there eaxct the same file as in /.vnstatrc
I have place /.vnstatrc  in /home/fred/.vnstatrc

You can find the wallpaper here at these link
http://www.imgdumper.nl/uploads8/53f21e … 38acb4.jpg

Offline

#7748 2014-08-18 19:24:08

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

You can find the wallpaper here at these link
http://www.imgdumper.nl/uploads8/53f21e … 38acb4.jpg

Thank you for the wallpaper....

The difference between ~/.vnstatrc and /etc/vnstat.conf is in this line:

Original: /etc/vnstat.conf

MonthFormat  "%b '%y"

Mine: ~/vnstatrc

MonthFormat  "%b %y"

Original ends with:

'%y"

Mine ends with

%y"

No

'

before the %y


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7749 2014-08-18 22:38:07

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

A new group of conkys - nine in all made for the wallpaper 1920x1080 - grimy_wall_by_alpha_10-d7bvin6.jpg (included in the archive)

Grimy_Wall
2014_08_16_21_54_03_1920x1080_Sector11.jpg

File available at Deviant Art Conky Group - 6.6MB Zip

clock by easysid (modified) (See README)
lats and longs and email by Kaivalagi (See README_II)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Be excellent to each other!

#7750 2014-08-19 00:09:35

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Conky v1.9 Thread

Looks great - well, not completely, because I'm trying it out on a 1366x768 laptop!

Love that clock smile

I was getting some ghost conky backgrounds though, until I turned compositing off sad


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo