masterblaster
v0.0.1
Published
Scheduling and componsation system for biodome
Downloads
2
Maintainers
Readme
Master Blaster
Scheduling and compensation for biodome
"Who runs Biodome?!"
//--------------
// API EXAMPLES
//--------------
var skynet = require('skynet')
, env = skynet.env();
/ / Scheduled device event
schedule('blinds', 'open').at('10:00am').execute();
schedule('blinds', 'closed').at('5:00pm').execute();
// Scheduled compensation triggers
every('5 minutes')
.if(env.tooHot)
.respond(turnOnFans)
.execute();
// Environment event triggering timed device event
env.on('tooHot', function() {
switchDevice('aircon', 'on')
.for('30 minutes')
.execute();
});