This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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'; |