Skip to content
Snippets Groups Projects
Commit 33096050 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Update the openweathermap (OWM) API version number

Change requested in issue #747 and from Dan_C in #synchronet
parent 19d3c4df
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ OpenWeatherMap.prototype.call_api = function (endpoint, params, raw) {
if (!this.rate_limit()) return { error: 'Rate limit exceeded' };
var url = 'http://api.openweathermap.org/data/2.5/' + endpoint;
var url = 'http://api.openweathermap.org/data/3.0/' + endpoint;
if (params.mode === undefined) params.mode = 'json';
url += Object.keys(params).reduce(function (a, c, i) {
return a + (i == 0 ? '?' : '&') + c + '=' + params[c];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment