
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
node-red-node-darksky
Advanced tools
A Node-RED node that gets the weather forecast from the DarkSky API
A Node-RED node that gets the weather forecast from the Dark Sky weather API.
You will need an API key from Dark Sky developer portal.
This allows 1000 requests per day. The polling node makes a request every 5 minutes = 288 requests.
Run the following command in the root directory of your Node-RED install.
This is usually ~/.node-red
npm install node-red-node-darksky
Two nodes that get the weather forecast from the Dark Sky weather API.
One node polls the Dark Sky api every 15 minutes, the other is triggered to request weather forecast data when an input is received.
The user has the option of providing a date to the node instead of returning data for the next day. The node will always prioritise the node settings if they are present.
The node is configured using a latitude and longitude set of coordinates, an optional date/time combination, and a set of units with which to format the response.
These can be passed in as settings on the node, or as:
If using msg.time it should be a javascript Date object. If using msg.payload it must be a string or number of milliseconds since 1970 (epoch time in mS.)
The node sets the following properties of msg.payload:
Both will return
The node also sets the following properties of msg.location.
Finally, the node sets:
Weather data Powered by Dark Sky
FAQs
A Node-RED node that gets the weather forecast from the DarkSky API
We found that node-red-node-darksky demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.