Skip to content

Commit 7ae688a

Browse files
committed
Updated for new version of weather API
1 parent d8825bd commit 7ae688a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Created by alicia.sykes on 24/08/2015.
33
*/
4-
var colors = require('colors');
4+
require('colors');
55

66
var fetchWeather = require('./fetch-weather');
77
var prepareForWeather = require('./prepared-for-the-weather');

fetch-weather.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ var request = require('request');
66

77
function fetchWeather(location, callback) {
88

9-
var url = 'http://api.openweathermap.org/data/2.5/weather?q='+location;
9+
var appId = 'aa0f1b0be45dca476178787f941c76dc'; // This is a managed key - I don't mind if you steal it ;)
10+
var url = 'http://api.openweathermap.org/data/2.5/weather?q='+location+'&appid='+appId;
1011

1112
request({
1213
url: url,

0 commit comments

Comments
 (0)