From dada6b3dd3a1cc446df0e10f3c5c66c60cdde125 Mon Sep 17 00:00:00 2001 From: Bryan Woods Date: Sun, 18 Sep 2011 00:21:34 -0400 Subject: [PATCH] Adds zipcode to output --- README.md | 8 ++++---- bin/degrees | 4 ++-- lib/degrees.coffee | 4 ++-- package.json | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6652b8e..cb6e527 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/bin/degrees b/bin/degrees index 4ab6f6d..d1c7027 100755 --- a/bin/degrees +++ b/bin/degrees @@ -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); diff --git a/lib/degrees.coffee b/lib/degrees.coffee index 59f5b85..c5b4606 100644 --- a/lib/degrees.coffee +++ b/lib/degrees.coffee @@ -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}" diff --git a/package.json b/package.json index 49cf426..85ed5fb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Bryan Woods (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"