Documentation
¶
Index ¶
- func Run(username string, scriptLabel string, scriptCode string, serverUrl string, ...)
- func RunFile(username string, filename string, serverUrl string, cookies []*http.Cookie)
- type Executor
- func (self *Executor) Exit(code int)
- 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 PowerRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct {
ScriptName string
Username string
ServerUrl string
SessionCookies []*http.Cookie
Output string
}
func (*Executor) GetDebugInfo ¶
func (*Executor) GetTemperature ¶
func (*Executor) GetWeather ¶
type PowerRequest ¶
Click to show internal directories.
Click to hide internal directories.