node-red-node-openweathermap
Advanced tools
Comparing version 0.1.12 to 0.1.13
{ | ||
"name" : "node-red-node-openweathermap", | ||
"version" : "0.1.12", | ||
"version" : "0.1.13", | ||
"description" : "A Node-RED node that gets the weather report from openweathermap", | ||
@@ -5,0 +5,0 @@ "dependencies" : { |
@@ -94,2 +94,4 @@ /** | ||
if (jsun.main.hasOwnProperty("temp")) { msg.payload.tempc = parseInt(10 * (Number(jsun.main.temp) - 273.2))/10; } | ||
if (jsun.main.hasOwnProperty("temp_max")) { msg.payload.temp_maxc = parseInt(10 * (Number(jsun.main.temp_max) - 273.2))/10; } | ||
if (jsun.main.hasOwnProperty("temp_min")) { msg.payload.temp_minc = parseInt(10 * (Number(jsun.main.temp_min) - 273.2))/10; } | ||
msg.payload.humidity = jsun.main.humidity; | ||
@@ -96,0 +98,0 @@ msg.payload.maxtemp = jsun.main.temp_max; |
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
48988
296