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:
parent
efbb40521c
commit
b490475a01
@ -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, '...');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user