
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-contrib-blindcontroller
Advanced tools
A collection of Node-RED nodes that can be used to automate the control of household roller blinds based on the current position of the sun.
A collection of Node-RED nodes that automate the control of household roller blinds based on the current position of the sun.
Run the following command in the root directory of your Node-RED install
npm install node-red-contrib-blindcontroller
node-red-contrib-blindcontroller is compatible with node-red-contrib-sunpos.
This node calculates the appropriate blind position to restrict or maximise direct sunlight through the associated window.





The calculation requires the output of the Sun Position Node. This can be supplemented with current weather conditions, such as that from forecastio or weather underground. msg.topic should be set to weather, and msg.payload either or both of the following properties:
In Summer mode, the node calculates the appropriate blind position to restrict the amount of direct sunlight entering the room. This calculation includes:
determination of whether direct sunlight is entering the room based on the orientation of the blind and the azimuth of the sun - taking into account the negative and positive offset properties; and

dimensions of the window and the current altitude of the sun. The node is agnostic of unit of measure, though the same UOM should be used for all dimensions.

consideration of weather conditions against defined thresholds. As per window dimensions, weather conditions are also agnostic of unit of measure and used consistently.
In Winter mode, the node calculates the appropriate blind position to maximise the amount of direct sunlight entering the room. This calculation is based on whether direct sunlight is entering the room based on the orientation of the blind and the azimuth of the sun - taking into account the negative and positive offset properties. When the sun is in the window the blind will positioned in the max open setting, otherwise it will be positioned in the max closed setting. In overcast conditions the blind will be positioned in the max closed setting.
The mode can be changed via a message. msg.topic should be set to mode, and msg.payload with the following property:
In the event the node determines a blind position change is required, it will emit a msg.payload with the properties of the blind including:
In addition, msg.data includes information useful for monitoring:
msg.topic is set to "blind".
The node also supports manual overrides by processing messages with msg.topic set to blindPosition, and msg.payload containing the following properties:
Manual positions can be forced to expire by processing a message with msg.topic set to blindPositionReset, and msg.payload containing the following properties:
The node also reports its status within the Node-RED flow editor:
This node calculates the appropriate blind position to restrict direct sunlight through a number of windows. This node processes three types of input messages:
When processing either a Sun Position, Weather or Mode message, the blind position calculation is performed for each blind for which a configuration message has previously been received. Emitted messages from this node have the same properties as those emitted from the Blind Controller node.
This node does not report status within the Node-RED flow editor.
The figure below represents a sample flow of Blind Controller node can be used to control 6 Qmotion blinds at the one geo location. The flow is initiated by an Injector node configured to run periodically.

The figure below represents a sample flow using the Multi Blind Controller node for the same use case, where the blind configuration is stored in a Cloudant database.

FAQs
A collection of Node-RED nodes that can be used to automate the control of household roller blinds based on the current position of the sun.
The npm package node-red-contrib-blindcontroller receives a total of 21 weekly downloads. As such, node-red-contrib-blindcontroller popularity was classified as not popular.
We found that node-red-contrib-blindcontroller 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.

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.