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.
It's a combination of the following:
1. Mirage.app to make the dock clear
2. TinkerTool to move the dock to the left side of the screen
3. Nerdtool to create an opaque bar
4. The dock spacers are a trick I found, but cannot remember where on the internet that was. These are the dock spacers that are not a 3rd party solution, they're provided by Dock.app itself.
5. The CPU and Fan info are scripts that are running in Nerdtool, but my setup requires the use of a special file that I don't think works on newer Macs.

I'm still running Snow Leopard on a 32bit Core Duo machine, so I have no idea if the apps I've mentioned are available for Lion.

Thanks very very much for the info!

Anyone know how I can do what Mirage.app do on Lion? Because it don't work for me on Lion.. :(
 
This is probably a bit stupid, but how can I just write a shell command that constantly displays the word.

Ive got a twitter feed working but just want to display the word

above it.
 
Try using Bowtie rather than a geek tool script - works straight away with no code required, and you can download tons of themes for it.

Ive literally just sorted it..... thanks though

Been doing this for hours today, finally got it as I want it i think.

Only thing annoying me a little is the twitter feed blending into the background teeth. Id like to find a better quality wallpaper in a similar vein to the one I have currently, just to make it look a lil nicer and more pro

Mainly pinched the code off here and google


screengrab by simbojono, on Flickr
 
i recently upgrade to a new mbp and i am trying to get my geeklets over to the new machine. I am going from snow leopard (10.6.8) using geek tools from app store. Going to lion (10.7.4).
I tried to copy /library/preferences/org.tynsoe.geeklet* (5 total files) to the new machine. No luck.
Also tried to export an individual script (i.e. Date) and then with geektools open i tried to open the file. It says it can't read yet.

Any thoughts? Rather not start over.

Thanks much!!

Jay

+1
 
I remember there being a script that tracked the number of mouse clicks, does anyone have that one?
 
