Giter VIP home page Giter VIP logo

node-red-contrib-cb-suncron's Introduction

cb-SunCron

A Node-RED node that can output configurable messages at significant sun events

Supported Sun Events

  • Sunrise
  • Sunrise End
  • Golden Hour End
  • Solar Noon
  • Golden Hour
  • Sunset Start
  • Sunset
  • Dusk
  • Nautical Dusk
  • Night
  • Nadir
  • Night End
  • Nautical Dawn
  • Dawn

Configuration

For one of the above sun events a distinct msg.payload and msg.topic can be configured. It is also possible to specify an offset to adjust the event time.

The location (lat / lon) is set up via a configuration node to make reusing/identifying it easier.

suncron-location config node

suncron node

Outgoing messages

The node will emit messages at the specified sun event with the specified offset. Outbound messages will have a msg.payload and msg.topic as configured in the editor.

Known issues

Depending on your configured location (lat / lon) and time of the year, you might notice some sun events not being triggered. This is not an error but how lighting works on earth. For example in polar regions, they sometimes have day (or night) for weeks at a time. But even in Berlin / Germany there might not always be a distinct 'night' event as the sun during summer does not go below the astronomical twilight treshold.

Contributions and Suggestions

... are always welcome! Just file a GitHub issue or pull request!

node-red-contrib-cb-suncron's People

Contributors

acejacek avatar csuermann avatar cyberbeni avatar dependabot[bot] avatar franzhoffmann avatar

Watchers

 avatar

node-red-contrib-cb-suncron's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.