Page 154 of 2301 FirstFirst ... 541041441521531541551561642042546541154 ... LastLast
Results 1,531 to 1,540 of 23005

Thread: Post your .conkyrc files w/ screenshots

  1. #1531
    Join Date
    Dec 2007
    Beans
    196

    Re: Post your .conkyrc files w/ screenshots

    Bruce said -

    Tell me what files you have in:

    /.conkyscripts
    and
    ~/scripts

    You should have
    ~/.conkyscripts
    conkymain
    conkyweather
    ~/scripts
    weather.sh
    weather.xslt

    That is correct! I do.
    Our biggest problem is always the one we are experiencing at the moment.

  2. #1532
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by aonegodman View Post
    Found this line in my weather.sh file:

    STEP
    # you probably don't need to modify anything below this point....

    # CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
    CURLURL="http://xoap.weather.com/weather/local/$LOCID?dayf=10&unit=$UNITS&cc=*"

    Do I need to do something here?
    You really lost me here.
    What are you trying to do?

    EDIT: I know now ...

    Do nothing with this
    Code:
    # CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
    CURLURL="http://xoap.weather.com/weather/local/$LOCID?dayf=10&unit=$UNITS&cc=*"
    but highter up in this file your see:

    Code:
    # your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it 
    # U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
    LOCID=USTN132
    Where is says: LOCID= make sure you have it like the code above
    Last edited by Bruce M.; January 21st, 2008 at 10:38 PM. Reason: EDIT: I know

  3. #1533
    Join Date
    Dec 2007
    Beans
    196

    Re: Post your .conkyrc files w/ screenshots

    Bruce -

    This is a copy of the weather.sh file that you originally provided in your first post.

    I started by following your 7 step tutorial and copied your examples to suggested locations

    and I'm modifying them as instructed to meet my local needs.

    This file should be familiar to you?
    Our biggest problem is always the one we are experiencing at the moment.

  4. #1534
    Join Date
    Apr 2007
    Location
    Derby, UK
    Beans
    228

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by aonegodman View Post
    BUT! if I close CLI then conky shuts down also.
    You need to make the process independant to the terminal. Add brackets and an &:
    Code:
    (./.startconky &)
    Last.fm | Linux User#449102 | Ubuntu User#15213
    NEVER type a command you don't understand eg. sudo rm -rf / or something similar
    Learn about them here or here.

  5. #1535
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by aonegodman View Post
    Bruce -

    This is a copy of the weather.sh file that you originally provided in your first post.

    I started by following your 7 step tutorial and copied your examples to suggested locations

    and I'm modifying them as instructed to meet my local needs.

    This file should be familiar to you?
    Yes, check post 1532 again

  6. #1536
    Join Date
    Dec 2007
    Beans
    196

    Re: Post your .conkyrc files w/ screenshots

    My conkyweather script:

    # conkyweather script
    #
    #

    background yes
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    use_spacer yes
    use_xft yes
    xftfont Candara:size=8
    xftalpha 0.5
    update_interval 1.0
    draw_shades no
    draw_outline no # amplifies text if yes
    draw_borders no
    uppercase no # set to yes if you want all text to be in uppercase
    stippled_borders 3
    border_margin 9
    border_width 10
    default_color white
    own_window_colour brown
    own_window_transparent yes
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    gap_x 10
    gap_y 25
    # Subtract file system buffers from used memory?
    no_buffers yes

    TEXT
    ${color cyan}WEATHER: ${hr 1}$color
    ${color white}${execi 60 ~/scripts/weather.sh USTN0132}$color



    My weather.sh file:

    #!/bin/sh

    #
    # Grab weather data from weather.com and format it according to the given XSLT
    # Script written by boojit
    # Modified by Hellf[i]re
    # Modified by Vredfreak
    # The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz

    # Usage:
    # ${execi 1800 /path/to/weather/weather.sh location}
    # Usage Example:
    # ${execi 1800 /home/user/weather/weather.sh 03833}

    # your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it
    # U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
    LOCID=37321

    # s=standard units, m=metric units
    UNITS=s

    # where this script and the XSLT lives#
    RUNDIR=~/scripts
    Winnipeg
    # there's probably other stuff besides CURL that will work for this, but i haven't
    # tried any others.
    # you can get curl at http://curl.haxx.se/
    CURLCMD=/usr/bin/curl

    # get it at http://xmlsoft.org/XSLT/
    XSLTCMD=/usr/bin/xsltproc#
    STEP
    # you probably don't need to modify anything below this point....

    # CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
    CURLURL="http://xoap.weather.com/weather/local/$LOCID?dayf=10&unit=$UNITS&cc=*"

    # The XSLT to use when translating the response from weather.com
    # You can modify this xslt to your liking
    XSLT=$RUNDIR/weather.xslt

    #filter (if you want to convert stuff to lower-case or upper case or something)
    #FILTER="|gawk '{print(tolower(\$0));}'"


    #####
    eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"


    My weather.xslt file:

    <!--

    This XSLT is used to translate an XML response from the weather.com
    XML API.

    You can format this file to your liking. Two things you may feel
    like doing:

    1) Modify the layout of the fields or static text already defined
    2) Add other fields from the XML response file that aren't referenced in this
    XSLT. You can grab a full list by just doing a:
    wget "http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS"
    (change $LOCID and $UNITS to suit your needs)
    -->

    <xsl:stylesheet xmlnssl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
    <xslutput method="text" disable-output-escaping="yes"/>
    <xsl:template match="weather">
    <xsl:apply-templates select="loc"/>
    <xsl:apply-templates select="cc"/>
    <xsl:apply-templates select="dayf/day[@d='1']"/>
    </xsl:template>

    <xsl:template match="loc">
    <xsl:value-of select="dnam"/>
    <xsl:text>

    Lat: </xsl:text><xsl:value-of select="lat"/>
    <xsl:text> Long: </xsl:text><xsl:value-of select="lon"/>
    <xsl:text>
    SUN: Rise: </xsl:text><xsl:value-of select="sunr"/>
    <xsl:text> Set: </xsl:text><xsl:value-of select="suns"/>


    </xsl:template>
    <xsl:template match="cc">
    <xsl:text>

    Temp: </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/>

    <xsl:text> Feels Like: </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text>

    Conditions: </xsl:text><xsl:value-of select="t"/>
    <xsl:text> Visibility: </xsl:text><xsl:value-of select="vis"/><xsl:text> KM</xsl:text>
    <xsl:text>
    Humidity: </xsl:text><xsl:value-of select="hmid"/><xsl:text>%</xsl:text>

    <xsl:text> Wind: </xsl:text>
    <xsl:choose>
    <xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
    <xsltherwise><xsl:value-of select="wind/s"/></xsltherwise>
    </xsl:choose>
    <xsl:value-of select="/weather/head/us"/>
    <xsl:choose>
    <xsl:when test="wind/s = 'calm'"><xsl:text>(0kph)</xsl:text></xsl:when>
    <xsltherwise><xsl:text> (</xsl:text><xsl:value-of select="round(wind/s * 0.6214)"/><xsl:text> mph)</xsl:text></xsltherwise>
    </xsl:choose>
    <xsl:text> (</xsl:text><xsl:value-of select="wind/t"/>
    <xsl:text>)</xsl:text>

    <xsl:text>

    Barometric Pressure: </xsl:text><xsl:value-of select="bar/r"/>
    <xsl:text> ~ and ~ </xsl:text><xsl:value-of select="bar/d"/>

    <xsl:text>

    UV: </xsl:text><xsl:value-of select="uv/i"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="uv/t"/>

    <xsl:text> Dew Point: </xsl:text><xsl:value-of select="dewp"/>

    <xsl:text>

    MOON: Icon: </xsl:text><xsl:value-of select="moon/icon"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="moon/t"/>

    </xsl:template>

    <xsl:template match="dayf/day[@d='1']">
    <xsl:text>

    Tomorrow: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <xsl:text>
    </xsl:text><xsl:value-of select="/weather/swa/a/t"/>
    <xsl:text>
    </xsl:text>
    </xsl:template>

    </xsl:stylesheet>


    My conkymain script(originally conkyrc):

    # UBUNTU-CONKY
    # A comprehensive conky script, configured for use on
    # Ubuntu / Debian Gnome, without the need for any external scripts.
    #
    # Based on conky-jc and the default .conkyrc.
    # INCLUDES:
    # - tail of /var/log/messages
    # - netstat connections to your computer
    #
    # -- Pengo (conky@pengo.us)
    #

    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes

    # fiddle with window
    use_spacer yes
    use_xft no

    # Update interval in seconds
    update_interval 3.0

    # Minimum size of text area
    # minimum_size 250 5

    # Draw shades?
    draw_shades no

    # Fonts gs location
    # font /var/lib/deforma/gs.d/dirs/fonts

    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    # font arial
    uppercase no # set to yes if you want all text to be in uppercase

    # Stippled borders?
    stippled_borders 3

    # border margins
    border_margin 9

    # border width
    border_width 10

    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey

    own_window_colour blue
    own_window_transparent yes

    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right

    # Gap between borders of screen and text
    gap_x 10
    gap_y 10

    # FORTUNE - move below TEXT for display
    # ${color orange}FORTUNE ${hr 2}$color
    # ${execi 120 fortune -s | fold -w50}

    # Local Weather - move below TEXT for display
    # ${color #e9c703}Local Weather:
    # $color${execi 1800 /usr/bin/conky2/weather.gov.sh 0520}

    # stuff after 'TEXT' will be formatted on screen

    TEXT
    $color
    ${color cyan}SYSTEM ${hr 2}$color
    $nodename $sysname $kernel on $machine

    ${color cyan}CPU ${hr 2}$color
    ${freq}MHz Load: ${loadavg} Temp: ${acpitemp}
    $cpubar
    ${cpugraph 000000 ffffff}
    NAME PID CPU% MEM%
    ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

    ${color cyan}MEMORY / DISK ${hr 2}$color
    RAM: $memperc% ${membar 6}$color
    Swap: $swapperc% ${swapbar 6}$color

    Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
    Home: ${fs_free_perc /home}% $color${fs_used /home}/${fs_size /home} ${fs_bar 6 /home}$color

    ${color cyan}NETWORK (${addr eth0}) ${hr 2}$color
    Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
    ${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
    25,140 000000 00ff00}$color
    Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
    Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
    61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

    ${color cyan}LOGGING ${hr 2}$color
    ${execi 30 tail -n3 /var/log/messages | fold -w50}

    You got it all - but wait - might as well see the .startconky file too:

    #!/bin/bash
    sleep 25 &&
    conky -c ~/.conkyscripts/conkymain;
    sleep 1 &&
    conky -c ~/.conkyscripts/conkyweather;

    There it is . . . . the whole kit and kabootle!
    Our biggest problem is always the one we are experiencing at the moment.

  7. #1537
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by corney91 View Post
    You need to make the process independant to the terminal. Add brackets and an &:
    Code:
    (./.startconky &)
    my ~/.startconky
    Code:
    #!/bin/bash
    sleep 25 &&
    conky -c ~/.conkyscripts/conkymain;
    sleep 1 &&
    conky -c ~/.conkyscripts/conkyweather;
    Why the brackets?

  8. #1538
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Huston we have BooBoos ... Bruce's BooBoos!

    I'm sorry for putting you through this. -Bruce

    Quote Originally Posted by aonegodman View Post
    My conkyweather script:

    # conkyweather script
    This is OK!

    Here we correct MY booboos here - I'm sorry!
    Quote Originally Posted by aonegodman View Post
    My weather.sh file:
    Code:
    # U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
    LOCID=37321
    If this doesn't work, and probably won't since you're using USTN132
    Change it to:
    Code:
    # U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
    LOCID=USTN132
    Get rid of the word Winnipeg delete it completely. I'm so embarrassed here.

    Quote Originally Posted by aonegodman View Post
    # where this script and the XSLT lives#
    RUNDIR=~/scripts
    Winnipeg
    # there's probably other stuff besides CURL that will work for this, but i haven't
    # tried any others.
    # you can get curl at http://curl.haxx.se/
    CURLCMD=/usr/bin/curl
    Get rid of of the word STEP delete it completely. I'm doubly embarrassed here.

    The rest is fine

    Quote Originally Posted by aonegodman View Post
    My weather.xslt file:
    That's OK too

    Quote Originally Posted by aonegodman View Post
    My conkymain script(originally conkyrc):
    You said this worked. So no need to look.

    Quote Originally Posted by aonegodman View Post
    You got it all - but wait - might as well see the .startconky file too:

    #!/bin/bash
    sleep 25 &&
    conky -c ~/.conkyscripts/conkymain;
    sleep 1 &&
    conky -c ~/.conkyscripts/conkyweather;

    There it is . . . . the whole kit and kabootle!
    OK, that's it, I think ( I have been wrong before) we're done.

    BTW, when testing your conky, do what I do,
    I open .startconky with gedit and change/save it to:

    Code:
    #!/bin/bash
    sleep 1 &&
    conky -c ~/.conkyscripts/conkymain;
    sleep 1 &&
    conky -c ~/.conkyscripts/conkyweather;
    1 second each - that way you don't have to wait 25 seconds

    Try this and let me know what happens.
    Last edited by Bruce M.; January 21st, 2008 at 11:17 PM. Reason: ONLINE EDITING

  9. #1539
    Join Date
    Apr 2007
    Location
    Derby, UK
    Beans
    228

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    Why the brackets?
    Using the & sends the process to the background and the brackets (I think) makes it independant to the terminal so when you close the terminal, it doesn't close the processs as well.
    Last.fm | Linux User#449102 | Ubuntu User#15213
    NEVER type a command you don't understand eg. sudo rm -rf / or something similar
    Learn about them here or here.

  10. #1540
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by corney91 View Post
    Using the & sends the process to the background and the brackets (I think) makes it independant to the terminal so when you close the terminal, it doesn't close the processs as well.
    I knew about the & but not the brackets I have always used:

    Code:
    bruloo@The-Team:~$ killall conky
    bruloo@The-Team:~$ ./.startconky
    Today I'm using:

    Code:
    #!/bin/bash
    sleep 25 &&
    conky -c ~/.conkyscripts/conkymain;
    #sleep 1 &&
    #conky -c ~/.conkyscripts/conkyweather;
    #sleep 1 &&
    #conky -c ~/.conkyscripts/conkyw5;
    #sleep 1 &&
    #conky -c ~/.conkyscripts/conkytest;

    Works for me.
    Last edited by Bruce M.; January 21st, 2008 at 11:29 PM.

Page 154 of 2301 FirstFirst ... 541041441521531541551561642042546541154 ... 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
  •