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
#!/bin/bash | |
MAX=20 # maximum numbe of loops | |
LOGFILE=~/tmp/start-and-move.log | |
rm -f $LOGFILE | |
log() { |
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
require '../utils/formats' | |
PThrottle = require 'p-throttle' | |
Google = require('googleapis').google | |
class Calendar | |
constructor: (config) -> | |
@calendars = Google.calendar 'v3' | |
@calid = config.calendarId |
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
Constants = require '../local/Constants' | |
Controller = require('node-milight-promise').MilightController | |
commandsV6 = require('node-milight-promise').commandsV6 | |
milight = commandsV6.fullColor | |
discoverBridges = require('node-milight-promise').discoverBridges | |
log = Constants.log 'milight' | |
class Milight |