
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
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
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.