NodeRED nodes to get sun and moon position
npm install node-red-contrib-sun-position





This is a ultimate (Swiss-Army-Knife) Node-Red Timer based flow control with dusk, dawn (and variations) and much more.
Additional you can get sun and moon position or to control a flow by sun or moon position. It is ideal for usage of control smart home, but also for all other time based flow control.
There is also a roller blind control node and a clock timer node. The blind control node can determine the position of the roller shutter by time or position of the sun. The timer can send different payloads depending on the time.
If a Node has a warning sign on the label like this one:
!warning sign
This is not an error, it hides only that the node needs to be opened, saved and deployed to fix the label.
⚠ Nodes that were created or saved with a version 2.0.0 or later do not work in versions prior 2.0.0 of the package.
- node-red-contrib-sun-position for NodeRED
- Information on Version changes
- Table of contents
- Preconditions
- Installation
- General
- Saving resources
- second based accuracy
- Documentation of the nodes
- CHANGELOG
- TODO
- Support, Bugs and Feedback
- LICENSE
- Other
These nodes need at least NodeJS Version __12.0__ and Node-Red with Version __1.2.9__! Any early Version of Node-Red will not work!
npm install node-red-contrib-sun-position
The nodes are designed to do not calculate time events with every arriving message or with an interval every x time. This is to be able to handle a huge amount of messages also on even on computers with low resources.
The nodes are designed to be accurate to seconds. This means it was designed to turn on/off at exact given second. Other timers often work using intervals where they check your schedule only once a minute or even less. This means when you want something to come on at 08:00am, it may actually not come on until 30 seconds later. This nodes does not have this problem, it will come on at exactly 08:00:00am.
The documentation of the nodes is moved to the wiki:
- base functions for all (or the most of the nodes)
- Implemented Nodes
- sun-position
- moon-position
- time-inject
- within-time
- time-comp
- time-span
- blind-control
- clock-timer
- see here the releases at npm.
- see here the changelog of master
- see here the changelog of dev
- [ ] add possibility to select input/output timezone
For bugs, questions and feature requests please use the
GitHub Issues, or the Homematic forum.
:moneybag: Donations 
Even for those that don't have the technical knowhow to help developing on there are ways to support development. So if you want to donate some money please feel free to send money via PayPal.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this nodes except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
- npm Releases / changelog
- newreleases.io
- RedMatic Forum
- RedMatic Wiki
- Github
- NPM package
- Node-Red
- 
- 