Does anyone have a good IP Locator URL that consistently gives good location information (Specifically, US Zip Code)? I spend most of my time on my MAc between two locations. I have one IP locator (http://ipillion.com) that works really well when I'm home (which has Verizon FIOS internet), but doesn't work well in the other location (which has Comcast as the ISP). I have another site (can't remember the URL right now) that works better at the other location, but not at home, but would prefer a single source that works (at least) in both since the location drives my weather and weather icon geeklets.

TIA!
 
Does anyone have a good IP Locator URL that consistently gives good location information (Specifically, US Zip Code)? I spend most of my time on my MAc between two locations. I have one IP locator (http://ipillion.com) that works really well when I'm home (which has Verizon FIOS internet), but doesn't work well in the other location (which has Comcast as the ISP). I have another site (can't remember the URL right now) that works better at the other location, but not at home, but would prefer a single source that works (at least) in both since the location drives my weather and weather icon geeklets.

TIA!

My weather scripts use http://ipinfodb.com/my_ip_location.php for location grabbing.
 
Just wanted to let everyone know that I've updated Post 3681 with updates about the Ultimate Weather Script.

Summary:
1 - AccuWeather support is as follows:
- Will work for automatic location or provided URL
- Will only use English units of measure
- Currently no image grabbing
2 - BBC Weather support has been started
3 - Fixed issue 3 submitted to my google code site

BBC coding is done, as much as I can get for the time being. I'll put out a new beta next weekend; have a busy week and won't have time to get to it.
 
Last edited:
Having trouble getting RSS Feeds...

I can't get an RSS Feed (ANY RSS feed) to show up on my desktop... I have tried a few different shell scripts from different sources. I'm pretty sure I'm getting the commands right because the status indicator is green. Also, I have been sure to make the .sh files executable.

No output, whatsoever. Any ideas?

If it at all helps, I'm actually trying to get the Billboard Hot 100 chart onto my desktop and felt using an RSS feed was the best/easiest way to manage it. If there are any alternative ways feel free to suggest.

Here is an example of a shell script I have been trying:


#!/bin/sh

URL="http://ca.rss.news.yahoo.com/rss/topstories"

if [ $# -eq 1 ] ; then
headarg=$(( $1 * 2 ))
else
headarg="-8"
fi

curl --silent "$URL" | grep -E '(title>|description>)' | \
sed -n '4,$p' | \
sed -e 's/<title>//' -e 's/<\/title>//' -e 's/<description>/ /' \
-e 's/<\/description>//' | \
sed -e 's/<!\[CDATA\[//g' |
sed -e 's/\]\]>//g' |
sed -e 's/<[^>]*>//g' |
head $headarg | sed G | fmt
 
Typhoon,

Here it is, THE multiple warnings script!! =P
I was only able to test with 3 hazards and it worked so normally it will do fine with 6 or more.
i've set your location weather link, and yeah not very interesting only sun sun sun sun and moon

Can you post a screenshot from your geektool setup?

Code:
tell application "Finder"
	set AppleScript's text item delimiters to ""
	set warn to do shell script "curl \"http://forecast.weather.gov/MapClick.php?CityName=Washburn&state=WI&site=DLH&textField1=46.6739&textField2=-90.8933&e=0\""
	
	-- count every warning!!
	set AppleScript's text item delimiters to "<"
	set warn_string to every text item of (warn as string)
	
	set amo_warn to 1
	repeat with i in items of warn_string
		if (i as string) contains "span class=\"warn\">" then
			set amo_warn to amo_warn + 1
		end if
	end repeat
	
	-- getting the warnings
	set warnings to ""
	set warn_number to 1
	
	repeat until warn_number = (amo_warn)
		set warn_number to warn_number + 1
		try
			set AppleScript's text item delimiters to "<span class=\"warn\">"
			set temp_warnings to text item warn_number of (warn as string)
			set AppleScript's text item delimiters to "</span>"
			set temp_warnings to text item 1 of temp_warnings
			set AppleScript's text item delimiters to ""
			set warnings to warnings & temp_warnings & return
		end try
	end repeat
	
	if warnings = "" then
		set warnings to "No upcoming weather hazards"
	end if
	
	return warnings
	
end tell

Does anyone have an update to this script? Used to love the thing but it broken when NOAA redesigned their site.

Weather warnings are now formatted, for example, as follows:
<div class="hazardous-conditions">
<h1>Hazardous Weather Conditions</h1>
<ul><li><a href="showsigwx.php?warnzone=OKZ070&warncounty=OKC101&firewxzone=OKZ070&local_place1=&product1=Excessive+Heat+Warning">Excessive Heat Warning</a></li>
<li><a href="showsigwx.php?warnzone=OKZ070&warncounty=OKC101&firewxzone=OKZ070&local_place1=&product1=Hazardous+Weather+Outlook">Hazardous Weather Outlook</a></li>
</ul>
</div>
Seems like either "showsigwx" or "warnzone" are the giveaways that what follows is a warning, but my coding isn't sufficiently up to par to extract the desired text. Any help would be tremendously appreciated.
 
I can't get an RSS Feed (ANY RSS feed) to show up on my desktop... I have tried a few different shell scripts from different sources. I'm pretty sure I'm getting the commands right because the status indicator is green. Also, I have been sure to make the .sh files executable.

No output, whatsoever. Any ideas?

If it at all helps, I'm actually trying to get the Billboard Hot 100 chart onto my desktop and felt using an RSS feed was the best/easiest way to manage it. If there are any alternative ways feel free to suggest.

Here is an example of a shell script I have been trying:


#!/bin/sh

URL="http://ca.rss.news.yahoo.com/rss/topstories"

if [ $# -eq 1 ] ; then
headarg=$(( $1 * 2 ))
else
headarg="-8"
fi

curl --silent "$URL" | grep -E '(title>|description>)' | \
sed -n '4,$p' | \
sed -e 's/<title>//' -e 's/<\/title>//' -e 's/<description>/ /' \
-e 's/<\/description>//' | \
sed -e 's/<!\[CDATA\[//g' |
sed -e 's/\]\]>//g' |
sed -e 's/<[^>]*>//g' |
head $headarg | sed G | fmt

Try my RSS parsing script on my google code site, link is in my signature.

----------

Does anyone have an update to this script? Used to love the thing but it broken when NOAA redesigned their site.

Weather warnings are now formatted, for example, as follows:
<div class="hazardous-conditions">
<h1>Hazardous Weather Conditions</h1>
<ul><li><a href="showsigwx.php?warnzone=OKZ070&warncounty=OKC101&firewxzone=OKZ070&local_place1=&product1=Excessive+Heat+Warning">Excessive Heat Warning</a></li>
<li><a href="showsigwx.php?warnzone=OKZ070&warncounty=OKC101&firewxzone=OKZ070&local_place1=&product1=Hazardous+Weather+Outlook">Hazardous Weather Outlook</a></li>
</ul>
</div>
Seems like either "showsigwx" or "warnzone" are the giveaways that what follows is a warning, but my coding isn't sufficiently up to par to extract the desired text. Any help would be tremendously appreciated.

Looks like NOAA uses the US National Weather service for their weather info. I've just fixed my Ultimate Weather Parser to fix parsing that site. When I get back to the code, I can add this feature in, won't be too hard to find the data in the HTML.

Will make a script option to display that information.
 
Hi guys, I'm new to the forums but for years I've been reading many forums here for help. Don't know why it took me so long to register but I'm here now.

I am also BRAND NEW to coding on GeekTools. My knowledge of coding is limited to Cutting and Pasting. For a little while I've been looking for a weather code that displays current conditions, numerical weather and a degrees symbol. Everyone uses the Yahoo script for their weather GeekTools needs. I like it, nice icons however, no degrees symbol.

I came close by searching on Google and what I found only displays °F °C, no numbers or current conditions. I modified the code with what very little knowledge I have and got it to only display °F....still no number. Here is the code with my zip code already on. I would greatly appreciate some help in modifying the code to also display current conditions, numerical weather AND degrees symbol. Weather Image isn't needed. Here is the code I modified which shows only °F:


temp_f=$(curl -s "http://xml.weather.yahoo.com/forecastrss?p=$10009&u=f" | egrep -o 'temp="[^"]*"' | sed -e 's/temp="//g' -e 's/"//g')º echo "$temp_f °F"


Again, any help would be appreciated. Thanks in advance.
 
I'm brand new, but I've been lurking for a while. I'm also new to GeekTool, but here's my set up...


For a little while I've been looking for a weather code that displays current conditions, numerical weather and a degrees symbol. Everyone uses the Yahoo script for their weather GeekTools needs. I like it, nice icons however, no degrees symbol.

You mean like "conditions, ##° F"? I use a script I cobbled together from multiple scripts, it works but I'm not sure it's the best way to do this:
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0557&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/\(.*\) F/\1° F/' -e 's/<\/>//'
 

Attachments

  • 20120803-t3e32f31nq5txc8bi3kytbkncs.jpg
    20120803-t3e32f31nq5txc8bi3kytbkncs.jpg
    243.5 KB · Views: 371
Last edited:
You mean like "conditions, ##° F"? I use a script I cobbled together from multiple scripts, it works but I'm not sure it's the best way to do this:
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0557&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/\(.*\) F/\1° F/' -e 's/<\/>//'



This worked beautifully. I just had to plug in my own zip code. Thanks Sephira. My next venture in this will be to rotate the text and create reflections. Now THAT'S challenging. Here is my Desktop, I'm a minimalist:

screenshot20120803at958.png
 
Wonderful, thanks so much! :D

Have implemented the weather warning stuff for the US NWS, working on getting the other sites done.

I came close by searching on Google and what I found only displays °F °C, no numbers or current conditions

I've updated my Ultimate Weather Parser script to output the degree symbol. When I finish implementing the weather warning stuff for WeatherWarning, I'll throw out a new beta for everyone to try.
 
Ultimate Weather Script Beta-04

I've decided to provide an updated beta of the Ultimate Weather Script for everyone, you can download the .tar file here: http://xtacocorex-geektool-scripts.googlecode.com/files/ultimateweather_beta04.tar

Please read the README provided for program options and sample commands.

This beta includes support for AccuWeather and BBC, but there are caveats to using those:
1 - No weather images for either service:
- BBC uses an image map with all images in one .png file
- AccuWeather displays the images with CSS and I haven't figured out how to get the image url from the <div> tag that it is hidden in when I parse the HTML with the YQL parser from Yahoo

2 - BBC requires the url to be provided, so there is no automatic location grabbing for this service. BBC uses GEOID which does not easily map to Yahoo's WOEID

3 - You can display the Degree symbol with the -D command line flag, if you use this, set the Geeklet to Unicode otherwise it won't work. I'm having trouble getting this to work in Nerdtool, but this feature does work in Terminal.app, so it should work in Geektool. If it doesn't work for you, I would say give it some time.
 
[GeekTool] - Change background based on weather conditions

First off, is this even possible?
I would be satisfied with simply placing an image overtop of my current desktop background.

I have little experience with the terminal and whatnot so I don't really know where to start!

Any help would be awesome.

Bleu

**EDIT**
I have found the solution.

http://macthemes.net/forum/viewtopic.php?p=802288

With a little fidgeting in the code I was able to create what I wanted.
Some custom backgrounds and I'm on my way.
 
Last edited:
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.