Page 91 of 122 FirstFirst ... 41818990919293101 ... LastLast
Results 901 to 910 of 1219

Thread: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

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

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Quote Originally Posted by Sector11 View Post
    HEY!!!!!!!!!!!! That's my excuse! Unless you mean too young.
    No, definitely not too young!
    I changed it again and amended the screenshot. I'm happy now For the moment! Thanks again.
    Happy New Year everybody!
    MacBook Pro 10,1 retina

  2. #902
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Quote Originally Posted by Quackers View Post
    No, definitely not too young!
    I changed it again and amended the screenshot. I'm happy now For the moment! Thanks again.
    Happy New Year everybody!
    That "For the moment!" talks conky addiction. That good!

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

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    MacBook Pro 10,1 retina

  4. #904
    Join Date
    Aug 2011
    Location
    Goa, India
    Beans
    53
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Thanks a lot... but I am currently using colky-colors

  5. #905
    Join Date
    Aug 2005
    Location
    Mars
    Beans
    245

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Quote Originally Posted by vpharry View Post
    Thanks a lot... but I am currently using colky-colors
    What exactly do you want to change using conky colors? You can make a conky entirely transparent.

    The Mega-Conky Support Thread is located here.

  6. #906
    Join Date
    Apr 2007
    Beans
    195

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    These scripts haven't been added to Conky-Colors. You won't be able to use both.

    You can, however, abandon Conky-Colors and just learn what it generated in it's scripts for you, then edit those scripts accordingly. It's a lot easier than it sounds. Not "Easy for Someone who Knows" easy, Easy period.

  7. #907
    Join Date
    Apr 2007
    Beans
    195

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    VinDSL Conky HowTo Version 2.1 is now active.

    Updates for Version 2.0/2.1:

    -Exclusive use of the TBG Weather Scripts and VinDSL Google Weather API weather methods now in place. Links exclusively to this thread.

    -Updated explanations and examples from VinDSL's scripts, general cleanup.

    -Transparency and Shading.

  8. #908
    Join Date
    Jan 2012
    Beans
    2

    Question Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Hi, i have a problem with the VinDSL Google Weather API.
    When i change my language in the weather.sh file from:
    Code:
    CURLURL="http://www.google.com/ig/api?weather=${LOCID}&hl=en"
    to
    Code:
    CURLURL="http://www.google.com/ig/api?weather=${LOCID}&hl=de"
    the output weatherInfo.xml file gets corrupted like this:
    Code:
    <?xml version="1.0"?><xml_api_reply version="1"><weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><forecast_information><city data="Stade, Lower Saxony"/><postal_code data="Stade"/><latitude_e6 data=""/><longitude_e6 data=""/><forecast_date data="2012-01-13"/><current_date_time data="1970-01-01 00:00:00 +0000"/><unit_system data="SI"/></forecast_information><current_conditions><condition data="Meistens bewölkt"/><temp_f data="43"/><temp_c data="6"/><humidity data="Feuchtigkeit: 76 %"/><icon data="/ig/images/weather/mostly_cloudy.gif"/><wind_condition data="Wind: NW mit Windgeschwindigkeiten von 39 km/h"/></current_conditions><forecast_conditions><day_of_week data="Fr."/><low data="1"/><high data="6"/><icon data="/ig/images/weather/chance_of_rain.gif"/><condition data="Vereinzelt Regen"/></forecast_conditions><forecast_conditions><day_of_week data="Sa."/><low data="-5"/><high data="5"/><icon data="/ig/images/weather/sunny.gif"/><condition data="Klar"/></forecast_conditions><forecast_conditions><day_of_week data="So."/><low data="-4"/><high data="5"/><icon data="/ig/images/weather/fog.gif"/><condition data="Nebel"/></forecast_conditions><forecast_conditions><day_of_week data="Mo."/><low data="-4"/><high data="6"/><icon data="/ig/images/weather/fog.gif"/><condition data="Nebel"/></forecast_conditions></weather></xml_api_reply>
    Just one line of text and no weather output in conky. When i browse directly to http://www.google.com/ig/api?weather=Stade&hl=de the xml file looks exactly like the english one except it is in german of course. Any ideas on how to fix this ?

  9. #909
    Join Date
    Aug 2005
    Location
    Mars
    Beans
    245

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Lucky Rush,

    I think I read where VinDSL himself abandoned Google API as it was too buggy.

    You may want to search his posts for what he has for weather in place now.

  10. #910
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,991
    Distro
    Ubuntu Development Release

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Quote Originally Posted by BoredOutOfMyMind View Post
    Lucky Rush,

    I think I read where VinDSL himself abandoned Google API as it was too buggy.

    You may want to search his posts for what he has for weather in place now.
    I'm still using it, BOOMM. It's working fine... in English

    Quote Originally Posted by Lucky Rush View Post
    Hi, i have a problem with the VinDSL Google Weather API[...] when I change my language in the weather.sh file from [English to German].

    Any ideas on how to fix this ?
    The script was designed for English. Example (the condition includes):

    Code:
    <!-- conditionsInclude.xslt
    
    This XSLT is used to translate an XML response from the www.google.com/ig/ XML API.
    
    This style sheet parses raw WEATHER CONDITION data into something useful, e.g.
    
    	++ Works in conjunction with the weather.xslt & conditions.xslt files
    	++ Determines which current weather conditions icons to use in Conky
    	++ Last Update: 26-NOV-2011
    
    NOTE:   ++ You may need to modify this style sheet, as the Google Weather API format changes.
    -->
    
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
        <xsl:output method="text" disable-output-escaping="yes" encoding="utf-8"/>
        <xsl:template name="get-condition-symbol">
            <xsl:param name="condition"/>
            <xsl:choose>
                <xsl:when test="contains($condition,'Clear')">
                   <xsl:text>a</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Dust')">
                   <xsl:text>7</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Flurries')">
                   <xsl:text>8</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Fog')">
                   <xsl:text>9</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Freezing Drizzle')">
                   <xsl:text>y</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Hail')">
                   <xsl:text>w</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Haze')">
                   <xsl:text>0</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Icy')">
                   <xsl:text>r</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Mist')">
                   <xsl:text>9</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Overcast')">
                   <xsl:text>e</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Sleet')">
                   <xsl:text>y</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Smoke')">
                   <xsl:text>7</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Windy')">
                   <xsl:text>6</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Mostly Sunny')">
                   <xsl:text>b</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Partly Sunny')">
                   <xsl:text>b</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Sunny')">
                   <xsl:text>a</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Mostly Cloudy')">
                   <xsl:text>d</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Partly Cloudy')">
                   <xsl:text>c</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Cloudy')">
                   <xsl:text>c</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Chance of Snow')">
                   <xsl:text>o</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Light Snow')">
                   <xsl:text>w</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Light snow')">
                   <xsl:text>w</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Rain and Snow')">
                   <xsl:text>x</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Snow Showers')">
                   <xsl:text>v</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Snow')">
                   <xsl:text>q</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Light Rain')">
                   <xsl:text>h</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Light rain')">
                   <xsl:text>h</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Chance of Rain')">
                   <xsl:text>g</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Rain')">
                   <xsl:text>v</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Scattered Showers')">
                   <xsl:text>s</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Showers')">
                   <xsl:text>s</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Chance of Storm')">
                   <xsl:text>s</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Chance of TStorm')">
                   <xsl:text>k</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Scattered Thunderstorms')">
                   <xsl:text>k</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Thunderstorm')">
                   <xsl:text>n</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'Storm')">
                   <xsl:text>v</xsl:text>
                </xsl:when>
                <xsl:when test="contains($condition,'')">
                   <xsl:text>-</xsl:text>
                </xsl:when>
                <xsl:otherwise>
                   <xsl:text>Something else</xsl:text>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
    </xsl:stylesheet>
    It's looking for the words "Clear", "Dust", "Flurries", "Fog" and so forth and so on.

    If you want the Weather Dingbats to work in German, you'll have to change all those descriptions to the EXACT same words that the Google Weather API produces, in German.

    The problem with this is, the Google Weather API is totally unsupported and undocumented, so changing the script to another language will be a daunting task.

    It took me a week, just to figure out the English "conditions" that Google is currently using. LoL!

    I think you'd probably have better luck using awk/sed/cut (in Conky) to change the output to German, rather than changing the script itself...
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

Page 91 of 122 FirstFirst ... 41818990919293101 ... 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
  •