Page 2294 of 2317 FirstFirst ... 12941794219422442284229222932294229522962304 ... LastLast
Results 22,931 to 22,940 of 23163

Thread: Post your .conkyrc files w/ screenshots

  1. #22931
    Join Date
    Oct 2010
    Beans
    18

    Re: Post your .conkyrc files w/ screenshots

    Okay, here's two more problems that are driving me nuts...

    I'm using curl, cut, and sed to process some json data to display it in my conky window. Here's the snippet of code I tried to use:

    Code:
    ${color2}${goto 10}${texeci 3600 curl https://cavirtex.com/api2/trades.json?currencypair=BTCCAD&days=1 | cut -d " " -f 11,13,25 | sed -e 's/,//g' -e 's/ /    /g' }
    However, it appears that curl takes too long to retrieve the data because the cut and sed processing gets skipped and the whole output gets sent to output. As a workaround, I created a cronjob that uses curl to grab the data and create a raw textfile for processing. here's the crontab entry:

    Code:
    */1    *   *   *   *     curl -o /home/chrison/trades_raw.txt https://www.cavirtex.com/api2/trades.json?currencypair=BTCCAD&days=1
    Then, I'm using this in my conkyrc file:

    Code:
    ${color2}${goto 10}${texeci 3600 cat ~/trades_raw.txt | cut -d " " -f 11,13,25 | sed -e 's/,//g' -e 's/ /    /g' }
    Is there a way to fix things so I can do this from my conkyrc script instead of this workaround?

    Now for the second problem...

    [EDIT: I've figured this one out myself (use the "-f filename" option in sed) but I'm leaving this in just in case someone else runs into the problem]

    The json output contains a curly brace "}" as the record delimiter. I tried stripping it out using this code (the problem code is highlighted in red):

    Code:
    ${color2}${goto 10}${texeci 3600 cat ~/trades_raw.txt | cut -d " " -f 11,13,25 | sed -e 's/,//g' -e 's/ /    /g' -e 's/}//g' }

    However, the curly brace in that last sed command breaks the script because conky thinks that the "}" marks the end of the texeci command. Is there a way to escape the curly brace so that conky knows it's for sed and not the end of the texeci command?

    Thanks so much for all the help thus far. I'm making progress on getting to where I want my conky setup to be, thanks to you folks!

    Regards,

    Chris
    Last edited by Chrison999; September 1st, 2014 at 09:18 AM.

  2. #22932
    Join Date
    Aug 2014
    Location
    The Beach
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    @Chrison999
    Does this work.
    Create a script to run the curl command. Enclose the https in double quotes.
    curl-cavirtex.sh
    Code:
    #!/bin/bash
    curl "https://cavirtex.com/api2/trades.json?currencypair=BTCCAD&days=1" | cut -d " " -f 11,13,25 | sed -e 's/,//g' -e 's/ /    /g' -e 's/}//g'

    Conky line just using execi to call the script. (Use your path to script)
    Code:
    ${execi 3600 /home/CantankRus/scripts/curl-cavirtex.sh}
    Not sure what your after but I see as in pic.
    Attached Images Attached Images

  3. #22933
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Chrison999 View Post
    LOL! We're having a DOH!-fest! It's party time!

    Seriously though...

    You da man!

    Thanks! I'll check that out, although I'm not "against" weather images instead of fonts... I'm just currently using what I happened to stumble across (literally!) while wandering the net. That said, what script would you suggest if I wanted to use images?
    Yea ... should be a DOugHnut fest

    Not da man ... just a conky nut.

    Check out Teo's link for weather - with images or fonts. This is his weather.com script that uses images ... I'm not displaying them:


    And my wife uses, on her desktop, a HUGE clock with today's current & forecast weather in the middle using the same Teo script for weather.com and as a popup - mrpeachys's v9000 LUA weather script - for a complete forecast.

  4. #22934
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    @ CantankRus

    That's pretty slick, I popped that into my test conky. Something to play with.

    Curious: What font are you using in your test?

  5. #22935
    Join Date
    Oct 2010
    Beans
    18

    Re: Post your .conkyrc files w/ screenshots

    @CantankRus:

    That script indeed works... Thanks! I tried repeatedly to do the same thing last night but for some reason only got garbage on the screen.

    @Sector11:
    I love DOugHnuts!

    I have checked out Theo's link. There's a lot there to play with, for sure! Thanks! For the moment I'm going to stick with what I have, but the "Plan" has changed and now it's to switch to image fonts at some point.

    @Everyone:

    Thanks, again, for all the help! I'm getting pretty close to having my scripts cleaned up and once they're done I'll post a screenshot of my desktop and the scripts.

    Regards,

    Chris

  6. #22936
    Join Date
    Oct 2010
    Beans
    18

    Re: Post your .conkyrc files w/ screenshots

    Ok, as promised here's a screenshot of my current conky desktop, along with the two scripts that create it. Thanks, again, to everyone who provided help in getting me this far! It's not super-fancy, but I'm sure proud at how nice it looks.

    @Sector11: I notice that Theo's 1b1_accuweather script gives me celcius output (because I'm in Canada) but I've never gotten used to celcius so I'm wondering if there's a way to modify that script to grab the data in fahrenheit? Failing that, does anyone know of a script to convert celcius into fahrenheit that I could insert into my code?

    Finally, let's talk about gcalcli for a second because that's another thing I want to add to my conky desktop. I have installed gcalcli but I'm getting the following error when I test it:

    Code:
    Traceback (most recent call last):
      File "/usr/local/bin/gcalcli", line 5, in <module>
        pkg_resources.run_script('gcalcli==3.1', 'gcalcli')
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
        self.require(requires)[0].run_script(script_name, ns)
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401, in run_script
        exec(script_code, namespace, namespace)
      File "/usr/local/lib/python2.7/dist-packages/gcalcli-3.1-py2.7.egg/EGG-INFO/scripts/gcalcli", line 369, in <module>
        
      File "/usr/local/lib/python2.7/dist-packages/gcalcli-3.1-py2.7.egg/EGG-INFO/scripts/gcalcli", line 388, in gcalcli
        
      File "/usr/local/lib/python2.7/dist-packages/gcalcli-3.1-py2.7.egg/EGG-INFO/scripts/gcalcli", line 321, in __init__
        
      File "/usr/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 216, in __init__
        self.ptc = Constants()
      File "/usr/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 1733, in __init__
        self.locale = pdtLocales['icu'](self.localeID)
      File "/usr/lib/python2.7/dist-packages/parsedatetime/pdt_locales.py", line 151, in __init__
        self.icu = pyicu.Locale(localeID)
    icu.InvalidArgsError: (<type 'icu.Locale'>, '__init__', (None,))
    Has anyone run across this and found a solution? If not, what other options do I have for putting my Google calendar appointment in my conky desktop?

    Again, thanks for any assistance provided!

    Regards,

    Chris
    Attached Images Attached Images
    Attached Files Attached Files

  7. #22937
    Join Date
    Aug 2014
    Location
    The Beach
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    @ CantankRus

    Curious: What font are you using in your test?
    Zekton... just something I had laying around.

  8. #22938
    Join Date
    Oct 2013
    Location
    europe
    Beans
    122
    Distro
    Lubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Re-hi ...

    It seems that conky does not like user-defined colors in cpugraph and some others?
    Since I like to fiddle with this now and then "from the outside", I HATE so much to use hard-coded values.
    Here's some simple ones for a test...

    Code:
    color0 00f000
    color1 e90000
    
    # ....lots of other stuff....
    
    TEXT
    ${cpugraph 15, 205 $color0 $color1}
    will output everything in default colors and ignore my custom ones completely.
    Even this alternate last line did not work:

    Code:
    ${cpugraph 15, 205 ${color0} ${color1}}
    But heck, I've seen at least the first variant without the inner curly braces many times with user's conkyrc files, and apparently there must have been a time when this still worked. At least now, it does not (anymore?)
    Last edited by syntaxerror74; September 7th, 2014 at 04:09 AM.

  9. #22939
    Join Date
    Sep 2007
    Location
    athens
    Beans
    16
    Distro
    Kubuntu 7.04 Feisty Fawn

    Re: Post your .conkyrc files w/ screenshots

    After a lot of trial & error, I do believe conky is a time eater

    Conky:
    conky.png

    Desktop:
    Screenshot.jpg

    Code:
    #own_window yes
    #own_window_type desktop # Try conky 'normal' or 'override' or 'desktop'
    #own_window_transparent yes
    #own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
    #own_window_class Conky
    
    double_buffer no
    
    alignment bottom_right
    background yes
    
    border_width 0
    cpu_avg_samples 2
    default_color green
    default_outline_color white
    default_shade_color white
    draw_borders no
    draw_graph_borders yes
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont Sans Mono:size=9
    gap_x 120
    gap_y 100
    minimum_size 5 5
    net_avg_samples 2
    no_buffers yes
    out_to_console no
    out_to_stderr no
    extra_newline no
    stippled_borders 0
    update_interval 1.0
    uppercase yes
    use_spacer none
    show_graph_scale no
    show_graph_range no
    
    
    TEXT
    
    $alignc ${scroll 37 $nodename / $sysname / $kernel }
    $hr
    $alignc ${color grey}Uptime:$color $uptime
    
    $alignc *     *     *     *     *     *     *
    $alignc Audacious $audacious_status
    $alignc ${color yellow} ${audacious_title 30} ${color}
    
    $alignc *     *     *     *     *     *     *
    $alignc ${color grey}CPU
    $alignc ${color pink}Intel Celeron G1820 @ 2.70GHz${color}
    # ${scroll 30 20 ${color pink} ${execi 50000 grep -m 1 name /proc/cpuinfo}}
    $alignc ${color grey} Usage (combined):$color $cpu%
    ${cpubar 7}
    CPU core 1: ${cpu cp1}% $alignr CPU core 2: ${cpu cp2}%
    ${cpugraph cpu1 25, 105} $alignr ${cpugraph cpu2 25, 105}
    $alignc ${color grey}RAM:$color $mem/$memmax - $memperc%
    ${membar 7}
    $alignc ${color grey}Swap:$color $swap/ $swapmax - $swapperc%
    ${swapbar 7}
    
    $alignc *     *     *     *     *     *     *
    $alignc ${color grey}File systems (used / total)
    /             $color${fs_used /} / ${fs_size /} ${fs_bar 8 /}
    /storage   $color${fs_used /storage} / ${fs_size /storage} ${fs_bar 8 /storage}
    /movies   $color${fs_used /movies} / ${fs_size /movies} ${fs_bar 8 /movies}
    
    $alignc *     *     *     *     *     *     *
    $alignc ${color grey}Network(s)
    $alignc Wired - internal IP ${color pink} ${addrs eth1} ${color}
    Down:$color ${downspeed eth1}${color grey} $alignr Up:$color ${upspeed eth1}
    ${downspeedgraph eth1 25, 105 7500} $alignr ${upspeedgraph eth1 25, 105 800} # last digit in curly braces is how high the scale is in kb/s
    # $alignc Wireless - ${addrs etho}
    # $alignc > Up:$color ${upspeed eth0}${color grey} / Down:$color ${downspeed eth0} 
    
    $alignc *     *     *     *     *     *     *
    $alignc ${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
    ${color grey}Name              $alignc PID      $alignr CPU%  MEM%
    ${color red} ${top name 1} $alignc ${top pid 1} $alignr ${top cpu 1}  ${top mem 1}
    ${color yellow} ${top name 2} $alignc ${top pid 2} $alignr ${top cpu 2}  ${top mem 2}
    ${color blue} ${top name 3} $alignc ${top pid 3} $alignr ${top cpu 3}  ${top mem 3}

  10. #22940
    Join Date
    Sep 2014
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    This is overdone...
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Frankula; September 19th, 2014 at 09:21 PM.

Page 2294 of 2317 FirstFirst ... 12941794219422442284229222932294229522962304 ... 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
  •