Page 1571 of 2327 FirstFirst ... 5711071147115211561156915701571157215731581162116712071 ... LastLast
Results 15,701 to 15,710 of 23263

Thread: Post your .conkyrc files w/ screenshots

  1. #15701
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: vnstat yearly stats

    Quote Originally Posted by martinblunn View Post
    Hi Guys & Happy New Year!

    Talking of New Year, I was w0ndering if there was a way of using vnstat to display yearly usage? At the moment I am using:-

    Code:
    ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 696}${color 32AFFE}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}${goto 750}${color 32AFFE}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}
    to display monthly usage (down, up & total), but to be honest, I nicked this from someone else and have no idea how it works. Just that it does.

    Any suggestions?

    Martin
    you would have to do it in a script so you could add the usage of the months of the current year

    although i couldnt tell you immediately what that script would look like

  2. #15702
    Join Date
    Jun 2007
    Beans
    Hidden!

    Re: vnstat yearly stats

    Quote Originally Posted by mrpeachy View Post
    you would have to do it in a script so you could add the usage of the months of the current year

    although i couldnt tell you immediately what that script would look like
    Its using the same vnsat script over and over and parsing the results with different awk parameters, shouldn't be too big. But it depends how much work you make the script do and how much you make conky do.

  3. #15703
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    ive got this in a lua script so far

    Code:
    --year usage
    wtimer=(updates % 30)+1
    monthtotals={}
    yeartotal=0
    year=os.date('%Y')
    if updates==6 or wtimer==1 then    
    for i=1,12 do
    month=months[i]
    find=month .. year
    n=i
    monthtotal=(conky_parse("${exec vnstat -m | grep -n '" .. find .. "' | sed -n 1p | awk -F'|' '{print $3}' | sed -e 's/^[ \t]*//'}"))
    monthtotal=string.gsub(monthtotal," ","")
    monthtotalnum=tonumber((string.gsub(monthtotal,"%a","")))
    monthtotalunit=(string.gsub(monthtotal,"[%p%d]",""))
    if monthtotalnum==nil then monthtotalnum=0 end
    if monthtotalunit=="MiB" then monthtotalnum=monthtotalnum/1024
    else if monthtotalunit=="KiB" then monthtotalnum=monthtotalnum/(1024*1024)
    else monthtotalnum=monthtotalnum end end
    monthtotals[i]=monthtotalnum
    end
    for i=1,12 do
    yeartotal=yeartotal+monthtotals[i]
    end
    print (yeartotal, "GiB")
    end
    i only have january for this year and december for last year... but i took away the year requirement for the search and it added dec 10 to jan 11...so im reasonably sure it will work
    also takes into account possible different units for each month and updates every 30 conky cycles

    edit - thinking about it, i could probably loose the table creation step and the second for i loop and go straight for the summation of values...

    edit - i edited my vnstat.conf to make the searching easier
    Code:
    # date output formats for -d, -m, -t and -w
    # see 'man date' for control codes
    DayFormat    "%x"
    MonthFormat  "%b%Y"
    TopFormat    "%x"
    Last edited by mrpeachy; January 4th, 2011 at 09:53 PM.

  4. #15704
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,989
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by foutes View Post
    After some more tinkering I have added gmail to the main conky.

    Played with the offsets to get calender lined up right.

    Added Rhythmbox to the weather conky,still trying to get the album art to work.

    Finally got the .lua size right.


    HMMMMmmmm now what else to do...sure I will think of something else to shoe horn in there
    When you get done, you should post your code.

    I have a netbook and lappy that could use some Conky updating!
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  5. #15705
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,989
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by merlin_ie View Post
    any chance of link to wallpaper?
    http://www.wallpaperstop.com/3d-wall...r-1012007.html (Wallpaper Stop)
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  6. #15706
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by VinDSL View Post
    cheers mate..much appreciated
    Linux...The mistress we all left Windows for

  7. #15707
    Join Date
    Nov 2006
    Location
    Vienna, Austria
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Post your .conkyrc files w/ screenshots

    I set up conky a couple days ago. Computer has been running for 3 days now, ram is at 59% constantly, any idea why?
    Recommended Resources: Ubuntu Linux Resources

  8. #15708
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by PartisanEntity View Post
    I set up conky a couple days ago. Computer has been running for 3 days now, ram is at 59% constantly, any idea why?
    That depends on what's running in your script. Would you mind posting it with a screenshot so we can see it better? And, while you're at it, what happens when you kill a running process or start one? Just, no change in the number at all?

  9. #15709
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by PartisanEntity View Post
    I set up conky a couple days ago. Computer has been running for 3 days now, ram is at 59% constantly, any idea why?
    Take a look at post 15093.

    If that doesn't work, post your .conkyrc.
    The mark of an honest man ... is that he means what he says and knows what he means.
    A.R.

  10. #15710
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,014
    Distro
    Xubuntu

    Re: vnstat yearly stats

    Quote Originally Posted by helmuthdu View Post
    This is my newest work!
    [snip]
    ... enjoy!

    Download
    I like the "board" (bored?) conky.

Page 1571 of 2327 FirstFirst ... 5711071147115211561156915701571157215731581162116712071 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •