Permalink
Browse files

Adds zipcode to output

  • Loading branch information...
1 parent 3ea1721 commit dada6b3dd3a1cc446df0e10f3c5c66c60cdde125 @bryanwoods committed Sep 18, 2011
Showing with 9 additions and 9 deletions.
  1. +4 −4 README.md
  2. +2 −2 bin/degrees
  3. +2 −2 lib/degrees.coffee
  4. +1 −1 package.json
View
@@ -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
View
@@ -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);
View
@@ -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}"
View
@@ -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"

0 comments on commit dada6b3

Please sign in to comment.