UNPKG

ayla

Version:

Ayla at your service.

44 lines (33 loc) 1.21 kB
# UBI API # ----------------------------------------------------------------------------- class Ubi extends (require "./baseApi.coffee") expresser = require "expresser" events = expresser.events logger = expresser.logger settings = expresser.settings async = require "async" lodash = require "lodash" moment = require "moment" security = require "../security.coffee" # INIT # ------------------------------------------------------------------------- # Init the Ubi module. init: => @baseInit() # Start collecting data from The Ubi. start: => @baseStart() # Stop collecting data from The Ubi. stop: => @baseStop() # GET DEVICE DATA # ------------------------------------------------------------------------ # Gets the list of registered devices with The Ubi. getDeviceData: (callback) => console.warn 1 # Singleton implementation. # ----------------------------------------------------------------------------- Ubi.getInstance = -> @instance = new Ubi() if not @instance? return @instance module.exports = exports = Ubi.getInstance()