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
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

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

Similar Threads
thread Thread Starter Forum Replies Last Post
Geektool: GeekTools Weather Script problems wild4life2013 UI Customization 3 Oct 3, 2013 10:05 AM
iPhone: Reroute Weather Widget and Weather app to new Yahoo Weather eyoungren Jailbreaks and iOS Hacks 7 May 2, 2013 12:40 AM
Problem with displayed weather SteveJobs2.0 iOS 6 1 Feb 8, 2013 02:51 AM
Problem with user touches the marker on image in image targets srilatha iPhone 0 Oct 2, 2012 01:33 AM
Geektools problem. lewis92 Mac OS X 10.7 Lion 1 Jun 13, 2012 04:58 PM

Forum Jump

All times are GMT -5. The time now is 11:19 PM.

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

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