node-red-contrib-astrodata 0.0.1

Nodes for calculation of sun and moon position, sunset, sunrise etc.

npm install node-red-contrib-astrodata

NPM version

This package contains two node-red nodes to calculate astronomical data for a given position.

The implementation based on the algorithm of http://lexikon.astronomie.info/java/sunmoon/sunmoon.html. Thanks to Mr. Arnold Barmettler for permission to use these algorithms for these nodes.

Requirements

  • The nodes have no special reqirements and should work with node-red 0.12 and newer.

Description

Node astrodata dayvalues

The node astrodata dayvalues calculates astonomical data for the current day. Set longitude and Latitude of the place in decimal form and height of the place in meters in the properties dialog.

The msg object also contains the attributs

  • msg.sunAstronomicalTwilightMorning
  • msg.sunNauticalTwilightMorning
  • msg.sunCivilTwilightMorning
  • msg.sunRise, msg.sunTransit
  • msg.sunSet, msg.sunCivilTwilightEvening
  • msg.sunNauticalTwilightEvening
  • msg.sunAstronomicalTwilightEvening
  • msg.sunSign, msg.moonRise
  • msg.mondkulmination
  • msg.moonSet
  • msg.moonPhaseNumber
  • msg.moonPhase
  • msg.moonSign.

The msg object also contains the attributs

  • msg.sunDistance in km
  • msg.sunDistanceObserver in km
  • msg.sunDeclination in Grad
  • msg.sunAzimut in Grad
  • msg.sunAltitude in Grad
  • msg.sunDiameter
  • msg.moonDistance in km
  • msg.moonDistanceObserver in km
  • msg.moonDeclination in Grad
  • msg.moonAzimut in Grad
  • msg.moonAltitude in Grad
  • msg.moonDiameter and
  • msg.MoonAge in Grad

for the current time.

All other attributes ob the input msg object will be passed to the output msg object.

Node astrodata sunposition

The node astrodata sunposition calculates sun position for the current time. Set longitude and Latitude of the place in decimal form and height of the place in meters in the properties dialog.

Set longitude and Latitude of the place in decimal form in the properties dialog.

The msg object also contains the attributs

  • msg.sunDistance in km
  • msg.sunDistanceObserver in km
  • msg.sunDeclination in Grad
  • msg.sunAzimut in Grad
  • msg.sunAltitude in Grad
  • msg.sunDiameter
  • msg.moonDistance in km
  • msg.moonDistanceObserver in km
  • msg.moonDeclination in Grad
  • msg.moonAzimut in Grad
  • msg.moonAltitude in Grad
  • msg.moonDiameter
  • msg.MoonAge in Grad.

All other attributes ob the input msg object will be passed to the output msg object.

Node Info

Version: 0.0.1
Updated 1 year, 6 months ago
License: (MIT OR Apache-2.0)

Downloads

2 in the last day
9 in the last week
38 in the last month

Nodes

  • astrodata dayvalues
  • astrodata sunposition

Keywords

  • node-red
  • astrodata

Maintainers

  • nobodymo