UNPKG

node-red-contrib-circadian-light

Version:

A Node-RED node to set lighting levels based on the suns position

8 lines (4 loc) 191 B
var suncalc = require('suncalc'); var times = suncalc.getTimes(new Date(),51.0258791, -1.3969675); var noonHours = times.solarNoon.getHours(); var noonMins = times.solarNoon.getMinutes();