From 89996016ded69b7c16999f691466c2897f02c195 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 30 Apr 2020 11:11:11 +0100 Subject: [PATCH] suncalc - add moon position and phases, and sun position - bump to 1.0 --- time/suncalc/79-suncalc.html | 3 ++- time/suncalc/79-suncalc.js | 22 ++++++++++++++++++++-- time/suncalc/README.md | 5 +++-- time/suncalc/package.json | 2 +- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/time/suncalc/79-suncalc.html b/time/suncalc/79-suncalc.html index 47cd4d77..16689f3e 100644 --- a/time/suncalc/79-suncalc.html +++ b/time/suncalc/79-suncalc.html @@ -48,7 +48,8 @@

The first output emits a msg.payload of 1 or 0 every minute depending if in between selected times or not. The second output emits only on the transition between night to day (-> 1) or day to night (-> 0).

It also outputs msg.start, msg.end and msg.now which are todays start and end times, with offsets applied, in ISO format, and the current ISO time.

-

msg.topic is set to sun, and msg.moon to the fraction of the moon between 0 and 1.

+

msg.sun is an object containing the azimuth and altitude, in degrees, of the current sun position.

+

msg.moon is an object containing position, phase, illumination and icon of the moon.