
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
node-red-node-suncalc
Advanced tools
A Node-RED node to provide a signal at sunrise and sunset.
Either use the Node-RED Menu - Manage Palette - Install, or run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-node-suncalc
Breaking Change - in version 1.0 the msg.moon property is now an object not a number - containing a lot more information.
Uses the suncalc npm to generate an output at sunrise and sunset based on a specified location.
Several choices of definition of sunrise and sunset are available, see the suncalc module for details.
The start and end times can be offset by a number of minutes before (minus) or after (plus) the chosen event time.
The node provide two outputs. The first output emits a msg.payload of 1 or 0 every minute
depending if day-time (1) or night-time (0).
The second output emits only on the transition between night to day (-> 1) or day to night (-> 0).
It also outputs msg.start, msg.end and msg.now which are todays start and end times, with offsets applied, in ISO format, and the current ISO time.
msg.sun is an object containing the azimuth and altitude, in degrees, of the current sun position. msg.moon is an object containing its position, phase, illumination and icon.
FAQs
A Node-RED node to provide a signal at sunrise and sunset
The npm package node-red-node-suncalc receives a total of 274 weekly downloads. As such, node-red-node-suncalc popularity was classified as not popular.
We found that node-red-node-suncalc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.