Documentation ¶
Index ¶
- type Controller
- func (ctrl *Controller) API(method string, endpoint string, request_obj interface{}, ...)
- func (ctrl *Controller) AppGetCurrent() (response types.AppGetCurrentResponse)
- func (ctrl *Controller) AppLaunch(app_id string, name_space int, message string) (response types.AppLaunchResponse)
- func (ctrl *Controller) AudioGetAllSettings() (response types.AudioGetAllSettingsResponse)
- func (ctrl *Controller) AudioGetSetting(setting_name string) (response types.AudioGetSettingResponse)
- func (ctrl *Controller) AudioGetSettingsOption(setting_name string)
- func (ctrl *Controller) AudioSetSetting(setting_name string, setting_option interface{})
- func (ctrl *Controller) InputCycle() (result bool)
- func (ctrl *Controller) InputGetAvailable() (result []types.Input)
- func (ctrl *Controller) InputGetCurrent() (result types.Input)
- func (ctrl *Controller) InputHDMISet(hdmi_input_number int)
- func (ctrl *Controller) InputSet(input_name string)
- func (ctrl *Controller) KeyPress(codeset int, code int) (result bool)
- func (ctrl *Controller) MuteOff() (result bool)
- func (ctrl *Controller) MuteOn() (result bool)
- func (ctrl *Controller) MuteToggle() (result bool)
- func (ctrl *Controller) Pair() (auth_token string)
- func (ctrl *Controller) PairingStageOne() (result int32)
- func (ctrl *Controller) PairingStageTwo(pairing_stage_one_token int32, code_displayed_on_tv string) (result string)
- func (ctrl *Controller) PowerGetState() (result bool)
- func (ctrl *Controller) PowerOff() (result bool)
- func (ctrl *Controller) PowerOn() (result bool)
- func (ctrl *Controller) SettingsGet(settings_type string, setting_name string) (response types.SettingsGetResponse)
- func (ctrl *Controller) SettingsGetOptionsForType(settings_type string) (response types.SettingsGetTypeResponse)
- func (ctrl *Controller) SettingsGetType(settings_type string) (response types.SettingsGetTypeResponse)
- func (ctrl *Controller) SettingsGetTypes() (response types.SettingsGetTypesResponse)
- func (ctrl *Controller) SettingsSet(settings_type string, setting_name string, setting_value interface{}) (response types.SettingsSetResponse)
- func (ctrl *Controller) VolumeDown() (result bool)
- func (ctrl *Controller) VolumeGet() (result int)
- func (ctrl *Controller) VolumeSet(target_volume int)
- func (ctrl *Controller) VolumeUp() (result bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Config types.ConfigFile `yaml:"config"` HTTPClient *http.Client `yaml:"-"` }
func New ¶
func New(ip_address string, auth_token string) (result *Controller)
func NewFromConfig ¶
func NewFromConfig(config *types.ConfigFile) (result *Controller)
func (*Controller) API ¶
func (ctrl *Controller) API(method string, endpoint string, request_obj interface{}, response_obj interface{})
func (*Controller) AppGetCurrent ¶
func (ctrl *Controller) AppGetCurrent() (response types.AppGetCurrentResponse)
func (*Controller) AppLaunch ¶
func (ctrl *Controller) AppLaunch(app_id string, name_space int, message string) (response types.AppLaunchResponse)
Look Here to Find APP_ID 's , Namespace Integers , and Messages https://github.com/vkorn/pyvizio/blob/master/pyvizio/const.py
func (*Controller) AudioGetAllSettings ¶
func (ctrl *Controller) AudioGetAllSettings() (response types.AudioGetAllSettingsResponse)
func (*Controller) AudioGetSetting ¶
func (ctrl *Controller) AudioGetSetting(setting_name string) (response types.AudioGetSettingResponse)
func (*Controller) AudioGetSettingsOption ¶
func (ctrl *Controller) AudioGetSettingsOption(setting_name string)
func (*Controller) AudioSetSetting ¶
func (ctrl *Controller) AudioSetSetting(setting_name string, setting_option interface{})
func (*Controller) InputCycle ¶
func (ctrl *Controller) InputCycle() (result bool)
func (*Controller) InputGetAvailable ¶
func (ctrl *Controller) InputGetAvailable() (result []types.Input)
func (*Controller) InputGetCurrent ¶
func (ctrl *Controller) InputGetCurrent() (result types.Input)
Input
func (*Controller) InputHDMISet ¶ added in v1.0.17
func (ctrl *Controller) InputHDMISet(hdmi_input_number int)
func (*Controller) InputSet ¶
func (ctrl *Controller) InputSet(input_name string)
func (*Controller) KeyPress ¶
func (ctrl *Controller) KeyPress(codeset int, code int) (result bool)
Send Key Press
func (*Controller) MuteOff ¶
func (ctrl *Controller) MuteOff() (result bool)
func (*Controller) MuteOn ¶
func (ctrl *Controller) MuteOn() (result bool)
func (*Controller) MuteToggle ¶
func (ctrl *Controller) MuteToggle() (result bool)
func (*Controller) Pair ¶
func (ctrl *Controller) Pair() (auth_token string)
func (*Controller) PairingStageOne ¶
func (ctrl *Controller) PairingStageOne() (result int32)
func (*Controller) PairingStageTwo ¶
func (ctrl *Controller) PairingStageTwo(pairing_stage_one_token int32, code_displayed_on_tv string) (result string)
func (*Controller) PowerOff ¶
func (ctrl *Controller) PowerOff() (result bool)
func (*Controller) PowerOn ¶
func (ctrl *Controller) PowerOn() (result bool)
func (*Controller) SettingsGet ¶
func (ctrl *Controller) SettingsGet(settings_type string, setting_name string) (response types.SettingsGetResponse)
func (*Controller) SettingsGetOptionsForType ¶
func (ctrl *Controller) SettingsGetOptionsForType(settings_type string) (response types.SettingsGetTypeResponse)
func (*Controller) SettingsGetType ¶
func (ctrl *Controller) SettingsGetType(settings_type string) (response types.SettingsGetTypeResponse)
func (*Controller) SettingsGetTypes ¶
func (ctrl *Controller) SettingsGetTypes() (response types.SettingsGetTypesResponse)
func (*Controller) SettingsSet ¶
func (ctrl *Controller) SettingsSet(settings_type string, setting_name string, setting_value interface{}) (response types.SettingsSetResponse)
func (*Controller) VolumeDown ¶
func (ctrl *Controller) VolumeDown() (result bool)
func (*Controller) VolumeSet ¶
func (ctrl *Controller) VolumeSet(target_volume int)
func (*Controller) VolumeUp ¶
func (ctrl *Controller) VolumeUp() (result bool)
Click to show internal directories.
Click to hide internal directories.