controller

package
v1.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: Unlicense Imports: 10 Imported by: 1

Documentation

Index

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) PowerGetState

func (ctrl *Controller) PowerGetState() (result bool)

Power

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) VolumeGet

func (ctrl *Controller) VolumeGet() (result int)

Volume

func (*Controller) VolumeSet

func (ctrl *Controller) VolumeSet(target_volume int)

func (*Controller) VolumeUp

func (ctrl *Controller) VolumeUp() (result bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL