CICCIOSGAMINO / openweather-apis

Simple APIs for OpenWeatherMap.org basic services
GNU General Public License v3.0
44 stars 27 forks source link

"Invalid API key" when using getWeatherForecastForDays #29

Closed NoobyBoy closed 4 years ago

NoobyBoy commented 4 years ago

version : 4.1.0

When I'm using others method it works perfectly fine (ej: getAllWeather, getTemperature, ...) but when I use getWeatherForecastForDays like this:

      weather.setCity(city);
         weather.getWeatherForecastForDays(time, function(err, obj){
             if (err)
                 console.log(err);
             console.log(obj);

I get : { cod: 401, message: 'Invalid API key. Please see http://openweathermap.org/faq#error401 for more info.' }

CICCIOSGAMINO commented 4 years ago

You need payment account and API KEY for that functionality ..... as in the comment !

NoobyBoy commented 4 years ago

You need payment account and API KEY for that functionality ..... as in the comment !

Ok I probably missed it, thanks.