Sha256: 2688857cf1b34b9270ef5b5d769126800d14a7b1192a7f1481afc5a1e672206d

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

#!/usr/bin/env ruby
require 'wunderground_thor'

result = Wunderground.start(ARGV)

if result.is_a?(Hash) && result.has_key?("location")
   puts <<-EOT
Current conditions for: #{result["location"]}:
#{"=" * 80}
Temperature: #{result["temp"]}
#{result["condition"]}, Feels like #{result["feel"]}
High today: #{result["high"]} Low: #{result["low"]}
EOT
else
  puts result
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scrapers-3.2.0 bin/wunderground
scrapers-3.1.0 bin/wunderground
scrapers-3.0.0 bin/wunderground
scrapers-2.1.0 bin/wunderground
scrapers-2.0.2 bin/wunderground
scrapers-2.0.1 bin/wunderground
scrapers-2.0.0 bin/wunderground