Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c1af5ebdaf
Fetching contributors…

Cannot retrieve contributors at this time

executable file 9 lines (6 sloc) 0.498 kb
#!/usr/bin/env ruby
# Intended for use with geektool.
require 'rubygems'
require "#{File.expand_path(File.dirname(__FILE__))}/support/helpers"
options_for __FILE__, :zip => { :required => true, :text => 'Weather location zip code.'}
puts `curl -s "{@zip}" | awk '/Today is/ || /Tomorrow is/' | textutil -convert txt -stdin -stdout -format html | sed -e 's/is forecast to/should/' -e 's/\\.//' | tr '[:upper:]' '[:lower:]'`.strip
Jump to Line
Something went wrong with that request. Please try again.