Created
November 7, 2012 02:55
-
-
Save colemanfoley/4029325 to your computer and use it in GitHub Desktop.
Weather app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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