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

I'm trying to have my artwork from iTunes displayed on my desktop. I tried following this guide, but without any luck.

Have anyone got it working?

This post made it work almost perfectly. But when closing iTunes the artwork is still shown. Is there a way to have at hidden when no music is playing?
 
Thanks for the weather script. I made this desktop recording without the current conditions, now they are back on-screen like they should be!
http://www.youtube.com/watch?v=k1kSzpLojow
Here's a still shot:
4289650212_46429a6137.jpg

awesome!
 
Youre the man!! Thank you! :D

conditiontempdegree.png


Minor detail, any chance of getting a space between the words when the condition description is more than one word, and if possible, no space between the temperature and the degree celsius...

This is what i mean: "Mostly(space)Cloudy,(space)-14°C"

Btw. current Oslo weather :S Its getting cold.

Thank you again! Youre the best!

sorry i rushed here you go

Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USNJ0028&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/\(.*\) F/\1°F/' | sed 's/^[[:space:]]*\(.*\)[[:space:]]*$/\1/'| tail -n1
 
sorry i rushed here you go

Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USNJ0028&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/\(.*\) F/\1°F/' | sed 's/^[[:space:]]*\(.*\)[[:space:]]*$/\1/'| tail -n1

No worries. Thank you!

Nearly there though, as I need celsius but i think i figured it out.
It works, but could you please check if its correct?

Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=NOXX0029&u=c" | 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/\(.*\) C/\1°C/' | sed 's/^[[:space:]]*\(.*\)[[:space:]]*$/\1/'| tail -n1

Thx again! :D
 
Proc, CPU, Mem, Network, Disks - basic and simple

Here's my take on basic system info... I wanted to keep it light and simple

I take the first 10 lines of the command top then strip unwanted lines using grep -Ev the variable $CurYear removes the date time line by removing the line that contains the current year. next in the memory section I only wanted the free / used so apply a little grep and the wired active and inactive are stripped out. last clean up leading and trailing spaces and replace all those extra commas with tabs for nicer readability.

Code:
CurYear=$(date +"%Y")
top -l 2  | sed 10q | grep -Ev "$CurYear|Load Avg|SharedLibs|MemRegions|VM" | sed 's/[0-9].*wired,.*[0-9].*active,.*[0-9].*inactive,//'| sed 's/^[[:space:]]*\(.*\)[[:space:]]*$/\1/' | sed 's/,/	/g'

looks good set to a fixed width font
 
No worries. Thank you!

Nearly there though, as I need celsius but i think i figured it out.
It works, but could you please check if its correct?

Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=NOXX0029&u=c" | 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/\(.*\) C/\1°C/' | sed 's/^[[:space:]]*\(.*\)[[:space:]]*$/\1/'| tail -n1

Thx again! :D

Sorry I could have sworn i added that yes what you changed is correct
 
Hi.

I'm trying to have my artwork from iTunes displayed on my desktop. I tried following this guide, but without any luck.

Have anyone got it working?

This post made it work almost perfectly. But when closing iTunes the artwork is still shown. Is there a way to have at hidden when no music is playing?

Hey yes I did have it working but very honestly after a while it didn't make sense to me once they had so many apps that did this. They are far more flexible and some offer control of itunes. I found that the geek tool / applescript way had too many flaws over the prebuilt apps.

here are my top reasons

1.song info and artwork are separate actions in geek tool and very often are out of sync so you see artwork that differs from the track info

2. track info or art work not set immediately upon track change again out of sync with the track being played

3. slightly awkward to set up the geek tool way as you need to set up a place for it to copy the artwork and an invisible or default image when artwork isn't available

4. no control over anything not that it's critical to just seeing the info

you would need to set geektool to refresh almost every second to have something nearly as good as a prebuilt solution.

I would look at bowtie or totalcontroltunes

if you still want to use geektool after reading this i'll try to explain how to do it.

ps to answer your question about hiding the artwork when not playing you have to manually stop itunes and wait for the artwork to clear before quitting itunes or else the last image will just hang around again why I moved away from this method
 
Hey yes I did have it working but very honestly after a while it didn't make sense to me once they had so many apps that did this. They are far more flexible and some offer control of itunes. I found that the geek tool / applescript way had too many flaws over the prebuilt apps.

here are my top reasons

1.song info and artwork are separate actions in geek tool and very often are out of sync so you see artwork that differs from the track info

2. track info or art work not set immediately upon track change again out of sync with the track being played

3. slightly awkward to set up the geek tool way as you need to set up a place for it to copy the artwork and an invisible or default image when artwork isn't available

4. no control over anything not that it's critical to just seeing the info

you would need to set geektool to refresh almost every second to have something nearly as good as a prebuilt solution.

I would look at bowtie or totalcontroltunes

if you still want to use geektool after reading this i'll try to explain how to do it.

ps to answer your question about hiding the artwork when not playing you have to manually stop itunes and wait for the artwork to clear before quitting itunes or else the last image will just hang around again why I moved away from this method

You are right and I have thought about that. I just don't need any fancy iTunes control - I mean, my MB Pro has controls on it's keyboard and I also have Quicksilver for controlling iTunes. All I want is to have artist, song and album artwork shown on the desktop but I do not like the way I have to close iTunes as you describe.

I'm just thinking it's much to have an app installed for just showing those three things when the most apps are big, fancy apps which gives controls and more. Therefore I chose to use Geektools but I will look for a lightweight alternative. What you described is certainly not the way I like it :p
 
this thread needs to go back to where it came from

after i plug my mbp into my tv and undo, i lose my geektool scripts?

can anyone tell me why this happens...

this is my new setup, and i dont wanna lose it

Picture1-4.png
 
Code:
curl --silent http://search.twitter.com/search.atom?q=+US101+OR+I405+from%3Atrafficla | awk '/<title>/' | sed '1d' | sed | sed 's/<content type="html">//'| sed 's/<\/content>//' | sed 's@<\([^<>][^<>]*\)>\([^<>]*\)</\1>@\2@g' | sed 's/&lt\;.*a&gt\;//g' | sed 's/&//g' | sed 's/apos;//g' | sed "10"q | sed 's|... Read more at||' | sed 's|http://.*||' | sed 's/SigAlert -//' | tr ':' '\n'   | sed 's/(Southern Division)//' | sed 's/(West Valley)//' | sed 's/(Central Los Angeles)//' | sed 's/(West Los Angeles)//'


I like this but I would like to shorten to fit in 200 pixels to look nice. I would also like to have wherever it says east west north or south bound to instead say SB EB WB NB, Get rid of the [UPDATE] ( I tried |sed but something odd happens), have just or to become a line break( using |tr changed everything where those characters came up.
 

Attachments

  • traffic.png
    traffic.png
    99.4 KB · Views: 2,573
You are right and I have thought about that. I just don't need any fancy iTunes control - I mean, my MB Pro has controls on it's keyboard and I also have Quicksilver for controlling iTunes. All I want is to have artist, song and album artwork shown on the desktop but I do not like the way I have to close iTunes as you describe.

I'm just thinking it's much to have an app installed for just showing those three things when the most apps are big, fancy apps which gives controls and more. Therefore I chose to use Geektools but I will look for a lightweight alternative. What you described is certainly not the way I like it :p

bowtie http://bowtieapp.com/ free, light weight, simple, skinable, nice options it's what I decided on myself.
 
this thread needs to go back to where it came from

after i plug my mbp into my tv and undo, i lose my geektool scripts?

can anyone tell me why this happens...

this is my new setup, and i dont wanna lose it

Picture1-4.png

back to where it came from?

when you say lose what exactly do you mean? do you lose the actual script items in geektool or just the display of them on the screen? I've seen people mention they stop displaying and have to restart geektool.

I don't use geektool I prefer nerdtool so I can't say why geektool does that... my setup is attached to a tv as a media center I've never lost any scripts yet. I can tell you though you can export with nerdtool and if something goes wrong just re-import them. not sure if you can export from geektool but I think you can then import into nerdtool maybe you'll have better luck?
 
back to where it came from?

when you say lose what exactly do you mean? do you lose the actual script items in geektool or just the display of them on the screen? I've seen people mention they stop displaying and have to restart geektool.

I don't use geektool I prefer nerdtool so I can't say why geektool does that... my setup is attached to a tv as a media center I've never lost any scripts yet. I can tell you though you can export with nerdtool and if something goes wrong just re-import them. not sure if you can export from geektool but I think you can then import into nerdtool maybe you'll have better luck?

thanks for your suggestion...i am gonna look into this

when i said, where it came from, I meant the original place it was...the picture gallery thread. i couldn't find this thread :D
 
lynx

i'm having trouble running any lynx command, as long as it's a valid command it comes up as executed successfully but displays nothing, any idea?
thanks
 
Weather Script Problem

I'm using this code to display just the current conditions:

curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0952&u=c" | 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

but it just refreshed, and suddenly it's started adding the temperature on the end.

Anyone know why? I can't figure it out!
 
I'm using this code to display just the current conditions:

Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0952&u=c" | 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

but it just refreshed, and suddenly it's started adding the temperature on the end.

Anyone know why? I can't figure it out!

What are the conditions?
If they are unusual, it can make the script quirky
Like if it adds a "/" or something like that

Woof, Woof - Dawg
pawprint.gif
 
What are the conditions?
If they are unusual, it can make the script quirky
Like if it adds a "/" or something like that

Woof, Woof - Dawg
pawprint.gif

I've found that it only adds on the temperature if it's -*. It's hovering around 0 now, and when it changes to 0 it doesn't add the temperature on, if it drops to -1, it adds the temperature!
 
I've found that it only adds on the temperature if it's -*. It's hovering around 0 now, and when it changes to 0 it doesn't add the temperature on, if it drops to -1, it adds the temperature!

Then there is your answer
The script was written to handle temps below zero because of the addition of the "-"
One of the resident gurus can probably correct that issue for you

Woof, Woof - Dawg
pawprint.gif
 
Anyone know why? I can't figure it out!

One of the resident gurus can probably correct that issue for you

here I am... ;)
this should be your code:
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0952&u=c" | 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
 
here I am... ;)
this should be your code:
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0952&u=c" | 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

Thats given me the opposite problem :D If it's -* it doesn't show the temp, if it's +, it shows the temp!

Thanks though! :D
 
ops, i'm sorry "-" should stay into squares...
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0952&u=c" | 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
 
ops, i'm sorry "-" should stay into squares...
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0952&u=c" | 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


That works perfect! :D

Thank you!
 
My February geektool script:::I decided to keep the black icons except for finder so it can give contrast to the lite backround. If you guys want to know how to put "jan" instead of "january" put the month code in lower case. By the way, I like the minimal look.


Feb3.png
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.