Page 2232 of 2343 FirstFirst ... 1232173221322182222222302231223222332234224222822332 ... LastLast
Results 22,311 to 22,320 of 23425

Thread: Post your .conkyrc files w/ screenshots

  1. #22311
    Join Date
    Jul 2008
    Location
    Siegen, Germany
    Beans
    181
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Post your .conkyrc files w/ screenshots

    Hey!

    I got my basic file from here and modified it a bit for my own needs. I also added a public-IP-script that is to be found in the German Ubuntuusers wiki.

    So, here it is:

    Code:
    # background no
    use_xft yes
    xftfont 123:size=8
    xftalpha 0.1
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
     
    maximum_width 500
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color lightgray
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 24
    gap_y 24
     
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    use_spacer none
    
    
    TEXT
    # SYS
    ${font Open Sans:Bold:size=10}${color gray99}SYSTEM${hr 2}$color${font}
    $sysname $kernel $alignr $machine
    Uptime $alignr $uptime
     
    # CPU
    ${font Open Sans:Bold:size=10}${color gray99}CPU${hr 2}
    $color${font}AMD A6-3420M  $alignr ${freq_g cpu0}GHz
    $stippled_hr
    ${font}Core 0 @ ${cpu cpu1} % $alignc ${color gray99}${cpubar cpu1}${color}
    ${font}Core 1 @ ${cpu cpu2} % $alignc ${color gray99}${cpubar cpu2}${color}
    ${font}Core 2 @ ${cpu cpu3} % $alignc ${color gray99}${cpubar cpu3}${color}
    ${font}Core 3 @ ${cpu cpu4} % $alignc ${color gray99}${cpubar cpu4}${color}
    
    
     
    # TOP
    ${font Open Sans:Bold:size=10}${color gray99}TOP${hr 2}
    $color${font}${font Open Sans:bold:size=8.5}PROCESS $alignr CPU USAGE$font
    ${top name 1}${alignr}${top cpu 1} % ${hr 2}
    ${top name 2}${alignr}${top cpu 2} %
    ${top name 3}${alignr}${top cpu 3} %
    ${top name 4}${alignr}${top cpu 4} %
    ${top name 5}${alignr}${top cpu 5} %
     
    # Speicher
    ${font Open Sans:Bold:size=10}${color gray99}Memory${hr 2}
    $color${font}${font Open Sans:bold:size=8.5}RAM$font
    $mem / $memmax $alignr $memperc %
    $membar
     
    ${font Open Sans:bold:size=8.5}SWAP$font
    $swap / $swapmax $alignr $swapperc
    ${swapbar};
    
    
    # HDD
    ${font Open Sans:Bold:size=10}${color gray99}HDD${hr 2}
     
    ${font Open Sans:bold:size=8.5}ROOT $font$font$alignr ${fs_type /}
    ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /} %
    ${fs_bar /}
    
    
    # Netzwerk
    ${font Open Sans:Bold:size=10}${color gray99}Network${hr 2}
    ${font Open Sans:bold:size=8.5}eth0
    ${font} IPv4 ${alignr}${addr eth0}
    ${font} Down ${alignr}${downspeed eth0}
    ${font} Up ${alignr}${upspeed eth0}
    ${font}Total down ${alignr}${totaldown eth0}
    ${font}Total up ${alignr}${totalup eth0}
    $stippled_hr
    ${font Open Sans:bold:size=8.5}wlan0
    ${font} IPv4 ${alignr}${addr wlan0}
    ${font} Down ${alignr}${downspeed wlan0}
    ${font} Up ${alignr}${upspeed wlan0}
    ${font} Total down ${alignr}${totaldown wlan0}
    ${font} Total up ${alignr}${totalup wlan0}
    $stippled_hr
    ${font} IPv4 (WAN) ${alignr}${execi 7200 ~/.conky/publicip.sh}
    -manoriax
    Attached Images Attached Images
    "It matters not what someone is born, but what they grow to be." -Albus Dumbledore
    Flickr - tumblr - Last.fm - PGP-Key - Blog

  2. #22312
    Join Date
    Feb 2008
    Location
    North Carolina
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Decided to go with Future Conky. I like the way it looks, but can't get the weather script to work. If anyone has a clue as to the problem, please let me know.

    Here's the script for the weather part:

    Code:
    # — Conky settings — #
    
    background yes
    
    update_interval 1
    total_run_times 0
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    imlib_cache_size 0
    
    temperature_unit celcius
    
    # — Window specifications — #
    
    own_window_class Conky
    own_window yes
    own_window_type conky
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 200 130
    maximum_width 200
    
    alignment top_right
    
    gap_x 10
    gap_y 550
    
    
    # — Graphics settings — #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # — Text settings — #
    use_xft yes
    xftfont hooge 05_53:size=6
    xftalpha 0.1
    
    default_color FFFFFF
    default_gauge_size 47 25
    
    uppercase no
    use_spacer right
    
    color0 white
    color1 orange
    color2 green
    
    TEXT
    ${image $HOME/.Conky/future_conky/pix/bg5.png -p 1,1 -s 200x130}
    ${voffset 6}${goto 15}WEATHER
    ${execi 500 bash $HOME/.Conky/future_conky/accuweather/accuw_script}
    ${voffset 15}${goto 15}${font hooge 05_53:size=12}${execpi 600 sed -n '2p' $HOME/.Conky/future_conky/accuweather/curr_cond}C°${font}${voffset 8}${goto 15}${execpi 600 sed -n '4p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '39p' $HOME/.Conky/future_conky/accuweather/week}C°${voffset -25}${goto 50}${font conkyweather:size=40}${execpi 600 sed -n '1p' $HOME/.Conky/future_conky/accuweather/curr_cond}${font}${voffset -35}${goto 105}${execpi 600 sed -n '3p' $HOME/.Conky/future_conky/accuweather/curr_cond}${voffset 8}${goto 105}WIND: ${execpi 600 sed -n '5p' $HOME/.Conky/future_conky/accuweather/curr_cond}${voffset 8}${goto 105}HUM: ${execpi 600 sed -n '6p' $HOME/.Conky/future_conky/accuweather/curr_cond}${voffset 8}${goto 105}PRES: ${execpi 600 sed -n '8p' $HOME/.Conky/future_conky/accuweather/curr_cond}${font conkyweather:size=20}${voffset 10}${goto 25}${execpi 600 sed -n '11p' $HOME/.Conky/future_conky/accuweather/week}${goto 85}${execpi 600 sed -n '16p' $HOME/.Conky/future_conky/accuweather/week}${goto 140}${execpi 600 sed -n '21p' $HOME/.Conky/future_conky/accuweather/week}${font}${voffset 6}${goto 25}${execpi 600 sed -n '9p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '49p' $HOME/.Conky/future_conky/accuweather/week}C°${goto 85}${execpi 600 sed -n '19p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '54p' $HOME/.Conky/future_conky/accuweather/week}C°${goto 140}${execpi 600 sed -n '24p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '59p' $HOME/.Conky/future_conky/accuweather/week}C°${voffset 7}${goto 25}${execpi 600 sed -n '7p' $HOME/.Conky/future_conky/accuweather/week}${goto 85}${execpi 600 sed -n '12p' $HOME/.Conky/future_conky/accuweather/week}${goto 140}${execpi 600 sed -n '17p' $HOME/.Conky/future_conky/accuweather/week}
    Here's the Accuweather script:

    Code:
    #!/bin/bash
    
    #function: test_image
    test_image () {
    	case $1 in
    	 1)
    	   echo a
    	 ;;
    	 2)
    	   echo b
    	 ;;
    	 [3-5])
    	   echo c
    	 ;;
    	 6)
    	   echo d
    	 ;;
    	 [7-8])
    	   echo e
    	 ;;
    	 11)
    	   echo 0
    	 ;;
    	 12)
    	   echo h
    	 ;;
    	 13|14)
    	   echo g
    	 ;;
    	 15)
    	   echo l
    	 ;;
    	 16|17)
    	   echo k
    	 ;;
    	 18|26)
    	   echo i
    	 ;;
    	 19)
    	   echo p
    	 ;;
    	 20|21|23)
    	   echo o
    	 ;;
    	 22)
    	   echo r
    	 ;;
    	 24|31)
    	   echo E
    	 ;;
    	 25)
    	   echo u
    	 ;;
    	 29)
    	   echo v
    	 ;;
         30)
    	   echo 5
    	 ;;
    	 32)
    	   echo 6
    	 ;;
    	 33)
    	   echo A
    	 ;;
    	 34|36|37)
    	   echo B
    	 ;;
    	 35|38)
    	   echo C
    	 ;;
    	 39|40)
    	   echo G
    	 ;;
    	 41|42)
    	   echo K
    	 ;;
    	 43|44)
    	   echo O
    	 ;;
    	esac
    } 
    
    #put your Accuweather address here
    address="http://www.accuweather.com/en/us/elizabeth-city-nc/27909/weather-forecast/329814"
    
    kill -STOP $(pidof conky)
    killall wget
    wget --save-cookies $HOME/.Conky/future_conky/accuweather/cookie -O $HOME/.Conky/future_conky/accuweather/curr_cond_raw $address
    addr_week=$(echo $address|sed 's/quick.*$/forecast.aspx/')
    wget --load-cookies $HOME/.Conky/future_conky/accuweather/cookie -O $HOME/.Conky/future_conky/accuweather/week_raw $addr_week
    
    
    if [[ -s $HOME/.Conky/future_conky/accuweather/curr_cond_raw ]]; then
    
    	#Current Conditions - curr_cond file
    	egrep -i 'CurrentTemp|CurrentText|RealFeelValue|WindsValue|HumidityValue|DewPointValue|PressureValue|PressureTenValue|VisibilityValue|SunriseValue|SunsetValue|imgCurConCondition' $HOME/.Conky/future_conky/accuweather/curr_cond_raw > $HOME/.Conky/future_conky/accuweather/curr_cond
    	sed -i '1s/^.*blue\///' $HOME/.Conky/future_conky/accuweather/curr_cond
    	sed -i '1s/_int.*$//' $HOME/.Conky/future_conky/accuweather/curr_cond
    	sed -i 's/^.*">//g' $HOME/.Conky/future_conky/accuweather/curr_cond
    	sed -i 's/<\/span>.*$//g' $HOME/.Conky/future_conky/accuweather/curr_cond
    	sed -i 's/&deg;C//g' $HOME/.Conky/future_conky/accuweather/curr_cond
    	curr_cond_raw_image=$(sed -n 1p $HOME/.Conky/future_conky/accuweather/curr_cond)
    	sed -i 1s/$curr_cond_raw_image/$(test_image $curr_cond_raw_image)/ $HOME/.Conky/future_conky/accuweather/curr_cond
    	sed -i 's/Unavailable/N\/A/g' $HOME/.Conky/future_conky/accuweather/curr_cond
    
    fi
    
    
    if [[ -s $HOME/.Conky/future_conky/accuweather/week_raw ]]; then
    
    	#Forecast of the week - week file
    	egrep -i 'monday|tuesday|wednesday|thursday|friday|saturday|sunday|&deg|lblDesc|imgIcon' $HOME/.Conky/future_conky/accuweather/week_raw > $HOME/.Conky/future_conky/accuweather/week
    	sed -i '1d' $HOME/.Conky/future_conky/accuweather/week
    	sed -i -e 's/^.*lblDate">//g' -e 's/^.*lblDesc">//g' -e 's/^.*Label1">//g' -e 's/^.*lblRealFeel">//g' $HOME/.Conky/future_conky/accuweather/week
    	sed -i -e 's/^.*lblHigh">//g' -e 's/^.*lblRealFeelValue">//g' -e 's/^.*blue\///g' $HOME/.Conky/future_conky/accuweather/week
    	sed -i 's/_int.jpg.*$//g' $HOME/.Conky/future_conky/accuweather/week
    	sed -i 's/<\/span>.*$//g' $HOME/.Conky/future_conky/accuweather/week
    	sed -i 's/&deg;C//g' $HOME/.Conky/future_conky/accuweather/week
    	sed -i -e 's/Monday/MON/' -e 's/Tuesday/TUE/' -e 's/Wednesday/WED/' -e 's/Thursday/THU/' -e 's/Friday/FRI/' -e 's/Saturday/SAT/' -e 's/Sunday/SUN/' $HOME/.Conky/future_conky/accuweather/week
    	for (( i=2; i<=67; i+=5 ))
    	  do
    	      sed -i "${i}s/ .*$//" $HOME/.Conky/future_conky/accuweather/week
    	  done
    	for (( i=1; i<=66; i+=5 ))
    	  do
    	      image_raw=$(sed -n "${i}"p $HOME/.Conky/future_conky/accuweather/week)
    	      sed -i ${i}s/$image_raw/$(test_image $image_raw)/ $HOME/.Conky/future_conky/accuweather/week
    	  done
      
    	#messages and messages_curr files
    	rm $HOME/.Conky/future_conky/accuweather/messages_raw
    	for (( i=3; i<=68; i+=5 ))
    	  do
    	      sed -n ${i}p $HOME/.Conky/future_conky/accuweather/week >> $HOME/.Conky/future_conky/accuweather/messages_raw
    	  done
    	sed -n 1p $HOME/.Conky/future_conky/accuweather/messages_raw | cut -c -60 > $HOME/.Conky/future_conky/accuweather/messages_curr
    	sed -n 8p $HOME/.Conky/future_conky/accuweather/messages_raw | cut -c -60 >> $HOME/.Conky/future_conky/accuweather/messages_curr
    	for (( i=1; i<=4; i++))
    		do
    			no=$(sed -n ${i}p $HOME/.Conky/future_conky/accuweather/messages_curr|wc -c)
    			if (( no<=31 )); then
    				sed -i $i"s/$/\n/" $HOME/.Conky/future_conky/accuweather/messages_curr
    				i=$((i+1))
    			elif (( no>31 )); then
    				sed -i $i"s/^\(.\{31\}\)/\1\n/" $HOME/.Conky/future_conky/accuweather/messages_curr
    				i=$((i+1))
    			fi
    		done
    	cat $HOME/.Conky/future_conky/accuweather/messages_raw| cut -c -40 > $HOME/.Conky/future_conky/accuweather/messages
    	for (( i=1; i<=28; i++))
    		do
    			no=$(sed -n ${i}p $HOME/.Conky/future_conky/accuweather/messages|wc -c)
    			if (( no<=21 )); then
    				sed -i $i"s/$/\n/" $HOME/.Conky/future_conky/accuweather/messages
    				i=$((i+1))
    			elif (( no>21 )); then
    				sed -i $i"s/^\(.\{21\}\)/\1\n/" $HOME/.Conky/future_conky/accuweather/messages
    				i=$((i+1))
    			fi
    		done
    
    fi
    
    
    kill -CONT $(pidof conky)
    Attached Images Attached Images

  3. #22313
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by pemur1 View Post
    Decided to go with Future Conky. I like the way it looks, but can't get the weather script to work. If anyone has a clue as to the problem, please let me know.

    Here's the script for the weather part:

    Code:
    # — Conky settings — #
    
    background yes
    
    update_interval 1
    total_run_times 0
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    imlib_cache_size 0
    
    temperature_unit celcius
    
    # — Window specifications — #
    
    own_window_class Conky
    own_window yes
    own_window_type conky
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 200 130
    maximum_width 200
    
    alignment top_right
    
    gap_x 10
    gap_y 550
    
    
    # — Graphics settings — #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # — Text settings — #
    use_xft yes
    xftfont hooge 05_53:size=6
    xftalpha 0.1
    
    default_color FFFFFF
    default_gauge_size 47 25
    
    uppercase no
    use_spacer right
    
    color0 white
    color1 orange
    color2 green
    
    TEXT
    ${image $HOME/.Conky/future_conky/pix/bg5.png -p 1,1 -s 200x130}
    ${voffset 6}${goto 15}WEATHER
    ${execi 500 bash $HOME/.Conky/future_conky/accuweather/accuw_script}
    ${voffset 15}${goto 15}${font hooge 05_53:size=12}${execpi 600 sed -n '2p' $HOME/.Conky/future_conky/accuweather/curr_cond}C°${font}${voffset 8}${goto 15}${execpi 600 sed -n '4p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '39p' $HOME/.Conky/future_conky/accuweather/week}C°${voffset -25}${goto 50}${font conkyweather:size=40}${execpi 600 sed -n '1p' $HOME/.Conky/future_conky/accuweather/curr_cond}${font}${voffset -35}${goto 105}${execpi 600 sed -n '3p' $HOME/.Conky/future_conky/accuweather/curr_cond}${voffset 8}${goto 105}WIND: ${execpi 600 sed -n '5p' $HOME/.Conky/future_conky/accuweather/curr_cond}${voffset 8}${goto 105}HUM: ${execpi 600 sed -n '6p' $HOME/.Conky/future_conky/accuweather/curr_cond}${voffset 8}${goto 105}PRES: ${execpi 600 sed -n '8p' $HOME/.Conky/future_conky/accuweather/curr_cond}${font conkyweather:size=20}${voffset 10}${goto 25}${execpi 600 sed -n '11p' $HOME/.Conky/future_conky/accuweather/week}${goto 85}${execpi 600 sed -n '16p' $HOME/.Conky/future_conky/accuweather/week}${goto 140}${execpi 600 sed -n '21p' $HOME/.Conky/future_conky/accuweather/week}${font}${voffset 6}${goto 25}${execpi 600 sed -n '9p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '49p' $HOME/.Conky/future_conky/accuweather/week}C°${goto 85}${execpi 600 sed -n '19p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '54p' $HOME/.Conky/future_conky/accuweather/week}C°${goto 140}${execpi 600 sed -n '24p' $HOME/.Conky/future_conky/accuweather/week}C°-${execpi 600 sed -n '59p' $HOME/.Conky/future_conky/accuweather/week}C°${voffset 7}${goto 25}${execpi 600 sed -n '7p' $HOME/.Conky/future_conky/accuweather/week}${goto 85}${execpi 600 sed -n '12p' $HOME/.Conky/future_conky/accuweather/week}${goto 140}${execpi 600 sed -n '17p' $HOME/.Conky/future_conky/accuweather/week}
    Here's the Accuweather script:

    Code:
    #!/bin/bash
    
    #function: test_image
    test_image () {
        case $1 in
         1)
           echo a
         ;;
         2)
           echo b
         ;;
         [3-5])
           echo c
         ;;
         6)
           echo d
         ;;
         [7-8])
           echo e
         ;;
         11)
           echo 0
         ;;
         12)
           echo h
         ;;
         13|14)
           echo g
         ;;
         15)
           echo l
         ;;
         16|17)
           echo k
         ;;
         18|26)
           echo i
         ;;
         19)
           echo p
         ;;
         20|21|23)
           echo o
         ;;
         22)
           echo r
         ;;
         24|31)
           echo E
         ;;
         25)
           echo u
         ;;
         29)
           echo v
         ;;
         30)
           echo 5
         ;;
         32)
           echo 6
         ;;
         33)
           echo A
         ;;
         34|36|37)
           echo B
         ;;
         35|38)
           echo C
         ;;
         39|40)
           echo G
         ;;
         41|42)
           echo K
         ;;
         43|44)
           echo O
         ;;
        esac
    } 
    
    #put your Accuweather address here
    address="http://www.accuweather.com/en/us/elizabeth-city-nc/27909/weather-forecast/329814"
    
    kill -STOP $(pidof conky)
    killall wget
    wget --save-cookies $HOME/.Conky/future_conky/accuweather/cookie -O $HOME/.Conky/future_conky/accuweather/curr_cond_raw $address
    addr_week=$(echo $address|sed 's/quick.*$/forecast.aspx/')
    wget --load-cookies $HOME/.Conky/future_conky/accuweather/cookie -O $HOME/.Conky/future_conky/accuweather/week_raw $addr_week
    
    
    if [[ -s $HOME/.Conky/future_conky/accuweather/curr_cond_raw ]]; then
    
        #Current Conditions - curr_cond file
        egrep -i 'CurrentTemp|CurrentText|RealFeelValue|WindsValue|HumidityValue|DewPointValue|PressureValue|PressureTenValue|VisibilityValue|SunriseValue|SunsetValue|imgCurConCondition' $HOME/.Conky/future_conky/accuweather/curr_cond_raw > $HOME/.Conky/future_conky/accuweather/curr_cond
        sed -i '1s/^.*blue\///' $HOME/.Conky/future_conky/accuweather/curr_cond
        sed -i '1s/_int.*$//' $HOME/.Conky/future_conky/accuweather/curr_cond
        sed -i 's/^.*">//g' $HOME/.Conky/future_conky/accuweather/curr_cond
        sed -i 's/<\/span>.*$//g' $HOME/.Conky/future_conky/accuweather/curr_cond
        sed -i 's/&deg;C//g' $HOME/.Conky/future_conky/accuweather/curr_cond
        curr_cond_raw_image=$(sed -n 1p $HOME/.Conky/future_conky/accuweather/curr_cond)
        sed -i 1s/$curr_cond_raw_image/$(test_image $curr_cond_raw_image)/ $HOME/.Conky/future_conky/accuweather/curr_cond
        sed -i 's/Unavailable/N\/A/g' $HOME/.Conky/future_conky/accuweather/curr_cond
    
    fi
    
    
    if [[ -s $HOME/.Conky/future_conky/accuweather/week_raw ]]; then
    
        #Forecast of the week - week file
        egrep -i 'monday|tuesday|wednesday|thursday|friday|saturday|sunday|&deg|lblDesc|imgIcon' $HOME/.Conky/future_conky/accuweather/week_raw > $HOME/.Conky/future_conky/accuweather/week
        sed -i '1d' $HOME/.Conky/future_conky/accuweather/week
        sed -i -e 's/^.*lblDate">//g' -e 's/^.*lblDesc">//g' -e 's/^.*Label1">//g' -e 's/^.*lblRealFeel">//g' $HOME/.Conky/future_conky/accuweather/week
        sed -i -e 's/^.*lblHigh">//g' -e 's/^.*lblRealFeelValue">//g' -e 's/^.*blue\///g' $HOME/.Conky/future_conky/accuweather/week
        sed -i 's/_int.jpg.*$//g' $HOME/.Conky/future_conky/accuweather/week
        sed -i 's/<\/span>.*$//g' $HOME/.Conky/future_conky/accuweather/week
        sed -i 's/&deg;C//g' $HOME/.Conky/future_conky/accuweather/week
        sed -i -e 's/Monday/MON/' -e 's/Tuesday/TUE/' -e 's/Wednesday/WED/' -e 's/Thursday/THU/' -e 's/Friday/FRI/' -e 's/Saturday/SAT/' -e 's/Sunday/SUN/' $HOME/.Conky/future_conky/accuweather/week
        for (( i=2; i<=67; i+=5 ))
          do
              sed -i "${i}s/ .*$//" $HOME/.Conky/future_conky/accuweather/week
          done
        for (( i=1; i<=66; i+=5 ))
          do
              image_raw=$(sed -n "${i}"p $HOME/.Conky/future_conky/accuweather/week)
              sed -i ${i}s/$image_raw/$(test_image $image_raw)/ $HOME/.Conky/future_conky/accuweather/week
          done
      
        #messages and messages_curr files
        rm $HOME/.Conky/future_conky/accuweather/messages_raw
        for (( i=3; i<=68; i+=5 ))
          do
              sed -n ${i}p $HOME/.Conky/future_conky/accuweather/week >> $HOME/.Conky/future_conky/accuweather/messages_raw
          done
        sed -n 1p $HOME/.Conky/future_conky/accuweather/messages_raw | cut -c -60 > $HOME/.Conky/future_conky/accuweather/messages_curr
        sed -n 8p $HOME/.Conky/future_conky/accuweather/messages_raw | cut -c -60 >> $HOME/.Conky/future_conky/accuweather/messages_curr
        for (( i=1; i<=4; i++))
            do
                no=$(sed -n ${i}p $HOME/.Conky/future_conky/accuweather/messages_curr|wc -c)
                if (( no<=31 )); then
                    sed -i $i"s/$/\n/" $HOME/.Conky/future_conky/accuweather/messages_curr
                    i=$((i+1))
                elif (( no>31 )); then
                    sed -i $i"s/^\(.\{31\}\)/\1\n/" $HOME/.Conky/future_conky/accuweather/messages_curr
                    i=$((i+1))
                fi
            done
        cat $HOME/.Conky/future_conky/accuweather/messages_raw| cut -c -40 > $HOME/.Conky/future_conky/accuweather/messages
        for (( i=1; i<=28; i++))
            do
                no=$(sed -n ${i}p $HOME/.Conky/future_conky/accuweather/messages|wc -c)
                if (( no<=21 )); then
                    sed -i $i"s/$/\n/" $HOME/.Conky/future_conky/accuweather/messages
                    i=$((i+1))
                elif (( no>21 )); then
                    sed -i $i"s/^\(.\{21\}\)/\1\n/" $HOME/.Conky/future_conky/accuweather/messages
                    i=$((i+1))
                fi
            done
    
    fi
    
    
    kill -CONT $(pidof conky)
    I see things that differ from mine other than the url for the weather, here's mine maybe you will see something obvious.
    Code:
    #put your Accuweather address here
    address="http://www.accuweather.com/en/us/salt-lake-city-ut/84101/weather-forecast/331216"
    
    loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
    last_number=$(echo $address|sed 's/^.*\///')
    
    curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
    wget -O /usr/bin/cronograph/accuweather/curr_cond_raw "$curr_addr"
    
    addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
    wget -O /usr/bin/cronograph/accuweather/tod_ton_raw "$addr1"
    
    addr2="$addr1"?day=6
    wget -O /usr/bin/cronograph/accuweather/last_days_raw "$addr2"
    
    #current conditions
    if [[ -s /usr/bin/cronograph/accuweather/curr_cond_raw ]]; then
    
        sed -i '/detail-now/,/#details/!d' /usr/bin/cronograph/accuweather/curr_cond_raw
        egrep -i '"cond"|icon i-|detail-tab-panel' /usr/bin/cronograph/accuweather/curr_cond_raw > /usr/bin/cronograph/accuweather/curr_cond
        sed -i -e 's/^.*detail-tab-panel //g' -e 's/^.*icon i-//g' -e 's/"><\/div>.*$//g' /usr/bin/cronograph/accuweather/curr_cond
        sed -i -e 's/^.*"cond">//g' -e 's/&deg/\n/g' -e 's/<\/span>.*"temp">/\n/g' -e 's/<.*>//g' /usr/bin/cronograph/accuweather/curr_cond
        sed -i -e 's/">//g' -e 's/-->//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /usr/bin/cronograph/accuweather/curr_cond
        time=$(sed -n 1p /usr/bin/cronograph/accuweather/curr_cond)
        image=$(sed -n 2p /usr/bin/cronograph/accuweather/curr_cond)
        if [[ $time == day ]]; then
            sed -i 2s/$image/$(test_image_day $image)/ /usr/bin/cronograph/accuweather/curr_cond
        elif [[ $time == night ]]; then
            sed -i 2s/$image/$(test_image_night $image)/ /usr/bin/cronograph/accuweather/curr_cond
        fi
    
    fi
    
    #First 5 days
    if [[ -s /usr/bin/cronograph/accuweather/tod_ton_raw ]]; then
    
        sed -i '/feed-tabs/,/\.feed-tabs/!d' /usr/bin/cronograph/accuweather/tod_ton_raw
        egrep -i 'Early AM|Today|Tonight|Overnight|icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' /usr/bin/cronograph/accuweather/tod_ton_raw > /usr/bin/cronograph/accuweather/tod_ton
        sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' /usr/bin/cronograph/accuweather/tod_ton
        sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' /usr/bin/cronograph/accuweather/tod_ton
        sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /usr/bin/cronograph/accuweather/tod_ton
        sed -i -e 's/Early AM/EARLY AM/' -e 's/Today/TODAY/' -e 's/Tonight/TONIGHT/' -e 's/Overnight/OVERNIGHT/' -e 's/Mon/MON/' -e 's/Tue/TUE/' -e 's/Wed/WED/' -e 's/Thu/THU/' -e 's/Fri/FRI/' -e 's/Sat/SAT/' -e 's/Sun/SUN/' /usr/bin/cronograph/accuweather/tod_ton
        time=$(sed -n 1p /usr/bin/cronograph/accuweather/tod_ton)
        image=$(sed -n 2p /usr/bin/cronograph/accuweather/tod_ton)
        if [[ $time == TODAY ]]; then
            sed -i 2s/$image/$(test_image_day $image)/ /usr/bin/cronograph/accuweather/tod_ton
        elif [[ $time == TONIGHT || $time == OVERNIGHT || $time == "EARLY AM" ]]; then
            sed -i 2s/$image/$(test_image_night $image)/ /usr/bin/cronograph/accuweather/tod_ton
            sed -i 3a- /usr/bin/cronograph/accuweather/tod_ton
        fi
        for (( i=7; i<=22; i+=5 ))
          do
              image=$(sed -n "${i}"p /usr/bin/cronograph/accuweather/tod_ton)
              sed -i ${i}s/$image/$(test_image_day $image)/ /usr/bin/cronograph/accuweather/tod_ton
          done
    
    fi
    
    #Next 5 days
    if [[ -s /usr/bin/cronograph/accuweather/last_days_raw ]]; then
    
        sed -i '/feed-tabs/,/\.feed-tabs/!d' /usr/bin/cronograph/accuweather/last_days_raw
        egrep -i 'icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' /usr/bin/cronograph/accuweather/last_days_raw > /usr/bin/cronograph/accuweather/last_days
        sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' /usr/bin/cronograph/accuweather/last_days
        sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' /usr/bin/cronograph/accuweather/last_days
        sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /usr/bin/cronograph/accuweather/last_days
        sed -i -e 's/Mon/MON/' -e 's/Tue/TUE/' -e 's/Wed/WED/' -e 's/Thu/THU/' -e 's/Fri/FRI/' -e 's/Sat/SAT/' -e 's/Sun/SUN/' /usr/bin/cronograph/accuweather/last_days
        for (( i=2; i<=22; i+=5 ))
          do
              image=$(sed -n "${i}"p /usr/bin/cronograph/accuweather/last_days)
              sed -i ${i}s/$image/$(test_image_day $image)/ /usr/bin/cronograph/accuweather/last_days
          done
    
    fi
    You know that script almost looks like the weather portion of it was rewriten. (maybe wrong? Im no conky guru.)
    Regards!
    Oh here is what im playing with lately.
    Attached Images Attached Images

  4. #22314
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Code:
    You know that script almost looks like the weather portion of it was rewriten. (maybe wrong? Im no conky guru.)
    Regards!
    Here see if this worth a try"http://gnome-look.org/content/show.php?content=151440

  5. #22315
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    @ pemur1
    Tried a few versions and the only one with a weather section that works for me is this one...
    Futuristic Conky 2.2.1
    No weather images though.

    I think as the script relies on downloading the accuweather page html, if the page layout
    changes the script fails to work properly.

    Maybe ask the author of the original script...TeoBigusGeekus
    He has more up to date scripts that you could incorporate into your conky.
    Conky weather scripts using Accuweather
    Attached Images Attached Images
    Last edited by stinkeye; October 1st, 2013 at 05:06 AM.

  6. #22316
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    Uggh, you guys are making my Conky look like its from the stone age.
    Who's Awesome? You're Awesome.

  7. #22317
    Join Date
    Jul 2008
    Location
    Siegen, Germany
    Beans
    181
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Petro Dawg View Post
    Uggh, you guys are making my Conky look like its from the stone age.
    Agreed, that is what I was just thinking.
    "It matters not what someone is born, but what they grow to be." -Albus Dumbledore
    Flickr - tumblr - Last.fm - PGP-Key - Blog

  8. #22318
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Petro Dawg View Post
    Uggh, you guys are making my Conky look like its from the stone age.
    Nah, I dont actually use that conky. Too small for my old eyes.
    I prefer basic with info at a glance.
    My main conky is just text with one icon.
    Uggh.
    Attached Images Attached Images

  9. #22319
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    Not to be out done by these whipper-snappers with their new fangled futuristic Conkys, I modernized my bars just a tad...

    Who's Awesome? You're Awesome.

  10. #22320
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    8,868
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    I like those triangle bars Petro Dawg.
    What are they?

    It makes your conky look nifty.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

Page 2232 of 2343 FirstFirst ... 1232173221322182222222302231223222332234224222822332 ... 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
  •