Geektool How to get Yahoo Weather Descriptions back in Geektool?

Discussion in 'UI Customization' started by todd2000, Feb 2, 2013.

  1. macrumors 68000

    Joined:
    Nov 14, 2005
    Location:
    Danville, VA
    #1
    So I have had GeekTool turned off for a while, but I missed it, so I turned it back on today. I noticed that some of my Weather scripts weren't working right, because Yahoo had changed their site around. Specifically the image and the detailed descriptions weren't working. I managed to find a thread that fixed the image, but can not figure out how to get the detailed descriptions.

    I am trying to get descriptions that pop up when you mouse over the days on this page http://weather.yahoo.com/united-states/virginia/danville-12767875/

    ie Today: blah, blah, blah etc.. Tonight: blah blah, etc..

    They used to be in plain text right on the page, but now with the pop-up is it even possible?

    Here is the script I was using:

    curl --silent "http://weather.yahoo.com/united-states/virginia/danville-12767875" | grep -e "<li><strong>Tonight:</strong>" -A 1 | tail -n 1

    Thanks!
     
  2. thread starter macrumors 68000

    Joined:
    Nov 14, 2005
    Location:
    Danville, VA
  3. JRT-King, Feb 11, 2013
    Last edited: Feb 11, 2013

    macrumors newbie

    Joined:
    Jan 12, 2013
    #3
    Try this out for the current day and next day forecast for your area with hi/low temps. Haven't had any luck getting the pop-ups to appears as they do on yahoo

    curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0206&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/\?\(.*\)/\\1/"
     
  4. macrumors newbie

    Joined:
    Mar 13, 2013
    #4
    same thing happen to me

    Look at my post cant work out why they are not working this also might help you to find out why yours are not working if i find out any thing i will let you know.
    Thanks in advance link to my post http://forums.macrumors.com/showthread.php?t=1556183
     

Share This Page