Aha! I was just testing to see if you guys actually read the guide. I didn't really forget to put that in. It was completely intentional!...Honest!
Thanks Cody!
Your geeklet looks great! I'm quite jealous about your weather!
heres my first geek tool desktop thingy, i dont know what call it yet hahaha.
today was my first day using it so its not the best
![]()
Anyone know how to just print that?
curl --silent "http://weather.yahoo.com/england/county-durham/stockton-on-tees-36191/" | grep -e "<li><strong>Tomorrow:</strong>" -A 1 | tail -n 1
not sure is what you want, try this:Code:curl --silent "http://weather.yahoo.com/england/county-durham/stockton-on-tees-36191/" | grep -e "<li><strong>Tomorrow:</strong>" -A 1 | tail -n 1
I've been trying all day to do that![]()
not sure is what you want, try this:Code:curl --silent "http://weather.yahoo.com/england/county-durham/stockton-on-tees-36191/" | grep -e "<li><strong>Tomorrow:</strong>" -A 1 | tail -n 1
What about for the day after tomorrow?
what do you want to do precisely? i don't understand...Does anyone have any idea how it might be possible to use just the Hi-Lo temperature for the days weather.
What about for the day after tomorrow?
Just change the "Tomorrow:" in his script to "Day after Tomorrow:" (making sure that's exactly quoted from the Yahoo Weather site, I didn't go double-check), and it'll print those conditions instead. I changed it to show Today instead of Tomorrow.
what do you want to do precisely? i don't understand...
http://xml.weather.yahoo.com/forecastrss?p=SNXX0006&u=c
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<title>Yahoo! Weather - Singapore, SN</title>
<link>http://us.rd.yahoo.com/dailynews/rss/weather/Singapore__SN/*http://weather.yahoo.com/forecast/SNXX0006_c.html</link>
<description>Yahoo! Weather for Singapore, SN</description>
<language>en-us</language>
<lastBuildDate>Thu, 14 Jan 2010 10:00 am SGT</lastBuildDate>
<ttl>60</ttl>
<yweather:location city="Singapore" region="" country="SN"/>
<yweather:units temperature="C" distance="km" pressure="mb" speed="km/h"/>
<yweather:wind chill="28" direction="10" speed="9.66" />
<yweather:atmosphere humidity="84" visibility="9.99" pressure="982.05" rising="0" />
<yweather:astronomy sunrise="7:11 am" sunset="7:14 pm"/>
<image>
<title>Yahoo! Weather</title>
<width>142</width>
<height>18</height>
<link>http://weather.yahoo.com</link>
<url>http://l.yimg.com/a/i/us/nws/th/main_142b.gif</url>
</image>
<item>
<title>Conditions for Singapore, SN at 10:00 am SGT</title>
<geo:lat>1.37</geo:lat>
<geo:long>103.98</geo:long>
<link>http://us.rd.yahoo.com/dailynews/rss/weather/Singapore__SN/*http://weather.yahoo.com/forecast/SNXX0006_c.html</link>
<pubDate>Thu, 14 Jan 2010 10:00 am SGT</pubDate>
<yweather:condition text="Mostly Cloudy" code="28" temp="28" date="Thu, 14 Jan 2010 10:00 am SGT" />
<description><![CDATA[
<img src="http://l.yimg.com/a/i/us/we/52/28.gif"/><br />
<b>Current Conditions:</b><br />
Mostly Cloudy, 28 C<BR />
<BR /><b>Forecast:</b><BR />
Thu - Scattered Thunderstorms. High: 30 Low: 24<br />
Fri - Scattered Thunderstorms. High: 31 Low: 24<br />
<br />
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Singapore__SN/*http://weather.yahoo.com/forecast/SNXX0006_c.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
]]></description>
<yweather:forecast day="Thu" date="14 Jan 2010" low="24" high="30" text="Scattered Thunderstorms" code="38" />
<yweather:forecast day="Fri" date="15 Jan 2010" low="24" high="31" text="Scattered Thunderstorms" code="38" />
<guid isPermaLink="false">SNXX0006_2010_01_14_10_00_SGT</guid>
</item>
</channel>
</rss><!-- api7.weather.re4.yahoo.com uncompressed Wed Jan 13 18:59:35 PST 2010 -->
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=SNXX0006&u=c/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png\
Hey jck1634
Im sorry to sound like a newbie at this but I am so please bear with me.
How do I get the shells to go onto the HTC geektool that you are using? I can not figure out how to make them go on there.
If you could please help me out with this it would be great thanks!
it's not actually "on" the "HTC Geektool"..
basically what you call "HTC Geektool" is just an image..
u place it anywhere u like..
and i create alot of other widget with shell commands.. and u arrange them to that they "look" like they are actually "on" the "HTC Geektool"
get the idea?
So I can do this with it...
![]()
The Forecast script shows the highs and lows for the next day along with weather conditions. I'm just trying to get the high low temperatures for today without the weather conditions.
Any ideas?
Thank you for trying to shed some light on this for me. When I was making the time shell and the date shell I wasn't able to get it onto of the HTC logo.
Or do I need to make all the shells first and then place the HTC logo over it and then it will work.
Sorry if I sound dumb i'm just trying to figure this out and for some reason I can't make it work.
Thank you for all the Help!
I wasn't able to get it onto of the HTC logo.
Hi, I managed to put in the number of the date but not the month. How do i do that?
date +'%A, %b %d'