node-red-node-openweathermap
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name" : "node-red-node-openweathermap", | ||
"version" : "0.0.2", | ||
"version" : "0.0.3", | ||
"description" : "A Node-RED node that gets the weather report from openweathermap", | ||
@@ -11,3 +11,3 @@ "dependencies" : { | ||
}, | ||
"license": "Apache 2.0", | ||
"license": "Apache-2.0", | ||
"keywords": [ "node-red", "weather", "openweathermap" ], | ||
@@ -14,0 +14,0 @@ "node-red" : { |
@@ -70,3 +70,3 @@ /** | ||
} catch (e) { | ||
callback("The API has returned an invalid JSON"); | ||
callback("The API call returned invalid JSON"); | ||
return; | ||
@@ -97,3 +97,2 @@ } | ||
msg.description = "Current weather information at coordinates: " + msg.location.lat + ", " + msg.location.lon; | ||
msg.payload.description = ("The weather in " + jsun.name + " at coordinates: " + jsun.coord.lat + ", " + jsun.coord.lon + " is " + jsun.weather[0].main + " (" + jsun.weather[0].description + ")." ); | ||
@@ -100,0 +99,0 @@ callback(); |
34651