npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-astrodata

v0.0.4

Published

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

Downloads

60

Readme

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 moon phases and star signs support different languages (english, german and french). Set the target language in the properties dialog. Field offset or in msg.offset allows the calculation for different dates. An numeric value changes the date relative from now (Whole numbers for days).

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.