Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
can anyone fix this code so it only shows tomorrows forecast
not todays and tomorrows

Code:
 curl --silent "http://xml.weather.yahoo.com/forecastrss?p=92335&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed " | sed "s/\?\(.*\)/\\1/"

thank you.
 
Hi everyone! I finally got geektool working today! There is just one problem. There is a date on the screen that I don't want there. I looked through the whole list in system preferences and found that none of the scripts in the list were the one I am talking about. I do not know how it got there. I would like to get rid of it but I can not find it in the menu. Thanks in advance!

attachment.php
 

Attachments

  • geektool.jpg
    geektool.jpg
    21.5 KB · Views: 2,736
Hi everyone! I finally got geektool working today! There is just one problem. There is a date on the screen that I don't want there. I looked through the whole list in system preferences and found that none of the scripts in the list were the one I am talking about. I do not know how it got there. I would like to get rid of it but I can not find it in the menu. Thanks in advance!

I've had similar problems when a script is deleted or modified but the original output is 'stuck' to the desktop and can't be removed. It's simple to fix, however, just restart the computer and it should be gone (this always works for me). If this doesn't work you could always try un-enabling(?) geektool in the geektool menu (a tick box below the list of scripts) and then turning it back on.

Hope this helps.
 
This thread is great! I have used a lot of things from this thread, but since I'm pretty much clueless about coding, I was wondering if someone could parse this RSS feed so it only includes the Store Title and short blurb.

feed://rss.cnn.com/rss/cnn_topstories.rss

thanks!

Hey Chew - not sure if you're still looking for this, but try:
curl rss.cnn.com/rss/cnn_topstories.rss | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' -e '/http/d' -e 's/&lt.*//g' -e '/EDT/d'

-zzzzzzzzz
 
I've had similar problems when a script is deleted or modified but the original output is 'stuck' to the desktop and can't be removed. It's simple to fix, however, just restart the computer and it should be gone (this always works for me). If this doesn't work you could always try un-enabling(?) geektool in the geektool menu (a tick box below the list of scripts) and then turning it back on.

Hope this helps.

OK, I'll restart right now. I'll come back on and say if it works or not.
 
I'm still not getting the weather and itunes part.

So far I got time, date, and news to work.

Can someone break this down for me? It would be much appreciated. :)
 
Only just started playing around with geektool. So far quite enjoying it.

So, here's my first attempt. Yup, I borrowed all the scripts (no point in re-inventing the wheel I say) and even took the time to make sure there was a working clock in the menu bar of MacBook Pro.
 

Attachments

  • desktop.jpg
    desktop.jpg
    712.7 KB · Views: 380
CPU usage is little, unless you set something to 0

The desktop calendar via geektool:
Code:
 cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /"

Picture%201.png

I dont know if this has been asked or awnsered but ive got my callender on my desktop. But how do i get it in a line so i can place it at the bottom of my desktop. Thanks

:apple: Eastmatt
 
I dont know if this has been asked or awnsered but ive got my callender on my desktop. But how do i get it in a line so i can place it at the bottom of my desktop. Thanks

:apple: Eastmatt

Here, try this:
Code:
echo
echo `cal` | 
sed "s/$(date +%e) / $(date +%e | sed 's/.*/###/g') /" | 
sed s'/Su Mo Tu We Th Fr Sa//g' | 
sed s'/  */  \|  /g' | 
sed s'/^  \|//' | sed s'/  \|//' | sed s'/\|/  /' | 
sed s'/\|//g' | sed s"/$/      $(date +%A)/"

It was the same script as the one shown in the image, but I edited out the full stops (as they always seemed to screw up)
 
My final attempts for tonight :)

Picture1-4.png


Feedback is always welcome.

(btw ive read 4-5 people's theories on how to add iTunes with geektool but none work, if anyone could help?

Eastmatt
 
Hey, I'm still having problems with the iTunes script. Can someone give me exact steps to do it? It won't even show anything when I do the steps I think are right. :(:confused:
 
Hey, I'm still having problems with the iTunes script. Can someone give me exact steps to do it? It won't even show anything when I do the steps I think are right. :(:confused:

Having the EXACT same problem..

Eastmatt
 
Added the horizontal calendar and edited the day from |21| to this [21].
I like the calendar on the bottom as it saves me time from looking at iCal or a wall calendar.
geektoolupdate.png
 
Having the EXACT same problem..

Eastmatt

Hey man, I just downloaded Bowtie (as seen on the first post) and it works and looks great. I got it to work from geektool but I like this better. Here's a screen shot of it. And you can download more themes from the website.Picture 1.png

Gotta love the Foo Fighters! :D
 
I like using the geektool iTunes script for the sole fact that when I hit expose key stroke I can still see my song on the desktop. I had bowtie and when I would hit my expose key stroke it would go away with all the other windows.
 
I like using the geektool iTunes script for the sole fact that when I hit expose key stroke I can still see my song on the desktop. I had bowtie and when I would hit my expose key stroke it would go away with all the other windows.

I would happily use what you have. Can you give me the script please? :D
 
for my weather, its fine if it is a one word thing as in "clear" but when it should say stuff like "partly cloudy" it says "partlycloudy" does anybody know why there isnt a space?

Also, is there a way that I can just make the weather messages images?
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.