node-red-node-openweathermap
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -28,3 +28,4 @@ { | ||
"invalid-lon": "Invalid longitude (lon) provided", | ||
"invalid-json": "The API call returned invalid JSON. Is the API Key valid ?", | ||
"invalid-json": "The API call returned invalid JSON", | ||
"invalid-key": "Invalid API Key provided", | ||
"invalid-city_country": "Invalid city/country", | ||
@@ -31,0 +32,0 @@ "invalid-location": "Invalid location information provided", |
{ | ||
"name" : "node-red-node-openweathermap", | ||
"version" : "0.1.3", | ||
"version" : "0.1.4", | ||
"description" : "A Node-RED node that gets the weather report from openweathermap", | ||
@@ -5,0 +5,0 @@ "dependencies" : { |
@@ -67,2 +67,6 @@ /** | ||
var jsun; | ||
if (weather.indexOf("Invalid API key") > -1) { | ||
callback(RED._("weather.error.invalid-key")); | ||
return; | ||
} | ||
try { | ||
@@ -69,0 +73,0 @@ jsun = JSON.parse(weather); |
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
38806
244