Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Sandbox

Implements

Index

Constructors

constructor

Properties

Protected _$objects

_$objects: ObjectService

Protected _$states

_$states: StateService

Protected _$yaml

_$yaml: YamlService

Protected _log

_log: Ha4usLogger

Protected _name

_name: string

_onDestroy

_onDestroy: function

Type declaration

    • (): void
    • Returns void

Protected _scheduler

_scheduler: UsScheduler

Protected _script

_script: Ha4usScript

compileTemplate

compileTemplate: compile = compile

log

log: object = this.console

Type declaration

  • debug: function
    • debug(...args: any[]): any
  • error: function
    • error(...args: any[]): any
  • info: function
    • info(...args: any[]): any
  • log: function
    • log(...args: any[]): void
  • warn: function
    • warn(...args: any[]): any

noRetained

noRetained: MonoTypeOperatorFunction<Ha4usMessage> = Ha4usOperators.noRetained

onlyRetained

onlyRetained: MonoTypeOperatorFunction<Ha4usMessage> = Ha4usOperators.onlyRetained

pick

pick: pick = Ha4usOperators.pick

pickEach

pickEach: pickEach = Ha4usOperators.pickEach

randomString

randomString: randomString = randomString

render

render: render = render

stop$

stop$: Subject<void> = new rxjs.Subject<void>()

Accessors

sandbox

sandbox:

Methods

$onDestroy

  • $onDestroy(destroyFunc: function): void
  • Parameters

    • destroyFunc: function
        • (): void
        • Returns void

    Returns void

Protected _setupLogger

  • _setupLogger(): Ha4usLogger

combine

  • combine(...pattern: string[]): Observable<Ha4usMessage[]>

createObject

  • createObject(topic: string, data: Partial<Ha4usObject>): Promise<Ha4usObject>
  • Parameters

    • topic: string
    • data: Partial<Ha4usObject>

    Returns Promise<Ha4usObject>

cron

  • cron(cronPattern: string): Observable<number>

doAt

  • doAt(date: DateTime): Observable<ScheduleEvent>

doIn

  • doIn(duration: string | number): Observable<ScheduleEvent>

get

  • get(topic: string): Promise<Ha4usMessage>

getTimes

  • getTimes(now?: DateTime): any

load

  • load(file: string): any

observe

  • observe(topic: string, ...params: any[]): Observable<Ha4usMessage>

random

  • random(maxOrMin: number, max?: number): number

require

  • require(md: string): any

save

  • save(data: any, file: string): any

schedule

  • schedule(eventOrOpts: SimpleTime | SchedulingOptions, ...times: SimpleTime[]): Observable<ScheduleEvent>

set

  • set(topic: string, value: any): Promise<any>

setTimes

  • setTimes(...times: string[]): void

status

  • status(topic: string, value: any, retained?: boolean): Promise<Ha4usMessage>

Object literals

Protected _modules

_modules: object

fs

fs: "fs"

path

path: "path"

rxjs

rxjs: "/Users/ulf/development/ha4us/ha4us-scripts/node_modules/rxjs/index" = rxjs

rxjs/operators

rxjs/operators: "/Users/ulf/development/ha4us/ha4us-scripts/node_modules/rxjs/operators/index" = rxjsoperators

console

console: object

debug

  • debug(...args: any[]): any

error

  • error(...args: any[]): any

info

  • info(...args: any[]): any

log

  • log(...args: any[]): void

warn

  • warn(...args: any[]): any

http

http: object

get

  • get(url: string, query: object): Promise<string>

parse

  • parse(url: string, query: object): Promise<CheerioStatic>
  • Parameters

    • url: string
    • query: object

    Returns Promise<CheerioStatic>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc