Page 374 of 380 FirstFirst ... 274324364372373374375376 ... LastLast
Results 3,731 to 3,740 of 3796

Thread: Conky Weather Forecast Python Script

  1. #3731
    Join Date
    Oct 2012
    Beans
    1

    Re: Conky Weather Forecast Python Script

    Is it possible insert automatically the season of year (spring, summer, autumn, winter)? How?

  2. #3732
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by adrianojbr View Post
    Is it possible insert automatically the season of year (spring, summer, autumn, winter)? How?
    Not appropriate in the script, will only work in one hemisphere
    But you could do it simply with a shell script and date comparisons to the date() function

  3. #3733
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    OK, it's back and flyin' high!

    Gotta love it!
    Just a simple one to start over again!

    And NO ID or KEY with: ~/.conkyForecast.config
    Code:
    #=============================================#
    # EXPERT SETTINGS, NOT REQUIRED TO BE ALTERED #
    #=============================================#
    #BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    MAXIMUM_DAYS_FORECAST = 9
    
    #===============================================#
    # USER SETTINGS, EDIT BASED ON DOCUMENTED SETUP #
    #===============================================#
    CACHE_FOLDERPATH = /home/sector11/Conky/cache/
    CONNECTION_TIMEOUT = 5
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %H:%M
    DATE_FORMAT = %Y-%m-%d
    LOCALE = en
    XOAP_PARTNER_ID =
    XOAP_LICENCE_KEY =
    DEFAULT_LOCATION = ARBA0009
    AUTO_NIGHT = TRUE
    PROXY_HOST =
    PROXY_PORT = 8080
    PROXY_USERNAME =
    PROXY_PASSWORD =
    Conky
    Code:
    # killall conky && conky -c ~/Conky/S11_conkyForecast_Oct_2012.conky &
    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager
    #own_window_colour gray
    own_window_class Conky
    own_window_title October 2012
    
    # Use the Xdbe extension? (eliminates flicker)
    # It is highly recommended to use own window with this one
    # so double buffer won't be so big.
    double_buffer yes
    
    ### ARGB can be used for real transparency
    ### NOTE that a composite manager is required for real transparency.
    ### This option will not work as desired (in most cases) in conjunction with
    ### own_window_type normal
    own_window_argb_visual no # Options: yes or no
    
    ### When ARGB visuals are enabled, this use this to modify the alpha value
    ### Use: own_window_type normal
    ### Use: own_window_transparent no
    ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
     own_window_argb_value 255
    
    minimum_size 250 350  ## width, height
    maximum_width 250     ## width
    
    gap_x 10 ### left &right
    gap_y 10 ### up & down
    
    alignment tl
    ####################################################  End Window Settings  ###
    ###  Font Settings  ##########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    xftfont monofur:size=5
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 1
    # Force UTF8? requires XFT ###
    override_utf8_locale yes
    
    uppercase no
    ######################################################  End Font Settings  ###
    ###  Color Settings  #########################################################
    draw_shades no
    default_shade_color black
    
    draw_outline no # amplifies text if yes
    default_outline_color black
    
    default_color DCDCDC #220 220 220	Gainsboro
    color0 8FBC8F #143 188 143	DarkSeaGreen
    color1 778899 #119 136 153	LightSlateGray
    color2 FF8C00 #255 140   0	DarkOrange
    color3 7FFF00 #127 255   0	Chartreuse
    color4 FFA07A #255 160 122	LightSalmon
    color5 FFDEAD #255 222 173	NavajoWhite
    color6 00BFFF #  0 191 255	DeepSkyBlue
    color7 00FFFF #  0 255 255	Cyan
    color8 FFFF00 #255 255   0	Yellow
    color9 B22222 #178  34  34	FireBrick
    #####################################################  End Color Settings  ###
    ###  Borders Section  ########################################################
    draw_borders no
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_inner_margin 5
    border_outer_margin 0
    # border width
    border_width 0
    # graph borders
    draw_graph_borders yes #no
    #default_graph_size 15 40
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    # Boolean value, if true, Conky will be forked to background when started.
    background yes
    
    # Adds spaces around certain objects to stop them from moving other things
    # around, this only helps if you are using a mono font
    # Options: right, left or none
    use_spacer none
    
    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 12800
    
    # Subtract (file system) buffers from used memory?
    no_buffers yes
    
    # change GiB to G and MiB to M
    short_units yes
    
    # Like it says, ot pads the decimals on % values
    # doesn't seem to work since v1.7.1
    pad_percents 2
    
    #   Maximum size of user text buffer, i.e. layout below TEXT line in config file
    #  (default is 16384 bytes)
    # max_user_text 16384
    
    # Desired output unit of all objects displaying a temperature. Parameters are
    # either "fahrenheit" or "celsius". The default unit is degree Celsius.
    # temperature_unit Fahrenheit
    
    ##############################################  End Miscellaneous Section  ###
    ###  LUA Settings  ###########################################################
    ## Above and After TEXT - requires a composite manager or blinks.
    ##
    # lua_load ~/Conky/LUA/draw-bg.lua
    #TEXT
    #  ${lua conky_draw_bg 15 0 0 0 0 0x000000 0.3}
    #
    ## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    ##
    ## OR Both above TEXT (No composite manager required - no blinking!)
    #
    #--------------------------------
    #lua_load ~/Conky/LUA/draw-bg.lua
    #lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.5
    #lua_draw_hook_post draw_bg 20 0 0 0 0 0x000000 0.5
    #
    # TEXT
    ##
    #
    #######################################################  End LUA Settings  ###
    TEXT
    ${execpi 1800 conkyForecast --template=~/Conky/templates/cF-25-10-2012.template}
    cF-25-10-2012.template
    Code:
    ${image [--datatype=WI] -p 10,45 -s 100x100 -n}
        ${font monofur:bold:size=10}[--datatype=CN], [--datatype=CO]
      ${font monofur:bold:size=14}[--datatype=CT]${font}
    ${goto 155}${font monofur:bold:size=35}[--datatype=HT --hideunits]${font monofur:bold:size=10}
    ${goto 130}${color0} Feels like: ${color}[--datatype=LT--hideunits]
    ${goto 130}${color2}Todays High: [--startday=0 --datatype=HT --hideunits]
    ${goto 130}${color6} Todays Low: [--startday=0 --datatype=LT --hideunits]${color}${font}
    ${image [--datatype=WI --startday=1] -p 10,150 -s 60x60 -n}
    ${image [--datatype=WI --startday=2] -p 90,150 -s 60x60 -n}
    ${image [--datatype=WI --startday=3] -p 170,150 -s 60x60 -n}
    
    
    
    
    
    
    
    
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=1]${color}/${color6}[--datatype=LT --hideunits --startday=1]${goto 105}${color2}[--datatype=HT --hideunits --startday=2]${color}/${color6}[--datatype=LT --hideunits --startday=2]${goto 182}${color2}[--datatype=HT --hideunits --startday=3]${color}/${color6}[--datatype=LT --hideunits --startday=3]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=1]${goto 115}[--datatype=DW --shortweekday --startday=2]${goto 195}[--datatype=DW --shortweekday --startday=3]${font}
    ${image [--datatype=WI --startday=4] -p 10,250 -s 60x60 -n}
    ${image [--datatype=WI --startday=5] -p 90,250 -s 60x60 -n}
    ${image [--datatype=WI --startday=6] -p 170,250 -s 60x60 -n}
    
    
    
    
    
    
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=4]${color}/${color6}[--datatype=LT --hideunits --startday=4]${goto 105}${color2}[--datatype=HT --hideunits --startday=5]${color}/${color6}[--datatype=LT --hideunits --startday=5]${goto 182}${color2}[--datatype=HT --hideunits --startday=6]${color}/${color6}[--datatype=LT --hideunits --startday=6]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=4]${goto 115}[--datatype=DW --shortweekday --startday=5]${goto 195}[--datatype=DW --shortweekday --startday=6]${font}
    ${image [--datatype=WI --startday=7] -p 10,350 -s 60x60 -n}
    ${image [--datatype=WI --startday=8] -p 90,350 -s 60x60 -n}
    ${image [--datatype=WI --startday=9] -p 170,350 -s 60x60 -n}
    
    
    
    
    
    
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=7]${color}/${color6}[--datatype=LT --hideunits --startday=7]${goto 105}${color2}[--datatype=HT --hideunits --startday=8]${color}/${color6}[--datatype=LT --hideunits --startday=8]${goto 182}${color2}[--datatype=HT --hideunits --startday=9]${color}/${color6}[--datatype=LT --hideunits --startday=9]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=7]${goto 115}[--datatype=DW --shortweekday --startday=8]${goto 195}[--datatype=DW --shortweekday --startday=9]${font}
    I Stand corrected: Jedcurtis was correct, my template was wrong in showing the days. (as seen in the image). It has been corrected, but the image remains to uphold this:
    Thank you Jedcurtis
    Last edited by Sector11; October 29th, 2012 at 06:54 PM.

  4. #3734
    Join Date
    Aug 2010
    Location
    Earth, usually...
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    ^another really nice and simple weather. Works great on my laptop. Some simple changes to the template to compensate for my 1920x1080 resolution, and also had to change the days to reflect the correct day on the screen.

    Your version of the template;
    Code:
    ${image [--datatype=WI] -p 10,45 -s 100x100 -n}     ${font monofur:bold:size=10}[--datatype=CN], [--datatype=CO]   ${font monofur:bold:size=14}[--datatype=CT]${font} ${goto 155}${font monofur:bold:size=35}[--datatype=HT --hideunits]${font monofur:bold:size=10} ${goto 130}${color0} Feels like: ${color}[--datatype=LT--hideunits] ${goto 130}${color2}Todays High: [--startday=0 --datatype=HT --hideunits] ${goto 130}${color6} Todays Low: [--startday=0 --datatype=LT --hideunits]${color}${font} ${image [--datatype=WI --startday=1] -p 10,150 -s 60x60 -n} ${image [--datatype=WI --startday=2] -p 90,150 -s 60x60 -n} ${image [--datatype=WI --startday=3] -p 170,150 -s 60x60 -n}         ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=1]${color}/${color6}[--datatype=LT --hideunits --startday=1]${goto 105}${color2}[--datatype=HT --hideunits --startday=2]${color}/${color6}[--datatype=LT --hideunits --startday=2]${goto 182}${color2}[--datatype=HT --hideunits --startday=3]${color}/${color6}[--datatype=LT --hideunits --startday=3]${color} ${goto 35}[--datatype=DW --shortweekday --startday=1]${goto 115}[--datatype=DW --shortweekday --startday=2]${goto 195}[--datatype=DW --shortweekday --startday=3]${font} ${image [--datatype=WI --startday=4] -p 10,250 -s 60x60 -n} ${image [--datatype=WI --startday=5] -p 90,250 -s 60x60 -n} ${image [--datatype=WI --startday=6] -p 170,250 -s 60x60 -n}       ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=4]${color}/${color6}[--datatype=LT --hideunits --startday=4]${goto 105}${color2}[--datatype=HT --hideunits --startday=5]${color}/${color6}[--datatype=LT --hideunits --startday=5]${goto 182}${color2}[--datatype=HT --hideunits --startday=6]${color}/${color6}[--datatype=LT --hideunits --startday=6]${color} ${goto 35}[--datatype=DW --shortweekday --startday=7]${goto 115}[--datatype=DW --shortweekday --startday=8]${goto 195}[--datatype=DW --shortweekday --startday=9]${font} ${image [--datatype=WI --startday=7] -p 10,350 -s 60x60 -n} ${image [--datatype=WI --startday=8] -p 90,350 -s 60x60 -n} ${image [--datatype=WI --startday=9] -p 170,350 -s 60x60 -n}       ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=7]${color}/${color6}[--datatype=LT --hideunits --startday=7]${goto 105}${color2}[--datatype=HT --hideunits --startday=8]${color}/${color6}[--datatype=LT --hideunits --startday=8]${goto 182}${color2}[--datatype=HT --hideunits --startday=9]${color}/${color6}[--datatype=LT --hideunits --startday=9]${color} ${goto 35}[--datatype=DW --shortweekday --startday=7]${goto 115}[--datatype=DW --shortweekday --startday=8]${goto 195}[--datatype=DW --shortweekday --startday=9]${font}
    And my version of the template with said fixes...

    Code:
    ${image [--datatype=WI] -p 10,45 -s 100x100 -n}
        ${font monofur:bold:size=10}[--datatype=CN], [--datatype=CO]
      ${font monofur:bold:size=14}[--datatype=CT]${font}
    ${goto 155}${font monofur:bold:size=35}[--datatype=HT --hideunits]${font monofur:bold:size=10}
    ${goto 130}${color0} Feels like: ${color}[--datatype=LT--hideunits]
    ${goto 130}${color2}Todays High: [--startday=0 --datatype=HT --hideunits]
    ${goto 130}${color6} Todays Low: [--startday=0 --datatype=LT --hideunits]${color}${font}
    ${image [--datatype=WI --startday=1] -p 10,150 -s 60x60 -n}
    ${image [--datatype=WI --startday=2] -p 90,150 -s 60x60 -n}
    ${image [--datatype=WI --startday=3] -p 170,150 -s 60x60 -n}
    
    
    
    
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=1]${color}/${color6}[--datatype=LT --hideunits --startday=1]${goto 105}${color2}[--datatype=HT --hideunits --startday=2]${color}/${color6}[--datatype=LT --hideunits --startday=2]${goto 182}${color2}[--datatype=HT --hideunits --startday=3]${color}/${color6}[--datatype=LT --hideunits --startday=3]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=1]${goto 115}[--datatype=DW --shortweekday --startday=2]${goto 195}[--datatype=DW --shortweekday --startday=3]${font}
    ${image [--datatype=WI --startday=4] -p 10,250 -s 60x60 -n}
    ${image [--datatype=WI --startday=5] -p 90,250 -s 60x60 -n}
    ${image [--datatype=WI --startday=6] -p 170,250 -s 60x60 -n}
    
    
    
    
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=4]${color}/${color6}[--datatype=LT --hideunits --startday=4]${goto 105}${color2}[--datatype=HT --hideunits --startday=5]${color}/${color6}[--datatype=LT --hideunits --startday=5]${goto 182}${color2}[--datatype=HT --hideunits --startday=6]${color}/${color6}[--datatype=LT --hideunits --startday=6]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=4]${goto 115}[--datatype=DW --shortweekday --startday=5]${goto 195}[--datatype=DW --shortweekday --startday=6]${font}
    ${image [--datatype=WI --startday=4] -p 10,350 -s 60x60 -n}
    ${image [--datatype=WI --startday=5] -p 90,350 -s 60x60 -n}
    ${image [--datatype=WI --startday=6] -p 170,350 -s 60x60 -n}
    
    
    
    
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=7]${color}/${color6}[--datatype=LT --hideunits --startday=7]${goto 105}${color2}[--datatype=HT --hideunits --startday=8]${color}/${color6}[--datatype=LT --hideunits --startday=8]${goto 182}${color2}[--datatype=HT --hideunits --startday=9]${color}/${color6}[--datatype=LT --hideunits --startday=9]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=7]${goto 115}[--datatype=DW --shortweekday --startday=8]${goto 195}[--datatype=DW --shortweekday --startday=9]${font}
    I swear I've seen that color scheme somewhere before! (snicker-snicker)
    Coolness!
    Jed
    Attached Images Attached Images
    Last edited by Jedcurtis; October 29th, 2012 at 04:03 PM.

  5. #3735
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Jedcurtis View Post
    ^another really nice and simple weather. Works great on my laptop. Some simple changes to the template to compensate for my 1920x1080 resolution, and also had to change the days to reflect the correct day on the screen.

    Your version of the template;

    {snip}

    I swear I've seen that color scheme somewhere before! (snicker-snicker)
    Coolness!
    Jed
    Yes looks familiar - font too, I think that monofur is about to become my most used mono font.

    There is a couple of hmmmmmm's in there though:

    I'll have to check my template, I'm certain it's not all on one line.

    OOPS!: WRONG: Just checked my template - looks OK, days in the right place too.

    However you are showing days 4,5 and 6 [--datatype=WI] twice:

    Code:
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=1]${color}/${color6}[--datatype=LT --hideunits --startday=1]${goto 105}${color2}[--datatype=HT --hideunits --startday=2]${color}/${color6}[--datatype=LT --hideunits --startday=2]${goto 182}${color2}[--datatype=HT --hideunits --startday=3]${color}/${color6}[--datatype=LT --hideunits --startday=3]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=1]${goto 115}[--datatype=DW --shortweekday --startday=2]${goto 195}[--datatype=DW --shortweekday --startday=3]${font}
    ${image [--datatype=WI --startday=4] -p 10,250 -s 60x60 -n}
    ${image [--datatype=WI --startday=5] -p 90,250 -s 60x60 -n}
    ${image [--datatype=WI --startday=6] -p 170,250 -s 60x60 -n}
    
    
    
    
    ${font monofur:bold:size=10}${goto 25}${color2}[--datatype=HT --hideunits --startday=4]${color}/${color6}[--datatype=LT --hideunits --startday=4]${goto 105}${color2}[--datatype=HT --hideunits --startday=5]${color}/${color6}[--datatype=LT --hideunits --startday=5]${goto 182}${color2}[--datatype=HT --hideunits --startday=6]${color}/${color6}[--datatype=LT --hideunits --startday=6]${color}
    ${goto 35}[--datatype=DW --shortweekday --startday=4]${goto 115}[--datatype=DW --shortweekday --startday=5]${goto 195}[--datatype=DW --shortweekday --startday=6]${font}
    ${image [--datatype=WI --startday=4] -p 10,350 -s 60x60 -n}
    ${image [--datatype=WI --startday=5] -p 90,350 -s 60x60 -n}
    ${image [--datatype=WI --startday=6] -p 170,350 -s 60x60 -n}
    That second group should be 7, 8 and 9 then everything will be fine.

    Oops! See my original post Jed {facepalm} - you were right!
    Last edited by Sector11; October 29th, 2012 at 06:57 PM.

  6. #3736
    Join Date
    Aug 2010
    Location
    Earth, usually...
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    I believe I'll correct this whole post as I look up at the 'former' post and see that you saw!!!!! hehehe
    Jed
    Last edited by Jedcurtis; October 29th, 2012 at 07:15 PM.

  7. #3737
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Jedcurtis View Post
    I believe I'll correct this whole post as I look up at the 'former' post and see that you saw!!!!! hehehe
    Jed
    Wait a sec ....

    Are you saying I saw what you saw that I saw what you saw or that I saw what you saw that you saw what I saw?

    I'm so dizzy my head is spinnin'

    It's the real thing.
    A conky from another world.
    Wait, this can't be right.
    The calculates distance from sources is only 375,000km.



    It's a slow day

  8. #3738
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Got a new one ... conkyForecast is a live and well, don't let anyone tell you different:

    Check out the Chronograph with conkyForecast

  9. #3739
    Join Date
    Nov 2010
    Beans
    6

    Re: Conky Weather Forecast Python Script

    Hello, I have run into an issue with using conkyForecastWU.

    I am using conkyForecastWU v2.24.

    When I run conky with the imagebasedtemplate provided in the examples folder:

    Code:
    user@ubuntu:~$ conky -c conkyForecast.imagebasedtemplate.conkyrc 
    Conky: desktop window (3200061) is subwindow of root window (296)
    Conky: window type - override
    Conky: drawing to created window (0x4600001)
    Conky: drawing to double buffer
    Traceback (most recent call last):
      File "/usr/share/conkyforecast/conkyForecastWU.py", line 1812, in <module>
        main()
      File "/usr/share/conkyforecast/conkyForecastWU.py", line 1809, in main
        forecastinfo.writeOutput()
      File "/usr/share/conkyforecast/conkyForecastWU.py", line 1415, in writeOutput
        output = self.getOutputFromTemplate(template)
      File "/usr/share/conkyforecast/conkyForecastWU.py", line 1398, in getOutputFromTemplate
        output += self.getTemplateItemOutput(template[b + 1 : a])
      File "/usr/share/conkyforecast/conkyForecastWU.py", line 1355, in getTemplateItemOutput
        return self.getDatasetOutput(datatype, startday, endday, night, shortweekday, imperial, beaufort, metrespersecond, hideunits, hidedegreesymbol, spaces, minuteshide, centeredwidth)
      File "/usr/share/conkyforecast/conkyForecastWU.py", line 1251, in getDatasetOutput
        output += self.getDatatypeFromSet(datatype, self.forecast_data[self.options.location].day[daynumber], shortweekday, imperial, beaufort, metrespersecond, tempunit, speedunit, distanceunit, pressureunit, minuteshide, centeredwidth)
    IndexError: list index out of range
    I found the 7-day fix for the list index out of range error from earlier and applied it, and I am able to successfully use the conkyForecastWU script:

    Code:
    user@ubuntu:~$ conkyForecastWU -v
    *** INITIAL OPTIONS:
        config: ~/.conkyForecastWU.config
        location: None
        datatype: HT
        start day: None
        end day: None
        spaces: 1
        template: None
        locale: None
        imperial: False
        beaufort: False
        metrespersecond: False
        night: False
        shortweekday: False
        hideunits: False
        hidedegreesymbol: False
        minuteshide: None
        centeredwidth: None
        refetch: False
        verbose: True
        debug: False
        errorlogfile: None
        infologfile: None
    *** CONFIG OPTIONS:
        BASE_WU_JSON_URL: http://api.wunderground.com/api/<WU_STRATUS_LICENCE_KEY>/geolookup/conditions/forecast7day/alerts/astronomy/lang:<LANGCODE>/q/<LOCATION>.json
        BASE_WU_ICON_URL: http://icons.wxug.com/i/c/<ICON_SET>/<ICON>.gif
        MAXIMUM_DAYS_FORECAST: 7
        CACHE_FOLDERPATH: /tmp/
        PERSISTED_CACHE_FOLDERPATH: ~/
        ICON_SET: i
        CONNECTION_TIMEOUT: 5
        EXPIRY_MINUTES: 30
        TIME_FORMAT: %H:%M
        DATE_FORMAT: %Y-%m-%d
        LOCALE: en
        WU_ANVIL_LICENCE_KEY: *removed*
        WU_STRATUS_LICENCE_KEY: *removed*
        WU_CUMULUS_LICENCE_KEY: *removed*
        DEFAULT_LOCATION: GA/Atlanta
    INFO: Locale set to en
    INFO: Not using a proxy as none is defined
    INFO: Loading cache file /tmp/.conkyForecastWU-GA-Atlanta.cache
    20°C
    Please advise

  10. #3740
    Join Date
    Jan 2013
    Beans
    1

    Re: Conky Weather Forecast Python Script

    Hello, I would like to adapt a script that works with conkyForecast to work with conkyForecastWU.
    http://gnome-look.org/content/show.php?content=109900

    There are 2 files:

    .conkyrc-forcherries

    Code:
    # Cherries
    # by londonali1010
    
    background no
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_class Conky
    own_window_hints undecorate,sticky,skip_pager,skip_taskbar,below
    double_buffer yes
    no_buffers yes
    text_buffer_size 2048
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    use_spacer none
    minimum_size 1000 0
    alignment top_left
    gap_x 120
    gap_y 120
    uppercase no
    use_xft yes
    xftfont DejaVu Sans:size=12
    xftalpha 0.8
    default_color d9b2ad
    
    TEXT
    ${voffset 300}${font DejaVu Sans:size=24}${time %A}, ${time %d} ${time %B} ${time %Y}${font}
    ${voffset -8}${fs_bar 8,720 /}
    ${voffset -8}${goto 400}${cpubar 8,310 cpu}
    ${voffset -8}${goto 400}${font saxMono:size=9}${top pid 1}${font DejaVu Sans:size=8}${voffset -1} ${top name 1}${voffset 1}${goto 660}${font saxMono:size=9}${top cpu 1}
    ${goto 400}${font saxMono:size=9}${top pid 2}${font DejaVu Sans:size=8}${voffset -1} ${top name 2}${voffset 1}${goto 650}${font saxMono:size=9}${top cpu 2}
    ${goto 400}${font saxMono:size=9}${top pid 3}${font DejaVu Sans:size=8}${voffset -1} ${top name 3}${voffset 1}${goto 640}${font saxMono:size=9}${top cpu 3}
    ${goto 400}${font saxMono:size=9}${top pid 4}${font DejaVu Sans:size=8}${voffset -1} ${top name 4}${voffset 1}${goto 620}${font saxMono:size=9}${top cpu 4}
    ${goto 400}${membar 8, 260}
    ${goto 400}${font saxMono:size=9}${top_mem pid 1}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 1}${voffset 1}${goto 620}${font saxMono:size=9}${top_mem mem 1}
    ${goto 400}${font saxMono:size=9}${top_mem pid 2}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 2}${voffset 1}${goto 630}${font saxMono:size=9}${top_mem mem 2}
    ${goto 400}${font saxMono:size=9}${top_mem pid 3}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 3}${voffset 1}${goto 640}${font saxMono:size=9}${top_mem mem 3}
    ${goto 400}${font saxMono:size=9}${top_mem pid 4}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 4}${voffset 1}${goto 650}${font saxMono:size=9}${top_mem mem 4}${font}
    ${voffset -90}${font route3:size=160}${time %k}${font route3:size=100}${voffset -80}${goto 230}${time %M}${font}
    ${voffset -500}${execpi 360 conkyForecast --location=XXXXXX --template=/usr/share/conkyforecast/conkyForecast.template}
    conkyForecast-forcherries.template

    Code:
    ${font ConkyWeather:size=38}[--datatype=WF]
    ${font MoonPhases:size=35}[--datatype=WF]
    ${font ConkyWeather:size=38}[--datatype=WF --startday=1]
    ${font ConkyWeather:size=38}[--datatype=WF --startday=2]
    ${font ConkyWeather:size=38}[--datatype=WF --startday=3]
    ${font ConkyWeather:size=38}[--datatype=WF --startday=4]${font}
    ${voffset -290}${goto 75}${font DejaVu Sans:size=10}Today
    ${goto 75}[--datatype=HT --hideunits --centeredwidth=3] / [--datatype=LT --hideunits --centeredwidth=3]
    ${voffset 15}${goto 75}Tonight
    ${goto 75}[--datatype=MP]
    ${voffset 15}${goto 75}[--datatype=DW --startday=1]
    ${goto 75}[--datatype=HT --startday=1 --hideunits --centeredwidth=3] / [--datatype=LT --startday=1 --hideunits --centeredwidth=3]
    ${voffset 15}${goto 75}[--datatype=DW --startday=2]
    ${goto 75}[--datatype=HT --startday=2 --hideunits --centeredwidth=3] / [--datatype=LT --startday=2 --hideunits --centeredwidth=3]
    ${voffset 15}${goto 75}[--datatype=DW --startday=3]
    ${goto 75}[--datatype=HT --startday=3 --hideunits --centeredwidth=3] / [--datatype=LT --startday=3 --hideunits --centeredwidth=3]
    ${voffset 15}${goto 75}[--datatype=DW --startday=4]
    ${goto 75}[--datatype=HT --startday=4 --hideunits --centeredwidth=3] / [--datatype=LT --startday=4 --hideunits --centeredwidth=3]
    Can anyone help?
    sorry for my English

Page 374 of 380 FirstFirst ... 274324364372373374375376 ... 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
  •