node-red-node-openweathermap
Advanced tools
Comparing version 0.1.14 to 0.1.15
{ | ||
"name" : "node-red-node-openweathermap", | ||
"version" : "0.1.14", | ||
"version" : "0.1.15", | ||
"description" : "A Node-RED node that gets the weather report from openweathermap", | ||
@@ -5,0 +5,0 @@ "dependencies" : { |
@@ -54,5 +54,5 @@ /** | ||
if (node.lat && node.lon) { | ||
url = "http://api.openweathermap.org/data/2.5/forecast/daily?lang=" + node.language + "&cnt=5&units=metric&lat=" + node.lat + "&lon=" + node.lon + "&APPID=" + node.credentials.apikey; | ||
url = "http://api.openweathermap.org/data/2.5/forecast?lang=" + node.language + "&cnt=40&units=metric&lat=" + node.lat + "&lon=" + node.lon + "&APPID=" + node.credentials.apikey; | ||
} else if (node.city && node.country) { | ||
url = "http://api.openweathermap.org/data/2.5/forecast/daily?lang=" + node.language + "&cnt=5&units=metric&q=" + node.city + "," + node.country + "&APPID=" + node.credentials.apikey; | ||
url = "http://api.openweathermap.org/data/2.5/forecast?lang=" + node.language + "&cnt=40&units=metric&q=" + node.city + "," + node.country + "&APPID=" + node.credentials.apikey; | ||
} | ||
@@ -59,0 +59,0 @@ } else { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49290