Page 326 of 380 FirstFirst ... 226276316324325326327328336376 ... LastLast
Results 3,251 to 3,260 of 3795

Thread: Conky Weather Forecast Python Script

  1. #3251
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by alpetjr View Post
    No I didn't make any changes in the usr. The DEFAULT_LOCATION = UKXX0103 . That still shows when I first installed weather. This is my full conky files. The screenshot in the tar. is the one I want. I got yours from conky-pitstop.
    OK, wife is up, gotta have breakfast ... back in 15!

  2. #3252
    Join Date
    Feb 2011
    Beans
    31
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky Weather Forecast Python Script

    I tried to post my usr/share folder but it is too big
    Last edited by alpetjr; May 29th, 2011 at 03:44 PM.

  3. #3253
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by alpetjr View Post
    I tried to post my usr/share folder but it is too big
    I don't need it! As long as you did not change anything in /usr/share/conkyForecast

    Be right back!

  4. #3254
    Join Date
    Feb 2011
    Beans
    31
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky Weather Forecast Python Script

    I have to run to the store. I'll be back in a bit

  5. #3255
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by alpetjr View Post
    I have to run to the store. I'll be back in a bit
    Are you back? PM me.

  6. #3256
    Join Date
    Sep 2008
    Beans
    30

    Re: Conky Weather Forecast Python Script

    Started off with a basic conkyWeather config to display to the bottom right of my screen, but for some reason it leaves a pretty large "empty" field that is best seen when conky is not set to transparent. If it is transparent, it looks almost like I have set it to display on the right/middle of the screen when in fact it isn't. Got so annoying that I've been adding more stuff to the bottom of the weather part and as I add more and more, the window gets larger and larger instead of filling in the bottom space. I've attached a screenshot to show what I mean, as well as my config. Hopefully someone has a fix for this...

    Code:
    alignment bottom_right
    background no
    border_inner_margin 8
    border_width 2
    color1 white
    # light blue
    color2 3ab4f3 
    color3 brown
    color4 green
    # darker cyan
    color5 23babc 
    color6 yellow
    color7 cyan
    color8 pink
    color9 tan
    cpu_avg_samples 2
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    draw_borders no
    draw_graph_borders yes
    draw_outline no
    draw_shades no
    extra_newline no
    # Gap between borders of screen and text
    gap_x 10
    gap_y 10
    maximum_width 292
    #minimum_size 5 5
    net_avg_samples 2
    no_buffers yes
    out_to_console no
    out_to_stderr no
    override_utf8_locale yes
    own_window yes
    own_window_argb_visual yes
    own_window_class Conky
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_transparent no
    #set when no compiz
    #own_window_type normal
    own_window_type desktop
    show_graph_range no
    show_graph_scale no
    stippled_borders 4
    text_buffer_size 1156
    update_interval 1.4
    uppercase no
    # adds spaces around certain objects to stop them from moving other things around
    use_spacer right
    use_xft yes
    xftalpha 0.8
    #xftfont DejaVu Sans Mono:size=8
    xftfont Verdana:size=7.5
    
    TEXT
    ${offset -5}${font StyleBats:style=CleanCut:size=12}${color4}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=10}Weather${font}  ${execi 1800 conkyForecast --location=USNY0176 --datatype=CN}, NY ${color4}${hr}${color7}
    ${voffset 12}${goto 16}${font ConkyWeather:style=Bold:size=40}${execi 1800 conkyForecast --location=USNY0176 --datatype=WF}${font}
    ${voffset -8}${goto 22}${execi 1800 conkyForecast --location=USNY0176 --datatype=HT --imperial --hideunits --centeredwidth=3}/${execi 1800 conkyForecast --location=USNY0176 --datatype=LT --imperial --hideunits --centeredwidth=3}
    ${voffset 10}${goto 16}${font ConkyWindNESW:size=40}${execi 1800 conkyForecast --location=USNY0176 --datatype=BS}${font}
    ${voffset 5}${goto 10}${execi 1800 conkyForecast --location=USNY0176 --datatype=WS --imperial} - ${execi 1800 conkyForecast --location=USNY0176 --datatype=WD}
    ${voffset -134}${goto 98}${color1}${font Bitstream Vera Sans Mono:style=Bold:size=14}${execi 1800 conkyForecast --location=USNY0176 --datatype=CT}${font}
    ${voffset 10}${goto 98}${color5}Observatory Station: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=OB}
    ${goto 98}${color5}Chance of Precipitation: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=PC}
    ${goto 98}${color5}Humidity: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=HM}
    ${goto 98}${color5}Dew Point: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=DP --imperial}
    ${goto 98}${color5}UV Index: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=UI} - ${execi 1800 conkyForecast --location=USNY0176 --datatype=UT}
    ${goto 98}${color5}Sunrise / Sunset: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=SR} / ${execi 1800 conkyForecast --location=USNY0176 --datatype=SS}
    ${goto 98}${color5}Bar: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=BR} - ${execi 1800 conkyForecast --location=USNY0176 --datatype=BD}
    ${goto 98}${color5}Moon: ${color1}${execi 1800 conkyForecast --location=USNY0176 --datatype=MP}
    ${color5}${stippled_hr}${color7}
    ${voffset 1}${goto 36}${execi 1800 conkyForecast --location=USNY0176 --datatype=DW --startday=1 --shortweekday}${goto 110}${execi 1800 conkyForecast --location=USNY0176 --datatype=DW --startday=2 --shortweekday}${goto 185}${execi 1800 conkyForecast --location=USNY0176 --datatype=DW --startday=3 --shortweekday}${goto 259}${execi 1800 conkyForecast --location=USNY0176 --datatype=DW --startday=4 --shortweekday}
    ${voffset 1}${goto 22}${font ConkyWeather:size=32}${execi 1800 conkyForecast --location=USNY0176 --datatype=WF --startday=1 --endday=4 --spaces=3}${font}
    ${voffset 1}${goto 22}${execi 1800 conkyForecast --location=USNY0176 --datatype=HT --startday=1 --imperial --hideunits --centeredwidth=3}/${execi 1800 conkyForecast --location=USNY0176 --datatype=LT --startday=1 --imperial --hideunits --centeredwidth=3}${goto 98}${execi 1800 conkyForecast --location=USNY0176 --datatype=HT --startday=2 --imperial --hideunits --centeredwidth=3}/${execi 1800 conkyForecast --location=USNY0176 --datatype=LT --startday=2 --imperial --hideunits --centeredwidth=3}${goto 174}${execi 1800 conkyForecast --location=USNY0176 --datatype=HT --startday=3 --imperial --hideunits --centeredwidth=3}/${execi 1800 conkyForecast --location=USNY0176 --datatype=LT --startday=3 --imperial --hideunits --centeredwidth=3}${goto 250}${execi 1800 conkyForecast --location=USNY0176 --datatype=HT --startday=4 --imperial --hideunits --centeredwidth=3}/${execi 1800 conkyForecast --location=USNY0176 --datatype=LT --startday=4 --imperial --hideunits --centeredwidth=3}
    ${color3}${font Bitstream Vera Sans Mono:size=6}${alignr}Last Update: ${execi 1800 conkyForecast --location=USNY0176 --datatype=LU}${font}
    
    ${color4}${hr}${color}
    
    
    ${voffset 8}${font LiberationMono:size=8}${color1}${alignc 106}${time %A}${font}
    ${voffset -3}${if_match ${time %e}<=9}${font DroidSansFallback:bold:size=19.5}${color9}${alignc 116}${time %e}${font}${else}${if_match ${time %e}>=10}${font DroidSansFallback:bold:size=19.5}${color9}${alignc 106}${time %e}${font}${endif}${endif}
    ${voffset -1}${font LiberationMono:size=8}${color1}${alignc 106}${time %B}${font}
    ${voffset -3}${font LiberationMono:size=8}${color1}${alignc 106}${time %Y}${font}
    ${voffset -82}${font LiberationMono:size=8}${color1}${execpi 60 Cal_5=`date +%-d`; cal | sed '1d' | sed s/^/"\$\{offset 97"\}/ | sed '/^ *$/d' | sed 's/\<'"$Cal_5"'\>/${color4}&${color1}/'}${font}
    ${voffset -92}${font CutOutsFor3DFX:size=64}${color8}${alignc 152}2${font}
    
    ${voffset 32}${font LiberationMono:size=8}${color5}${execpi 60 Cal_4=`date +%-d`; cal -3 | cut -c1-20 | sed s/^/"\$\{offset 4"\}/}${font}
    ${voffset -107}${font LiberationMono:size=8}${execpi 60 Cal_3=`date +%-d`; cal -3 | cut -c45-64 | sed s/^/"\$\{offset 164"\}/ | sed '/^ *$/d'}${font}
    
    
    ${font DejaVu Sans Mono:bold:size=8.5}${color4}NETWORK${font} ${hr}
    ${font DroidSans:size=8.5}${color6}Internet:  ${execi 404 wget http://automation.whatismyip.com/n09230945.asp -O - -q}
    ${color6}ethernet: ${addr eth0}
    ${color5}Down: ${color}${downspeed eth0}k/s${goto 160}${color5}Up: ${color}${upspeed eth0}k/s
    ${downspeedgraph eth0 25,142 000000 ff0000} ${alignr}${upspeedgraph eth0 25,142 000000 00ff00}${color}
    ${color6}wi-fi: ${addr wlan0}
    ${color5}Down: ${color}${downspeed wlan0}k/s${goto 160}${color5}Up: ${color}${upspeed wlan0}k/s
    ${downspeedgraph wlan0 25,142 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,142 000000 00ff00}
    ${color9}${hr}
    ${color7}Total Down: ${color}${totaldown eth0}${goto 160}${color7}Total Up: ${color}${totalup eth0}
    ${color7}Inbound: ${color}${tcp_portmon 1 32767 count}${alignc -36}${color7}Outbound: ${color}${tcp_portmon 32768 61000 count}${alignr}${color7}Total: ${color}${tcp_portmon 1 65535 count}
    
    ${font DejaVu Sans Mono:bold:size=8.5}${color4}MISC${font} ${hr}
    ${font DroidSans:size=8.5}${color5}Power: ${color}${battery}
    ${color5}Battery remaining: ${color}${battery_time} ${battery_bar}
    Attached Images Attached Images
    Last edited by dimm0k; May 30th, 2011 at 01:17 AM.

  7. #3257
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by dimm0k View Post
    I've attached a screenshot to show what I mean, as well as my config. Hopefully someone has a fix for this...

    Yea, it's the ${voffset} commands.

    Good reading on the subject: Spacing and Goto/offset/voffset. It the price you pay for the ${voffset} commands try to eliminate them.

    However there is a "cheat"

    Code:
    alignment top_right
    gap_x 7   ### left &right
    gap_y 50   ### up & down
    Now keep adding a 50-pack to that gap_y until your "Music" is pushed down to the panel, that way the "space" will be off the bottom of the screen.
    Last edited by Sector11; May 30th, 2011 at 01:55 AM.

  8. #3258
    Join Date
    Sep 2008
    Beans
    30

    Re: Conky Weather Forecast Python Script

    Thanks Sector11, the readings you've provided cleared things up on the cause of these extra lines and that gap_ cheat should come in handy. However as mentioned in the goto/offset/voffset link, one can draw up another instance of conky to utilize that empty space and I think that would work better here to keep things a little modular.

  9. #3259
    Join Date
    Feb 2011
    Beans
    31
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky Weather Forecast Python Script

    Sector11 helped me out with my weather but it will not update. Today is Monday and it is still showing Sunday.


    Code:
    ${goto 100}${font Zekton:size=20}${color}[--datatype=HT]${font}${image [--datatype=WI] -p 10,20 -s 80x80}
    ${goto 100}${voffset 0}${color6}FL: ${color}[--datatype=LT --night]
    ${goto 100}${color6}Min: ${color}[--startday=0 --datatype=LT --night] ${color6}  Máx: ${color}[--startday=0 --datatype=HT --night]
    ${goto 100}${color6}Visability:${color} [--datatype=VI]
    ${goto 100}${color6}Dew Point: ${color}[--datatype=DP]${color}
    ${goto 100}${color6}Humidity: ${color}[--datatype=HM]
    ${goto 100}${color6}UV: ${color}[--datatype=UI] - ${color}[--datatype=UT]
    ${goto 40}${color6}Pressure: ${color}[--datatype=BR] - [--datatype=BD]${color}
    ${goto 10}${color0}${font Zekton:size=14}[--datatype=CC]${font}
    ${voffset 65}${goto 10}${color}[--datatype=MP]${image [--datatype=MI] -p 20,155 -s 50x50}${image ~/Conky/images/Sun_Up_Dn.png -p 100,155 -s 50x50}
    ${goto 148}${voffset -30}[--datatype=SS]${goto 155}${voffset -20}[--datatype=DL]${goto 148}${voffset -20}[--datatype=SR]
    ${goto 30}${voffset 70}${color6}[--datatype=WS]${color}
    ${voffset 65}${goto 10}${color}([--datatype=WA]) ${color}[--datatype=WD]${goto 100}${color}[--datatype=DW --shortweekday --startday=1]: ${color}[--datatype=HT --hideunits --hidedegreesymbol --startday=1]${color}/${color6}[--datatype=LT --hideunits --hidedegreesymbol --startday=1]${image [--datatype=BI] -p 20,255 -s 50x50}${image [--datatype=WI --startday=1] -p 100,255 -s 50x50}
    ${voffset 63}${goto 10}${color}[--datatype=DW --shortweekday --startday=2]: ${color}[--datatype=HT --hideunits --hidedegreesymbol --startday=2]${color}/${color6}[--datatype=LT --hideunits --hidedegreesymbol --startday=2]${goto 100}${color}[--datatype=DW --shortweekday --startday=3]: ${color}[--datatype=HT --hideunits --hidedegreesymbol --startday=3]${color}/${color6}[--datatype=LT --hideunits --hidedegreesymbol --startday=3]${image [--datatype=WI --startday=2] -p 20,335 -s 50x50}${image [--datatype=WI --startday=3] -p 100,335 -s 50x50}
    ${voffset 63}${goto 10}${color}[--datatype=DW --shortweekday --startday=4]: ${color}[--datatype=HT --hideunits --hidedegreesymbol --startday=4]${color}/${color6}[--datatype=LT --hideunits --hidedegreesymbol --startday=4]${goto 100}${color}[--datatype=DW --shortweekday --startday=5]: ${color}[--datatype=HT --hideunits --hidedegreesymbol --startday=5]${color}/${color6}[--datatype=LT --hideunits --hidedegreesymbol --startday=5]${image [--datatype=WI --startday=4] -p 20,410 -s 50x50}${image [--datatype=WI --startday=5] -p 100,410 -s 50x50}
    ${voffset 60}${goto 10}${color}[--datatype=DW --shortweekday --startday=6]: ${color}[--datatype=HT --hideunits --hidedegreesymbol --startday=6]${color}/${color6}[--datatype=LT --hideunits --hidedegreesymbol --startday=6]${goto 100}${color}[--datatype=DW --shortweekday --startday=7]: ${color}[--datatype=HT --hideunits --hidedegreesymbol --startday=7]${color}/${color6}[--datatype=LT --hideunits --hidedegreesymbol --startday=7]${image [--datatype=WI --startday=6] -p 20,485 -s 50x50}${image [--datatype=WI --startday=7] -p 100,485 -s 50x50}${color}
    ${font DejaVu Sans Mono:size=8}${goto 5}${voffset 5}${exec python ~/Conky/scripts/conkyLatLong.py}${font}
    Code:
    # To use #! in a cony use: ${exec echo '#!'}
    # Vert-Weather
     
    background no
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints skip_taskbar,skip_pager
    own_window_title Vert Weather
     
    double_buffer yes
    use_spacer right # yes is NOT an option - left right or none
    override_utf8_locale yes
    use_xft yes
    xftfont DejaVu Sans Mono:bold:size=8
    xftalpha 1.0
    uppercase no
    stippled_borders 0
    border_inner_margin 0
    border_width 0
    default_outline_color black
    default_shade_color black
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
     
    default_color DCDCDC #Gainsboro
    color0 FFFFF0 #Ivory
    color1 FFA07A #LightSalmon
    color2 FF8C00 #Darkorange
    color3 7FFF00 #Chartreuse
    color4 778899 #LightSlateGrey
    color5 FFDEAD #NavajoWhite
    color6 00BFFF #DeepSkyBlue
    color7 48D1CC #MediumTurquoise
    color8 FFFF00 #Yellow
    color9 FF0000 #Red
     
    text_buffer_size 6144 # 256 is minimum
    no_buffers yes
    short_units yes
    pad_percents 2
    
    alignment ml  # tl, tr, tm, bl, br, bm, ml, mr
    gap_x 0 # left-right
    gap_y 0 # up-down
    minimum_size 0 0
    
    update_interval 1200
    TEXT
    ${execpi 1800 conkyForecast -i --location=USOH1015 --template=~/Conky/vert.template}
    I thought about trying a couple of things but I don't want to screw it up. Thanks

  10. #3260
    Join Date
    Feb 2011
    Beans
    31
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky Weather Forecast Python Script

    I tried to change update_interval 1200 to 300. That didn't work.

Page 326 of 380 FirstFirst ... 226276316324325326327328336376 ... 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
  •