1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 04:46:09 +03:00

Update weather example with latest api changes

This commit is contained in:
Christoph Bünte 2015-09-16 15:44:50 +02:00 committed by vitallium
parent efbb40521c
commit b490475a01

View File

@ -7,7 +7,7 @@ city = 'Mountain View, California'; // default
if (system.args.length > 1) {
city = Array.prototype.slice.call(system.args, 1).join(' ');
}
url = encodeURI('http://api.openweathermap.org/data/2.1/find/name?q=' + city);
url = encodeURI('http://api.openweathermap.org/data/2.5/find?q=' + city);
console.log('Checking weather condition for', city, '...');