Page 376 of 380 FirstFirst ... 276326366374375376377378 ... LastLast
Results 3,751 to 3,760 of 3793

Thread: Conky Weather Forecast Python Script

  1. #3751
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Petro Dawg View Post
    conkyForecast alive and well? It was my understanding, as you pointed out before, that weather.com was no longer supporting the program and conkyForecast was no longer in development; therefore creating issues with improper parsing of the information sometime down the line. conkyForecastWU is still in development however.

    Has someone else picked up the development of conkyForecast?
    Sorry if I have misled you. No cF is no longer supported. Mark stopped when weather·com went 100% pay by the month. And for a while cF stopped working unless you had the "paid for" 10 ID and KEY. Those conkys continued to work as mine always have.

    At some point in time cF started working again without an ID or KEY.

    I have three cf config files here:
    ~/.conkyForecast.config
    ~/.conkyForecast.config_e
    ~/.conkyForecast.config_w

    The first is the same as the "_e" version as far as ID and KEY is concerned - empty. The "_w" version is with my paid for ID and KEY.

    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 = /media/5/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 =
    So while not supported, it is working again and I still advocate NOT using /tmp/ for the /cache/ - root owns those and you loose them on shutdown.

    Where is the latest conkyForecsatWU a person can gab? It's only the Alpha version that comes packaged with conkyForecast v2.24. I tried it once a long time ago but have not followed it closely. cF has always worked for me. I don't even have the registration number for wunderground anymore.

    If you want a different weather script that is being supported by the author check the Conky Weather in my sig. I support (with help where needed) mrpeachy's v9000 LUA script and Teo's bash scripts for four sited. Arclance's script is a bit much for me but you can get it here, it's interactive - check out the video.

    I apologize if I have misled you.

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

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Sector11 View Post
    I apologize if I have misled you.
    Its ok, you just had me all excited for a moment.

    First week of school has been slow so I've done some further "development" on the conkyForecastWU, as I hate the all the available icon sets it pulls from the weather underground site.

    I now have the .png files from the original conkyForecast uploaded to a free web-page and have changed the names to match the names assigned by weather underground. This will have to do until I figure out how to alter the py script to use locally stored images.

    I changed the base_wu_icon_url line in the conkyForecastWU configuration file to read...
    Code:
    BASE_WU_ICON_URL = http://d2bm3ljpacyxu8.cloudfront.net/width/90/crop/0,0,90x90/weathericon.webs.com/1_<ICON>.png
    and I get nice modern looking icons.

    There are probably still some bugs in the system, so if anyone wants to use this ICON URL line in their code, they will have to bear with me as I get everything named properly for all possible weather conditions.
    Attached Images Attached Images
    Last edited by Petro Dawg; January 18th, 2013 at 05:00 AM.
    Who's Awesome? You're Awesome.

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

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Sector11 View Post
    Where is the latest conkyForecastWU a person can gab? It's only the Alpha version that comes packaged with conkyForecast v2.24. I tried it once a long time ago but have not followed it closely. cF has always worked for me. I don't even have the registration number for wunderground anymore.

    If you want a different weather script that is being supported by the author check the Conky Weather in my sig. I support (with help where needed) mrpeachy's v9000 LUA script and Teo's bash scripts for four sited. Arclance's script is a bit much for me but you can get it here, it's interactive - check out the video.
    I think you are right about no current development on conkyForecastWU. I saw what I thought was a recent update on the revision history for conkyForecastWU, but I see now it was on Jan. 1, 2012. My brain hasn't fully switched over to 2013 yet it would seem.

    So it appears I'm the current developer now

    Arclance's script... looks awesome , but I believe it would be a major time pit for me to ever customize.

    Where can I find the most recent Teo script/s?
    Last edited by Petro Dawg; January 18th, 2013 at 03:47 AM.
    Who's Awesome? You're Awesome.

  4. #3754
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Petro Dawg View Post
    I think you are right about no current development on conkyForecastWU. I saw what I thought was a recent update on the revision history for conkyForecastWU, but I see now it was on Jan. 1, 2012. My brain hasn't fully switched over to 2013 yet it would seem.

    So it appears I'm the current developer now

    Arclance's script... looks awesome , but I believe it would be a major time pit for me to ever customize.

    Where can I find the most recent Teo script/s?
    See there you go - you the development man!

    Teo's scripts can be had in the first post of his thread, see "Teo's x4 Sites" in my sig. I have a lot of example setup's there too.

    OH - 48 images for conkyForecast -> 00.png, 01.png, 02.png etc etc ... 47.png ...they follow this:
    Code:
            "0": _(u"Tornado"),
            "1": _(u"Tropical Storm"),
            "2": _(u"Hurricane"),
            "3": _(u"Severe Thunderstorms"),
            "4": _(u"Thunderstorms"),
            "5": _(u"Mixed Rain and Snow"),
            "6": _(u"Mixed Rain and Sleet"),
            "7": _(u"Mixed Precipitation"),
            "8": _(u"Freezing Drizzle"),
            "9": _(u"Drizzle"),
            "10": _(u"Freezing Rain"),
            "11": _(u"Light Rain"),
            "12": _(u"Rain"),
            "13": _(u"Snow Flurries"),
            "14": _(u"Light Snow Showers"),
            "15": _(u"Drifting Snow"),
            "16": _(u"Snow"),
            "17": _(u"Hail"),
            "18": _(u"Sleet"),
            "19": _(u"Dust"),
            "20": _(u"Fog"),
            "21": _(u"Haze"),
            "22": _(u"Smoke"),
            "23": _(u"Blustery"),
            "24": _(u"Windy"),
            "25": _(u"N/A"),
            "26": _(u"Cloudy"),
            "27": _(u"Mostly Cloudy"),
            "28": _(u"Mostly Cloudy"),
            "29": _(u"Partly Cloudy"),
            "30": _(u"Partly Cloudy"),
            "31": _(u"Clear"),
            "32": _(u"Clear"),
            "33": _(u"Fair"),
            "34": _(u"Fair"),
            "35": _(u"Mixed Rain and Hail"),
            "36": _(u"Hot"),
            "37": _(u"Isolated Thunderstorms"),
            "38": _(u"Scattered Thunderstorms"),
            "39": _(u"Scattered Showers"),
            "40": _(u"Heavy Rain"),
            "41": _(u"Scattered Snow Showers"),
            "42": _(u"Heavy Snow"),
            "43": _(u"Heavy Snow"),
            "44": _(u"N/A"),
            "45": _(u"Scattered Showers"),
            "46": _(u"Snow Showers"),
            "47": _(u"Isolated Thunderstorms"),
    Last edited by Sector11; January 18th, 2013 at 04:29 AM.

  5. #3755
    Join Date
    Oct 2010
    Location
    Whitney Point, NY
    Beans
    92

    Re: Conky Weather Forecast Python Script

    I should probably maybe one of these days do something about a different weather conky, just in case weather.com quits working, again, this time for good lol.

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

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Sector11 View Post
    See there you go - you the development man!

    Teo's scripts can be had in the first post of his thread, see "Teo's x4 Sites" in my sig. I have a lot of example setup's there too.

    OH - 48 images for conkyForecast -> 00.png, 01.png, 02.png etc etc ... 47.png ...they follow this:
    Code:
            "0": _(u"Tornado"),
            "1": _(u"Tropical Storm"),
            "2": _(u"Hurricane"),
            "3": _(u"Severe Thunderstorms"),
            "4": _(u"Thunderstorms"),
            "5": _(u"Mixed Rain and Snow"),
            "6": _(u"Mixed Rain and Sleet"),
            "7": _(u"Mixed Precipitation"),
            "8": _(u"Freezing Drizzle"),
            "9": _(u"Drizzle"),
            "10": _(u"Freezing Rain"),
            "11": _(u"Light Rain"),
            "12": _(u"Rain"),
            "13": _(u"Snow Flurries"),
            "14": _(u"Light Snow Showers"),
            "15": _(u"Drifting Snow"),
            "16": _(u"Snow"),
            "17": _(u"Hail"),
            "18": _(u"Sleet"),
            "19": _(u"Dust"),
            "20": _(u"Fog"),
            "21": _(u"Haze"),
            "22": _(u"Smoke"),
            "23": _(u"Blustery"),
            "24": _(u"Windy"),
            "25": _(u"N/A"),
            "26": _(u"Cloudy"),
            "27": _(u"Mostly Cloudy"),
            "28": _(u"Mostly Cloudy"),
            "29": _(u"Partly Cloudy"),
            "30": _(u"Partly Cloudy"),
            "31": _(u"Clear"),
            "32": _(u"Clear"),
            "33": _(u"Fair"),
            "34": _(u"Fair"),
            "35": _(u"Mixed Rain and Hail"),
            "36": _(u"Hot"),
            "37": _(u"Isolated Thunderstorms"),
            "38": _(u"Scattered Thunderstorms"),
            "39": _(u"Scattered Showers"),
            "40": _(u"Heavy Rain"),
            "41": _(u"Scattered Snow Showers"),
            "42": _(u"Heavy Snow"),
            "43": _(u"Heavy Snow"),
            "44": _(u"N/A"),
            "45": _(u"Scattered Showers"),
            "46": _(u"Snow Showers"),
            "47": _(u"Isolated Thunderstorms"),
    The way conkyForecastWU works is a little different. For example, it will pull the icon named "chancetstorm.gif" or "mostlycloudy.gif" from a target web address, which, unfortunately, doesn't really fit the code from conkyForecast which had all pictures assigned as numbers in a folder. Weather Underground uses far fewer condition names than weather.com

    It seems to pull names of the icons from the weather underground site (http://www.wunderground.com/weather/...rces/icon-sets). I believe I have most of the possible icon names uploaded onto my new web-page now at http://weathericon.webs.com/

    I counted up to 26 "day time" icons from the weatherunderground api site, but only 17 seem to have unique names. However, I found an icon "hail.gif" which could be pulled that wasn't displayed on the api site. So I'm not sure how many I might be missing. I think I have all the common ones at least. I will fill in any missing ones if and when my conky fails to load an icon.

    I edited my original post concerning my alteration of the config file (as a bug in webs.com forced me to change my naming scheme), but I will post the altered line again anyway here too.

    Code:
    BASE_WU_ICON_URL = http://d2bm3ljpacyxu8.cloudfront.net/width/90/crop/0,0,90x90/weathericon.webs.com/1_<ICON>.png
    Last edited by Petro Dawg; January 18th, 2013 at 05:37 AM.
    Who's Awesome? You're Awesome.

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

    Re: Conky Weather Forecast Python Script

    Also, for anyone wanting to get the correct wind bearing direction to show up with the bearing icon set in conkyForecastWU, the "bearing_icon = { ... }" portion of the conkyForecastWU.py must be replaced with the following code.

    Code:
        bearing_icon = {
            "calm": "00",
            "VAR": "01",
            "S": "05",
            "SSW": "06",
            "SW": "07",
            "WSW": "08",
            "W": "09",
            "WNW": "10",
            "NW": "11",
            "NNW": "12",
            "N": "13",
            "NNE": "14",
            "NE": "15",
            "ENE": "16",
            "E": "17",
            "ESE": "18",
            "SE": "19",
            "SSE": "20",
    
            "variable": "01",
            "South": "05",
            "South Southwest": "06",
            "Southwest": "07",
            "West Southwest": "08",
            "West": "09",
            "West Northwest": "10",
            "Northwest": "11",
            "North Northwest": "12",
            "North": "13",
            "North Northeast": "14",
            "Northeast": "15",
            "East Northeast": "16",
            "East": "17",
            "East Southeast": "18",
            "Southeast": "19",
            "South Southeast": "20"
        }
    As the wind direction output would seem to be abbreviated in some instances (such as NNW for North Northwest) but would give full outputs for "North", "East", "South", and "West" which didn't return a number for the icon set to use.
    Who's Awesome? You're Awesome.

  8. #3758
    Join Date
    Sep 2009
    Beans
    2

    Re: Conky Weather Forecast Python Script

    Please, someone tell me how to be able to have XOAP_PARTNER_ID and XOAP_LICENCE_KEY?


    I signed up on weather.com, but I have not yet figured out how to do to receive these codes. I also tried the link
    http://www.weather.com/services/xmloap.html, but does not work!

  9. #3759
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by johnny28 View Post
    Please, someone tell me how to be able to have XOAP_PARTNER_ID and XOAP_LICENCE_KEY?


    I signed up on weather.com, but I have not yet figured out how to do to receive these codes. I also tried the link
    http://www.weather.com/services/xmloap.html, but does not work!
    You do not require XOAP_PARTNER_ID and XOAP_LICENCE_KEY any more.

    You're ~/.conkyForecast.config should look something like this:

    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 = /media/5/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 =
    Notes:
    1. personal recommendation do not use /tmp - use a user defined directory:
    Code:
    CACHE_FOLDERPATH = /media/5/Conky/cache/
    - your cache file will disappear if left in /tmp - you do not want that.

    2. "locale" is like it is for your system - it concerns a "language" not 'location'
    Code:
    LOCALE = en
    3. this is from your city code at weather.com:
    Code:
    DEFAULT_LOCATION = ARBA0009
    - search for your city; ie: Buenos Aires, Argentina
    - http://www.weather.com/weather/right-now/ARBA0009:1
    - and there it is in the URL.

    Hope that helps.

    Also once you change the cache location run "conkyForecast" a few times in a terminal until you see:
    Code:
     08 Mar 13 | 17:47:47 ~
             $ conkyForecast
    ERROR: Server connection error: HTTP Error 503: Service Unavailable
    24°C
     
     08 Mar 13 | 17:47:54 ~
             $
    a temperature ... that will let you know that the file cache file has been created.
    Don't worry about the error:
    ERROR: Server connection error: HTTP Error 503: Service Unavailable
    - as you see the temp did show

    In my case:
    /media/5/Conky/cache/.conkyForecast-ARBA0009.cache
    See, it works:
    Code:
     08 Mar 13 | 17:47:58 ~
             $ cf8
    
    Fri, 8 Mar 2013  Now 27°  ± 28°    Todays Forecast  H N/A    L 18°
    Partly Cloudy                      Partly Cloudy
    DP 18°  UI 2  1010.8mb  steady     CR 0%   HM 79%  E @ 13kph
    HM 79%  ESE @ 26kph                06:47 19:21 12:34 Waning Crescent
    
    --------------------------------   --------------------------------
    Sat, 9 Mar 2013  H 31°    L 19°    Sun, 10 Mar 2013 H 26°    L 13°
    Fair                               Clear
    CR 0%   HM 63%  NE @ 11kph         CR 0%   HM 52%  SSW @ 23kph
    
    --------------------------------   --------------------------------
    Mon, 11 Mar 2013 H 27°    L 14°    Tue, 12 Mar 2013 H 24°    L 13°
    Mostly Cloudy                      Clear
    CR 0%   HM 54%  NNE @ 10kph        CR 10%  HM 61%  SE @ 14kph
    
    --------------------------------   --------------------------------
    Wed, 13 Mar 2013 H 22°    L 11°    Thu, 14 Mar 2013 H 21°    L 10°
    Partly Cloudy                      Partly Cloudy
    CR 0%   HM 53%  S @ 16kph          CR 20%  HM 54%  S @ 18kph
    
    --------------------------------   --------------------------------
    Fri, 15 Mar 2013 H 20°    L 11°    Sat, 16 Mar 2013 H 24°    L 14°
    Light Rain                         Partly Cloudy
    CR 40%  HM 58%  SE @ 18kph         CR 10%  HM 60%  ENE @ 18kph
    
    --------------------------------   --------------------------------
    
     08 Mar 13 | 17:55:36 ~
             $

  10. #3760
    Join Date
    Jul 2008
    Beans
    24

    Re: Conky Weather Forecast Python Script

    This is a really great project. I used the guidelines for configuring conkyForecastWU to get ConkyWeather+Clock going. However, I do not have any weather icons displayed in my conky, but I have gotten the temps and labels to all display. I see that the images are all downloaded to my cache location, but the do not show up on my desktop. Any ideas?

Page 376 of 380 FirstFirst ... 276326366374375376377378 ... 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
  •