node-red-node-openweathermap
Advanced tools
Comparing version 0.1.4 to 0.1.6
{ | ||
"name" : "node-red-node-openweathermap", | ||
"version" : "0.1.4", | ||
"version" : "0.1.6", | ||
"description" : "A Node-RED node that gets the weather report from openweathermap", | ||
@@ -14,2 +14,3 @@ "dependencies" : { | ||
"node-red" : { | ||
"version": ">=0.11.0", | ||
"nodes" : { | ||
@@ -16,0 +17,0 @@ "openweathermap": "weather.js" |
/** | ||
* Copyright 2014 IBM Corp. | ||
* Copyright 2014.2015 IBM Corp. | ||
* | ||
@@ -49,2 +49,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
//If there is a value missing, the URL is not initialised. | ||
node.credentials = node.credentials || {}; | ||
if (node.lat && node.lon) { | ||
@@ -51,0 +52,0 @@ url = "http://api.openweathermap.org/data/2.5/weather?lat=" + node.lat + "&lon=" + node.lon + "&APPID=" + node.credentials.apikey; |
Sorry, the diff of this file is not supported yet
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
38926
245