Socket
Socket
Sign inDemoInstall

node-red-contrib-sun-position

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-sun-position - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

images/sun-times.svg

17

nodes/lib/suncalc.js

@@ -128,8 +128,8 @@ /*

[-0.3, 'sunriseEnd', 'sunsetStart'], // SUNRISE_END
[-4, 'blueHourRise', 'blueHourSet'], // BLUE_HOUR
[-6, 'dawn', 'dusk'], // DAWN
[-8, 'blueHourRiseEnd', 'blueHourSetEnd'], // BLUE_HOUR
[-4, 'blueHourDawnEnd', 'blueHourDuskStart'], // BLUE_HOUR
[-6, 'civilDawn', 'civilDusk'], // DAWN
[-8, 'blueHourDawnStart', 'blueHourDuskEnd'], // BLUE_HOUR
[-12, 'nauticalDawn', 'nauticalDusk'], // NAUTIC_DAWN
[-15, 'amateurDawn', 'amateurDusk'],
[-18, 'nightEnd', 'night'], // ASTRO_DAWN
[-18, 'astronomicalDawn', 'astronomicalDusk'], // ASTRO_DAWN
[6, 'goldenHourEnd', 'goldenHour'] // GOLDEN_HOUR_AM

@@ -207,3 +207,10 @@ ];

}
// for backward compatibilit
result['dawn'] = result['civilDawn'];
result['dusk'] = result['civilDusk'];
result['nightEnd'] = result['astronomicalDawn'];
result['night'] = result['astronomicalDusk'];
result['nightStart'] = result['astronomicalDusk'];
result['dawn'] = result['civilDawn'];
result['goldenHourStart'] = result['goldenHour'];
return result;

@@ -210,0 +217,0 @@ };

{
"name": "node-red-contrib-sun-position",
"version": "0.1.12",
"version": "0.1.13",
"description": "NodeRED nodes to get sun and moon position",

@@ -5,0 +5,0 @@ "main": "none",

@@ -89,7 +89,8 @@ # node-red-contrib-sun-position for NodeRED

- `msg.payload.times` the sun times as object.
- `msg.payload.times.nightEnd` night ends (morning astronomical twilight starts)
- `msg.payload.times.astronomicalDawn` night ends (morning astronomical twilight starts)
- `msg.payload.times.amateurDawn` amateur astronomical dawn (sun at 12° before sunrise)
- `msg.payload.times.nauticalDawn` nautical dawn (morning nautical twilight starts)
- `msg.payload.times.dawn` dawn (morning nautical twilight ends, morning civil twilight starts)
- `msg.payload.times.blueHourRise` blue Hour start (time for special photography photos starts)
- `msg.payload.times.blueHourDawnStart` blue Hour start (time for special photography photos starts)
- `msg.payload.times.civilDawn` dawn (morning nautical twilight ends, morning civil twilight starts)
- `msg.payload.times.blueHourDawnEnd` blue Hour end (time for special photography photos starts)
- `msg.payload.times.sunrise` sunrise (top edge of the sun appears on the horizon)

@@ -102,7 +103,7 @@ - `msg.payload.times.sunriseEnd` sunrise ends (bottom edge of the sun touches the horizon)

- `msg.payload.times.sunset` sunset (sun disappears below the horizon, evening civil twilight starts)
- `msg.payload.times.blueHourSet` blue Hour start (time for special photography photos ends)
- `msg.payload.times.dusk` dusk (evening nautical twilight starts)
- `msg.payload.times.nauticalDusk` nautical dusk (evening astronomical twilight starts)
- `msg.payload.times.blueHourDuskStart` nautical dusk start (evening astronomical twilight starts)
- `msg.payload.times.civilDusk` dusk (evening nautical twilight starts)
- `msg.payload.times.blueHourDuskEnd` nautical dusk end (evening astronomical twilight starts)
- `msg.payload.times.amateurDusk` amateur astronomical dusk (sun at 12° after sunrise)
- `msg.payload.times.night` night starts (dark enough for astronomical observations)
- `msg.payload.times.astronomicalDusk` night starts (dark enough for astronomical observations)
- `msg.payload.times.nadir` nadir (darkest moment of the night, sun is in the lowest position)

@@ -120,22 +121,30 @@ - `msg.payload.pos` array with a boolean of every defined limit of the azimuth, which is _true_ if the azimuth is inside the limit.

"altitude": 20.984193272523992,
"times": {
"solarNoon": "2018-12-10T10:59:14.814Z",
"nadir": "2018-12-10T22:59:14.814Z",
"sunrise": "2018-12-10T06:58:55.584Z",
"sunset": "2018-12-10T14:59:34.044Z",
"sunriseEnd": "2018-12-10T07:03:12.232Z",
"sunsetStart": "2018-12-10T14:55:17.395Z",
"blueHourRise": "2018-12-10T06:34:22.885Z",
"blueHourSet": "2018-12-10T15:24:06.743Z",
"dawn": "2018-12-10T06:19:31.249Z",
"dusk": "2018-12-10T15:38:58.379Z",
"nauticalDawn": "2018-12-10T05:37:04.859Z",
"nauticalDusk": "2018-12-10T16:21:24.768Z",
"amateurDawn": "2018-12-10T05:16:44.832Z",
"amateurDusk": "2018-12-10T16:41:44.795Z",
"nightEnd": "2018-12-10T04:56:49.931Z",
"night": "2018-12-10T17:01:39.696Z",
"goldenHourEnd": "2018-12-10T07:58:28.541Z",
"goldenHour": "2018-12-10T14:00:01.086Z"
},
"times": {
"solarNoon":"2018-12-10T10:59:14.814Z",
"nadir":"2018-12-10T22:59:14.814Z",
"sunrise":"2018-12-10T06:58:55.584Z",
"sunset":"2018-12-10T14:59:34.044Z",
"sunriseEnd":"2018-12-10T07:03:12.232Z",
"sunsetStart":"2018-12-10T14:55:17.395Z",
"blueHourDawnEnd":"2018-12-10T06:34:22.885Z",
"blueHourDuskStart":"2018-12-10T15:24:06.743Z",
"civilDawn":"2018-12-10T06:19:31.249Z",
"civilDusk":"2018-12-10T15:38:58.379Z",
"blueHourDawnStart":"2018-12-10T06:05:03.443Z",
"blueHourDuskEnd":"2018-12-10T15:53:26.185Z",
"nauticalDawn":"2018-12-10T05:37:04.859Z",
"nauticalDusk":"2018-12-10T16:21:24.768Z",
"amateurDawn":"2018-12-10T05:16:44.832Z",
"amateurDusk":"2018-12-10T16:41:44.795Z",
"astronomicalDawn":"2018-12-10T04:56:49.931Z",
"astronomicalDusk":"2018-12-10T17:01:39.696Z",
"goldenHourEnd":"2018-12-10T07:58:28.541Z",
"goldenHour":"2018-12-10T14:00:01.086Z",
"dawn":"2018-12-10T06:19:31.249Z",
"dusk":"2018-12-10T15:38:58.379Z",
"nightEnd":"2018-12-10T04:56:49.931Z",
"night":"2018-12-10T17:01:39.696Z",
"nightStart":"2018-12-10T17:01:39.696Z",
"goldenHourStart":"2018-12-10T14:00:01.086Z"
},
"pos": [],

@@ -310,22 +319,24 @@ "posChanged": false

| Time | Description |
| --------------- | ------------------------------------------------------------------------ |
| `nightEnd` | night ends (morning astronomical twilight starts) |
| `amateurDawn` | amateur astronomical dawn (sun at 12° before sunrise) |
| `nauticalDawn` | nautical dawn (morning nautical twilight starts) |
| `dawn` | dawn (morning nautical twilight ends, morning civil twilight starts) |
| `blueHourRise` | blue Hour start (time for special photography photos starts) |
| `sunrise` | sunrise (top edge of the sun appears on the horizon) |
| `sunriseEnd` | sunrise ends (bottom edge of the sun touches the horizon) |
| `goldenHourEnd` | morning golden hour (soft light, best time for photography) ends |
| `solarNoon` | solar noon (sun is in the highest position) |
| `goldenHour` | evening golden hour starts |
| `sunsetStart` | sunset starts (bottom edge of the sun touches the horizon) |
| `sunset` | sunset (sun disappears below the horizon, evening civil twilight starts) |
| `blueHourSet` | blue Hour start (time for special photography photos ends) |
| `dusk` | dusk (evening nautical twilight starts) |
| `nauticalDusk` | nautical dusk (evening astronomical twilight starts) |
| `amateurDusk` | amateur astronomical dusk (sun at 12° after sunrise) |
| `night` | night starts (dark enough for astronomical observations) |
| `nadir` | nadir (darkest moment of the night, sun is in the lowest position) |
| Time | Description |
| ------------------- | ------------------------------------------------------------------------ |
| `astronomicalDawn` | night ends (morning astronomical twilight starts) |
| `amateurDawn` | amateur astronomical dawn (sun at 12° before sunrise) |
| `nauticalDawn` | nautical dawn (morning nautical twilight starts) |
| `blueHourDawnStart` | blue Hour start (time for special photography photos starts) |
| `civilDawn` | dawn (morning nautical twilight ends, morning civil twilight starts) |
| `blueHourDawnEnd` | blue Hour end (time for special photography photos end) |
| `sunrise` | sunrise (top edge of the sun appears on the horizon) |
| `sunriseEnd` | sunrise ends (bottom edge of the sun touches the horizon) |
| `goldenHourEnd` | morning golden hour (soft light, best time for photography) ends |
| `solarNoon` | solar noon (sun is in the highest position) |
| `goldenHour` | evening golden hour starts |
| `sunsetStart` | sunset starts (bottom edge of the sun touches the horizon) |
| `sunset` | sunset (sun disappears below the horizon, evening civil twilight starts) |
| `blueHourDuskStart` | blue Hour start (time for special photography photos starts) |
| `civilDusk` | dusk (evening nautical twilight starts) |
| `blueHourDuskEnd` | blue Hour end (time for special photography photos end) |
| `nauticalDusk` | nautical dusk end (evening astronomical twilight starts) |
| `amateurDusk` | amateur astronomical dusk (sun at 12° after sunrise) |
| `astronomicalDusk` | night starts (dark enough for astronomical observations) |
| `nadir` | nadir (darkest moment of the night, sun is in the lowest position) |

@@ -332,0 +343,0 @@ moon rise and moon set can be used

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc