Illuminated Foggy Pier

Posted in Weather by Davernaut 3009 days ago

Click on my screenshot to enlarge the picture so font isn't pixelated. 

I wanted something very clean and eye-catching which is why I chose the font colors, think it flows well with the background. It's a pretty simple geeklet, but encompasses the basics from date and time to a weather icon that shows current temp and the hi and lo for the next two days. The wallpaper is attached for download and see my reply to the user below for all the codes and steps. If you have any problems let me know!

Geeklet files to download


User Avatar
the5issilent 3008 days ago
I would like the code.  This looks pretty useful to my design!
User Avatar
Davernaut 3007 days ago
Background image is attached now. Font you'll have to download, it's called "Champagne and Limousines". The bottom date and time section all have 15% Opacity and the color is white.

Here are the scripts!

Month: `date "+%B" | tr '[a-z]' '[A-Z]'`

Day of Month: `date +%d`

Year: `cal` (NOTE: I just used the script cal but overrode the text with 2011 since it doesn't change that often. Make sure you check the "Override Text" box and type 2011)

Day of Week: `date "+%A" | tr '[a-z]' '[A-Z]'`

Time: `date '+%I:%M %p'`

Commas: `cal` (NOTE: Same thing as the 2011 earlier, just use 'cal' as the script and override the text with a comma.)

Disk Usage Details: 

df -h | grep disk0s2 | awk '{print "Macintosh HD:", $2, "total,", $3, "used,", $4, "remaining"}'

Uptime Details: `uptime`

Uptime and Disk Usage Titles: `cal` (NOTE: Again, do the same thing as commas and 2011)

Weather icon: `file:///tmp/wpicture.png`

Current Weather Status (next to the weather icon on the right):

curl --silent "http://weather.yahooapis.com/forecastrss?p=USNC0533&u=f" | grep -E '(Current Conditions:|F
User Avatar
imhotep 3005 days ago
Beautiful can you to put the code so that it automatically starts directly with GeekTool especially for the weather?
User Avatar
ifuxusux 2998 days ago
I think in lieu of using `cal`s and numerous date scripts, one script such as

`date +"%B %d,%Y,%A" | tr '[a-z]' '[A-Z]'`

would be more parsimonious in terms of number of geeklets and resource usage since it'll be triggering 1 script instead of 6, and it'll help align the geek lets. Also for the titles, use


with very high refresh rates such as 9999 instead of `cal`s, again for the same reason.
User Avatar
Curly 2996 days ago
User Avatar
slapdick 2993 days ago
Just thought the moon was more fitting for this shot... I dunno
User Avatar
slapdick 2993 days ago
![Moon Action](https://lh6.googleusercontent.com/-5qtO4OvvLXM/Tl9MTiv_82I/AAAAAAAAAAc/WCeZF-jq6hk/s800/Screen%2BShot%2B2011-08-31%2Bat%2B11.32.48%2BPM.png)
User Avatar
GYLLIWER 2756 days ago
Да, я гдето такое уже видел. Спасибо.

Log in to comment or register here.