Hello I'd love to recreate this

Discussion in 'MacBook Pro' started by johnalan, Jul 29, 2010.

  1. johnalan macrumors regular

    Joined:
    Jul 15, 2009
    Location:
    Dublin, Ireland
    #1
  2. Xombie11 macrumors regular

    Joined:
    Nov 2, 2009
    #2
    That's disgusting--just saying.

    Sorry I cant help though. Looks a bit like RAINMETER for Windows.
     
  3. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
  4. millertime021 macrumors 6502a

    millertime021

    Joined:
    Jan 28, 2010
    Location:
    AZ
    #4
  5. millertime021 macrumors 6502a

    millertime021

    Joined:
    Jan 28, 2010
    Location:
    AZ
    #5
    THIS IS FOR MINE! NOT THE ONE IN YOUR PICTURE
    Temp display:
    Code:
    curl --silent "http://weather.yahooapis.com/forecastrss?p=USAZ0136&u=f" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/[A-Z a-z]*, //' -e 's/\(.*\) F/\1 °F/' -e 's/\(.*\) C/\1 °C/' | sed 's/ //' | tail -n1
    Change the http://weather.yahooapis.com/forecastrss?p=USAZ0136&u=f to whatever city you live in. Go to yahoo and search it.
    Weather icon:
    Code:
    file://localhost/var/tmp/weather_image.png
    and
    Code:
    curl --silent "http://weather.yahoo.com/united-states/arizona/tempe-12794535/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /var/tmp/weather_image.png\
    Once again, change the URL
    Then for the description:
    Code:
    curl --silent "http://weather.yahooapis.com/forecastrss?p=USAZ0136&u=f" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' -e 's/, [0-9]* [A-Z]//' | tail -n1
    Some need to be in shell and then other's need to be in images. Just play around and google.

    Hope I helped a little.
     
  6. johnalan thread starter macrumors regular

    Joined:
    Jul 15, 2009
    Location:
    Dublin, Ireland
    #6
    wow

    wow guys thanks for all the help, thats a GREAT help.


    millertime where did u get that wallpaper of the girl with the sticker on her mouth it's really cool?


    Cheers,
    John
     
  7. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #7
  8. millertime021 macrumors 6502a

    millertime021

    Joined:
    Jan 28, 2010
    Location:
    AZ
    #8
  9. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #9
    Thanks, but I don't want the pic. I just showed you the link so you can search for pics in the future.
     
  10. magamo macrumors 6502

    Joined:
    Apr 6, 2009
    #10
  11. millertime021 macrumors 6502a

    millertime021

    Joined:
    Jan 28, 2010
    Location:
    AZ
    #11
    Oh my bad, I didn't mean that last part to be for you. I meant it for the other guy.

    But Tineye is great.
     

Share This Page