New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-red-node-openweathermap

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-node-openweathermap - npm Package Compare versions

Comparing version 0.5.1 to 1.0.0

4

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc