Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 30, 2010, 03:34 PM   #1
Jphilippon
macrumors member
 
Join Date: Jun 2010
Geektools Weather Image Problem

I'm using geektools 3 on Snow Leopard. I have the weather conditions displaying fine, I just can't get the weather image to show.

Here is the URL to my city:

http://weather.yahoo.com/united-stat...erton-2408095/
__________________
13" MacBook Pro 7,1 (2.4GHz, 4GB, 250GB)
Motorola Atrix 4G
iPod Touch 32GB, 3rd Gen
Jphilippon is offline   0 Reply With Quote
Old Nov 30, 2010, 05:51 PM   #2
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
What code have you tried?
angelwatt is offline   0 Reply With Quote
Old Nov 30, 2010, 08:24 PM   #3
Jphilippon
Thread Starter
macrumors member
 
Join Date: Jun 2010
Quote:
Originally Posted by angelwatt View Post
What code have you tried?
I've tried these:
Code:
curl --silent "http://weather.yahoo.com/united-states/california/fullerton-2408095/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png\
^Returns green feedback. (success)
+

Code:
file:/localhost/Users/tmp/
FIRST CODE EDITED.


The problem is the second. Can't figure it out.

I'm sorry if my problem is ridiculously easy or simple or something, I'm new to Geektools.
__________________
13" MacBook Pro 7,1 (2.4GHz, 4GB, 250GB)
Motorola Atrix 4G
iPod Touch 32GB, 3rd Gen

Last edited by angelwatt; Dec 1, 2010 at 10:35 AM. Reason: post merge
Jphilippon is offline   0 Reply With Quote
Old Nov 30, 2010, 10:04 PM   #4
upaymeifixit
macrumors 6502a
 
upaymeifixit's Avatar
 
Join Date: Feb 2009
Location: California
Send a message via AIM to upaymeifixit Send a message via MSN to upaymeifixit Send a message via Yahoo to upaymeifixit Send a message via Skype™ to upaymeifixit
It looks like the problem if you have the location to the weather icon set to "file:/localhost/Users/tmp/" which is a directory, not a file, and there are supposed to be two /'s. Either try "file://localhost/Users/tmp/weather.png" for your file location, or try this:

Shell command:
Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USCA0127&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'
Shell command:
Code:
curl -o /tmp/weather.html http://weather.yahoo.com/united-states/california/fullerton-2408095/; curl -o /tmp/currenttemp.png  `grep "div\ class=\"forecast-icon\"\ style=\"background:url" /tmp/weather.html | awk -F"'" '{ printf $2 }'`
File location:
Code:
file://localhost/tmp/currenttemp.png
__________________
MacBook Air 1,1 Hackint0sh i5 16GB iPhone 4 Xbox Live Steam 17 Years Old Fix Error 1015 Guide Twitter

Last edited by upaymeifixit; Nov 30, 2010 at 10:20 PM.
upaymeifixit is offline   0 Reply With Quote
Old Dec 1, 2010, 12:56 PM   #5
Jphilippon
Thread Starter
macrumors member
 
Join Date: Jun 2010
That worked great! Thank you!
__________________
13" MacBook Pro 7,1 (2.4GHz, 4GB, 250GB)
Motorola Atrix 4G
iPod Touch 32GB, 3rd Gen
Jphilippon is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Tags
geeklet, geektools, weather

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Geektool: Your Geektool scripts monke UI Customization 3932 Nov 8, 2012 06:29 AM
Need step-by-step help in geektool weather image! Emeraldscorpion Mac Basics and Help 13 Nov 7, 2012 10:13 PM
Geektool Current Weather lspence7 OS X 1 Sep 6, 2011 06:21 AM
GeekTool Weather not working celticpride678 Mac Applications and Mac App Store 1 Nov 19, 2009 07:14 PM
Trying to find 5000+ weather images SpookTheHamster Community Discussion 4 Sep 20, 2008 04:32 AM


All times are GMT -5. The time now is 06:50 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC