Geektool GeekTools Weather Script problems

Discussion in 'UI Customization' started by wild4life2013, Mar 13, 2013.

  1. wild4life2013, Mar 13, 2013
    Last edited: Mar 13, 2013

    wild4life2013 macrumors newbie

    Joined:
    Mar 13, 2013
    #1
    Shell weather.com image grab:
    Code:
    curl --silent "http://www.weather.com/weather/right-now/Ilfracombe+UKXX0565:1:UK" | grep -E -o 'http://s.imwx.com/v.20120328.084208/img/wxicon/120/.*png' | head -1 | xargs curl -o /tmp/weather.png
    
    Image:
    Code:
    file://localhost/private/tmp/weather.png
    
    Shell Current Weather Condition Weather.com:

    Code:
    curl --silent "http://www.weather.com/weather/right-now/Ilfracombe+UKXX0565:1:UK" |  grep --max-count=1 '<span class="wx-value" itemprop="weather-phrase">[^<]*</span>' | sed 's/<[^>]*>//g'
    
    The Current condition and the weather image is not displaying. It has been working and for some reason today it has stopped working.

    if any one has and ideas why it has stopped working or has working scripts that get the same information from weather.com

    thanks in advance for any help
     
  2. H00NER macrumors newbie

    Joined:
    Nov 13, 2007
    #2
    Try this, bro. It works to grab the weather conditions and icon from Yahoo Weather instead.

    Weather Conditions:
    Code:
    curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0565&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'
    
    Image Grab:
    Code:
    curl --silent "http://weather.yahoo.com/united-kingdom/england/ilfracombe-24333/" | grep "current-weather" | sed "s/.*background\:url(\'\(.*\)\') .*/\1/" | xargs curl --silent -o /tmp/weather1.png\
    Image:
    Code:
    file:///tmp/weather1.png
     
  3. Ancaster macrumors member

    Joined:
    Sep 10, 2010
    #3
    Bump...

    Just setting up my desktop, which weather geeklet should I be applying this?
     
  4. solomanii macrumors member

    Joined:
    Dec 6, 2012

Share This Page