Page 226 of 380 FirstFirst ... 126176216224225226227228236276326 ... LastLast
Results 2,251 to 2,260 of 3796

Thread: Conky Weather Forecast Python Script

  1. #2251
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,198
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Conky Weather Forecast Python Script

    Have you signed up for an account at weather.com?
    Have you got your location code (eg UKXX9999)?
    Do you have account ID and licence key?
    Did you enter these into your conkyForecast.config file?
    If the answer to these questions is yes, then that config file should be in your /Home folder as a hidden file.
    I think this is in the first post of this thread.
    Last edited by Quackers; October 22nd, 2010 at 10:14 PM.
    MacBook Pro 10,1 retina

  2. #2252
    Join Date
    Jun 2010
    Beans
    24

    Re: Conky Weather Forecast Python Script

    Have you signed up for an account at weather.com?
    Yes I did.

    Have you got your location code (eg UKXX9999)?
    Yes I got USAL0054

    Do you have account ID and licence key?
    Yes
    XOAP_PARTNER_ID = 1215999739
    XOAP_LICENCE_KEY = e260a727941ced0b

    Did you enter these into your conkyForecast.config file?

    Yes
    Code:
    #config settings for conkyForecast.py
    CACHE_FOLDERPATH = /tmp/
    CONNECTION_TIMEOUT = 5
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %H:%M
    DATE_FORMAT = %Y-%m-%d
    LOCALE = 
    XOAP_PARTNER_ID = 1215999739
    XOAP_LICENCE_KEY = e260a727941ced0b
    MAXIMUM_DAYS_FORECAST = 7
    AUTO_NIGHT = False
    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
    If the answer to these questions is yes, then that config file should be in your /Home folder as a hidden file.
    I think this is in the first post of this thread.

    config file is in /home folder and it still doesnt work.

  3. #2253
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,198
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Conky Weather Forecast Python Script

    From the first post

    To copy and edit the config file, using the command line , run the following two commands in a terminal, one after the other:

    Code:

    cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config
    nano ~/.conkyForecast.config

    So you've now got the .conkyForecast.config file in your /home folder. Ok and it still doesn't work. Maybe it's something to do with how your .conkyrc calls it.
    Or if you're using a weather.template maybe there's a problem with that or how it's called by conky. There are a number of possible problems.
    I would suggest you go to the first post in the thread and retrace all the steps while locating and inspecting all your files along the way, checking that those files are in the correct place.
    MacBook Pro 10,1 retina

  4. #2254
    Join Date
    Jun 2010
    Beans
    24

    Re: Conky Weather Forecast Python Script

    cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config
    nano ~/.conkyForecast.config

    its working thanks, I dont know hoe did i missed this

  5. #2255
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,198
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Conky Weather Forecast Python Script

    Ah excellent news
    It's easy to miss a step when you are trying to follow a long set of instructions especially when working in unfamiliar territory. Ask me how I know!
    MacBook Pro 10,1 retina

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

    Re: Conky Weather Forecast Python Script

    UPDATE

    Updates as follows:
    • Updated the /usr/bin/ script to use the python2 sym link instead of python as Python 3 is either here (Arch) or coming (Ubuntu)


    Package changes can be seen here: https://launchpad.net/~conkyhardcore...source.changes

    The apt packages should be available soon

    Cheers

    Note For 10.10 Users
    I do beleive that Ubuntu 10.10 has a bug not having the python2 symbolic link, all other distro's I've used including previous versions of Ubuntu do have a python2 sym link...chances are it's been forgotten about in the hurry to rollout 10.10....

    To fix things so the script can work as it is supposed to post the latest update just add a symbolic link in for python2 like this:
    Code:
    sudo ln -s /usr/bin/python2.6 /usr/bin/python2
    Last edited by kaivalagi; October 25th, 2010 at 10:48 PM.

  7. #2257
    Join Date
    Oct 2010
    Beans
    1

    Re: Conky Weather Forecast Python Script

    Hi All
    I have problem configuring conkyweather. No matter what kind of information I want conky to display, all I ever get is 5 degrees C. here are my config files:

    .conkyrc
    Code:
    background yes
    use_xft yes
    xftfont 123:size=8
    xftalpha 0.1
    update_interval 0.5
    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
    minimum_size 250 5
    maximum_width 400
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color gray
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 10
    gap_y 10
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 1
    override_utf8_locale yes
    use_spacer yes
    text_buffer_size 1024
    
     ...
    ${font Arial:bold:size=10}${color Tan2}WEATHER ${color DarkSlateGray}${hr 2}
    ${font}${color DimGray}
    
    ${voffset -25}${font Weather:size=45}${execi 1800 conkyForecast –location=PLXX0028 –datatype=WF}
    ${alignc 22}${voffset -60}${font Arial:bold:size=10}${color DimGray}${execi 1800 conkyForecast –location=PLXX0028 –datatype=HT}
    
    
    ${color DimGray}Sunrise: $alignr${execi 1800 conkyForecast –location=PLXX0028 –datatype=SR}${alignr}
    Sunset: $alignr${execi 1800 conkyForecast –location=PLXX0028 –datatype=SS}$color
    
    Conditions: ${execi 3600 conkyForecast --location=PLXX0028 --datatype=CC}
    ${font ConkyWeather:size=36}${execi 3600 conkyForecast --location=PLXX0028 --datatype=WF}${font}
    Temp: ${execi 3600 conkyForecast --location=PLXX0028 --datatype=HT}
    and my .conkyForecast.config
    Code:
    # config settings for conkyForecast.py
    CACHE_FOLDERPATH = /tmp/
    CONNECTION_TIMEOUT = 5
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %H:%M
    DATE_FORMAT = %Y-%m-%d
    LOCALE = 
    XOAP_PARTNER_ID = my_id
    XOAP_LICENCE_KEY = my_key
    MAXIMUM_DAYS_FORECAST = 4
    AUTO_NIGHT = False
    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
    Can someone point out errors in my config ?? Thanks

  8. #2258
    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 laabor View Post
    Hi All
    I have problem configuring conkyweather. No matter what kind of information I want conky to display, all I ever get is 5 degrees C.
    Without looking at your config I would say the first thing to try is switching location codes to somewhere else just to see if all is fine, you want to rule out an issue with weather.com data feeds for the location first I'd say. My weather locations works fine and is UKXX0103 (Norwich, UK)

  9. #2259
    Join Date
    May 2008
    Beans
    10
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by kaivalagi View Post
    Note For 10.10 Users
    I do beleive that Ubuntu 10.10 has a bug not having the python2 symbolic link, all other distro's I've used including previous versions of Ubuntu do have a python2 sym link...chances are it's been forgotten about in the hurry to rollout 10.10....

    To fix things so the script can work as it is supposed to post the latest update just add a symbolic link in for python2 like this:
    Code:
    sudo ln -s /usr/bin/python2.6 /usr/bin/python2
    FYI. Had to create the symlink in CrunchBang Statler A2 (based on Debian Squeeze) too...

  10. #2260
    Join Date
    Oct 2010
    Beans
    16

    Re: Conky Weather Forecast Python Script

    I got a problem with my conky weather, hope you guys can help me fix it.
    Here is my conkyForecast.config
    Code:
    # config settings for conkyForecast.py
    CACHE_FOLDERPATH = /tmp/
    CONNECTION_TIMEOUT = 5
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %H:%M
    DATE_FORMAT = %Y-%m-%d
    LOCALE = 
    XOAP_PARTNER_ID = 1216648202
    XOAP_LICENCE_KEY = ddbed347baee224b
    MAXIMUM_DAYS_FORECAST = 4
    AUTO_NIGHT = False
    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
    I already got my location code, however it always results to the information of the default city (Norwich). For example, when I run this:
    Code:
    ${execi 1800 conkyForecast --location=USOR0275}
    ${execi 1800 conkyForecast --datatype=CN}
    The result is always Norwich.

    What did I do wrong and how can I fix it?
    Last edited by nhianho; October 26th, 2010 at 04:13 AM.

Page 226 of 380 FirstFirst ... 126176216224225226227228236276326 ... 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
  •