node-red-node-openweathermap
Advanced tools
Comparing version 0.5.1 to 1.0.0
{ | ||
"name": "node-red-node-openweathermap", | ||
"version": "0.5.1", | ||
"version": "1.0.0", | ||
"description": "A Node-RED node that gets the weather report from openweathermap", | ||
@@ -19,3 +19,3 @@ "dependencies": { | ||
"node-red": { | ||
"version": ">=0.11.0", | ||
"version": ">=0.14.0", | ||
"nodes": { | ||
@@ -22,0 +22,0 @@ "openweathermap": "weather.js" |
@@ -57,3 +57,3 @@ node-red-node-openweathermap | ||
- **pressure** - in hPa | ||
- **hunidity** - in % | ||
- **humidity** - in % | ||
- **speed** - wind speed in metres per second | ||
@@ -60,0 +60,0 @@ - **deg** - wind direction in degrees |
@@ -54,15 +54,15 @@ /** | ||
if (node.lat && node.lon) { | ||
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; | ||
url = "http://api.openweathermap.org/data/3.0/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?lang=" + node.language + "&cnt=40&units=metric&q=" + node.city + "," + node.country + "&APPID=" + node.credentials.apikey; | ||
url = "http://api.openweathermap.org/data/3.0/forecast?lang=" + node.language + "&cnt=40&units=metric&q=" + node.city + "," + node.country + "&APPID=" + node.credentials.apikey; | ||
} | ||
} else if (node.wtype === "current") { | ||
if (node.lat && node.lon) { | ||
url = "http://api.openweathermap.org/data/2.5/weather?lang=" + node.language + "&lat=" + node.lat + "&lon=" + node.lon + "&APPID=" + node.credentials.apikey; | ||
url = "http://api.openweathermap.org/data/3.0/weather?lang=" + node.language + "&lat=" + node.lat + "&lon=" + node.lon + "&APPID=" + node.credentials.apikey; | ||
} else if (node.city && node.country) { | ||
url = "http://api.openweathermap.org/data/2.5/weather?lang=" + node.language + "&q=" + node.city + "," + node.country + "&APPID=" + node.credentials.apikey; | ||
url = "http://api.openweathermap.org/data/3.0/weather?lang=" + node.language + "&q=" + node.city + "," + node.country + "&APPID=" + node.credentials.apikey; | ||
} | ||
} else if (node.wtype === "onecall") { | ||
if (node.lat && node.lon) { | ||
url = "https://api.openweathermap.org/data/2.5/onecall?lang=" + node.language + "&lat=" + node.lat + "&lon=" + node.lon + "&units=metric&APPID=" + node.credentials.apikey; | ||
url = "https://api.openweathermap.org/data/3.0/onecall?lang=" + node.language + "&lat=" + node.lat + "&lon=" + node.lon + "&units=metric&APPID=" + node.credentials.apikey; | ||
} | ||
@@ -69,0 +69,0 @@ } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1