Skip to content

Instantly share code, notes, and snippets.

@mrpapercut
mrpapercut / SunriseSunset.js
Last active January 5, 2022 11:47
Philips Hue automatic lighting based on sunrise/sunset
/**
* Automatically turns on lights based on sunrise/sunset
* Usage: use cronjob to trigger every night after midnight
*
* NPM packages required: superagent, node-hue-api
*/
import request from 'superagent';
import HueApi from 'node-hue-api';