This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

routoh-device-clock

0.0.21 • Public • Published

routoh-device-clock

A fork / ES2015 rewrite of the time module on route.io.

The device will emit events every minute with format 'Clock.'.

const Route = require('routoh');
const Clock = require('routoh-device-clock');
 
const route = new Route();
route.addDevice(new Clock());
 
// Listen for 6am
route.addEventCommand('Clock.0600', () => {
  // Do Something Cool....
});
 
// Listen for 7am
route.addEventCommand('Clock.0700', () => {
  // Do Something Else Cool....
});

Readme

Keywords

none

Package Sidebar

Install

npm i routoh-device-clock

Weekly Downloads

1

Version

0.0.21

License

Apache-2.0

Last publish

Collaborators

  • gauntface