Geektool Yahoo Weather Icon (yes, again)

Discussion in 'UI Customization' started by yetiboy, Apr 10, 2014.

  1. yetiboy, Apr 10, 2014
    Last edited: Apr 11, 2014

    yetiboy macrumors member

    Joined:
    Mar 23, 2011
    #1
    I'm sure this will come as a shock, but the script for Yahoo Weather image is once again not working. I just don't know if it's an issue with Yahoo or it's because I just had to restore my computer and there's something wrong with my setup, script, etc. I've tried every possible incarnation of the script but there's nothing being saved no matter where I try to save the file, so I'm assuming it's an issue with Yahoo. Anyone else having the problem and/or have a solution?

    yeti

    edit: The title should be Yahoo Weather IMAGE, not icon - realized it too late and I'm not able to edit it.
     
  2. yetiboy thread starter macrumors member

    Joined:
    Mar 23, 2011
    #2
    Problem solved. Turns out Yahoo has changed from http:// to https:// Hope that helps someone.

    yeti
     
  3. bhtwo macrumors 6502a

    bhtwo

    Joined:
    Dec 31, 2012
    Location:
    Oxford UK
    #3
    I've given up with the icon...

    Can anyone post the scripy for Oxford UK?
     
  4. yetiboy thread starter macrumors member

    Joined:
    Mar 23, 2011
    #4
    This should work. Make sure you put in the path to your weather image.

    Code:
    curl --silent "https://uk.weather.yahoo.com/england/oxfordshire/oxford-31278/" | grep "current-weather" | sed "s/.*background\:url.'//g" | sed "s/'. no.*.//g" | xargs curl --silent -o /Path/to/weather/image/weather.png
    yeti
     
  5. bhtwo macrumors 6502a

    bhtwo

    Joined:
    Dec 31, 2012
    Location:
    Oxford UK
    #5
    Thanks yetiboy... still can't get it to work, probably operator error.

    I'll keep trying.

    Ta.
     
  6. yetiboy thread starter macrumors member

    Joined:
    Mar 23, 2011
    #6
    I'm able to get it to work for me using your location, so there must be something you're missing on your end, you're right.

    Try, just as a test, to see if you can get the image to download to your Desktop - change the file location to /Users/yourusername/Desktop/weather.png and see what happens - it could be a problem with the location you've chosen. You can also try testing it out in Terminal using the exact same code to see what happens.

    And, just to make sure - you're using 2 geeklets for this, right? This script will only download the image to your computer, you also have to set up an image geeklet and point it to the location of the downloaded image.

    yeti
     

Share This Page