Skip to content

Instantly share code, notes, and snippets.

@colemanfoley
Created November 7, 2012 02:55
Show Gist options
  • Save colemanfoley/4029325 to your computer and use it in GitHub Desktop.
Save colemanfoley/4029325 to your computer and use it in GitHub Desktop.
Weather app
#!/usr/bin/env ruby
require 'open-uri'
require 'json'
raw = open('http://api.wunderground.com/api/59431618fd2e7dae/geolookup/conditions/q/CA/Yuba_City.json').read
processed = JSON.parse(raw)
yuba_city = processed['current_observation']
puts "Yuba City is " + yuba_city['feelslike_string']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment