Skip to content

Commit

Permalink
Adds zipcode to output
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwoods committed Sep 18, 2011
1 parent 3ea1721 commit dada6b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -13,12 +13,12 @@ Install Degrees via NPM
Display the predicted high and low temperature for today in Brooklyn

$ degrees
=> Today's high: 70
=> Today's low: 54
=> Today's high in 11231: 70
=> Today's low in 11231: 54

Display the predicted high and low temperature for today in another
zipcode

$ degrees 90210
=> Today's high: 73
=> Today's low: 58
=> Today's high in 90210: 73
=> Today's low in 90210: 58
4 changes: 2 additions & 2 deletions bin/degrees
Expand Up @@ -11,7 +11,7 @@
$ = window.jQuery;
high = $('.fctHiLow .b').html();
low = $('.fctHiLow').first().html().split('|')[1].split('°')[0].trim();
console.log("Today's high: " + high);
return console.log("Today's low: " + low);
console.log("Today's high in " + zip + ": " + high);
return console.log("Today's low in " + zip + ": " + low);
});
}).call(this);
4 changes: 2 additions & 2 deletions lib/degrees.coffee
Expand Up @@ -11,5 +11,5 @@ jsdom.env BASE_URL + zip,
high = $('.fctHiLow .b').html()
low = $('.fctHiLow').first().html().split('|')[1].split('°')[0].trim()

console.log "Today's high: #{high}"
console.log "Today's low: #{low}"
console.log "Today's high in #{zip}: #{high}"
console.log "Today's low in #{zip}: #{low}"
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Bryan Woods <bryan@howaboutwe.com> (http://bryanwoods4e.com)",
"name": "degrees",
"description": "What are the degrees today?",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "http://github.com/bryanwoods/degrees",
"repository": {
"url": "git://github.com/bryanwoods/degrees.git"
Expand Down

0 comments on commit dada6b3

Please sign in to comment.