Documentation ¶
Index ¶
- func InitLogger(logger *logrus.Logger)
- func RunById(username string, homescriptId string) (string, int, error)
- type Executor
- func (self Executor) Exec(homescriptId string) (string, error)
- func (self *Executor) GetDate() (int, int, int, int, int, int)
- func (self *Executor) GetDebugInfo() (string, error)
- func (self *Executor) GetTemperature() (int, error)
- func (self *Executor) GetUser() string
- func (self *Executor) GetWeather() (string, error)
- func (self *Executor) Log(title string, description string, level interpreter.LogLevel) error
- func (self *Executor) Notify(title string, description string, level interpreter.LogLevel) error
- func (self *Executor) Play(server string, mode string) error
- func (self *Executor) Print(args ...string)
- func (self *Executor) Switch(switchId string, powerOn bool) error
- func (self *Executor) SwitchOn(switchId string) (bool, error)
- type HomescriptError
- type Location
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
Types ¶
type Executor ¶
func (*Executor) GetDebugInfo ¶
func (*Executor) GetTemperature ¶
TODO: Will later be implemented, should return the temperature in Celsius
func (*Executor) GetWeather ¶
TODO: Will later be implemented, should return the weather as a human-readable string
type HomescriptError ¶
Click to show internal directories.
Click to hide internal directories.