controller

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Unlicense Imports: 11 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 {
	Type           string               `yaml:"type"`
	Config         *types.ConfigFile    `yaml:"-"`
	LG             *lg_tv.Controller    `yaml:"-"`
	VIZIO          *vizio_tv.Controller `yaml:"-"`
	HDMICEC        *hdmi_cec.Controller `yaml:"-"`
	IR             *ir.Controller       `yaml:"-"`
	LG_Ready       bool                 `yaml:"-"`
	VIZIO_Ready    bool                 `yaml:"-"`
	SAMSUNG_Ready  bool                 `yaml:"-"`
	IR_Ready       bool                 `yaml:"-"`
	HDMI_CEC_Ready bool                 `yaml:"-"`
}

func New

func New(config *types.ConfigFile) (result *Controller)

func (*Controller) GetInput

func (c *Controller) GetInput() (result int)

func (*Controller) GetMute

func (c *Controller) GetMute() (result bool)

func (*Controller) GetPowerStatus

func (c *Controller) GetPowerStatus() (result bool)

func (*Controller) GetVolume

func (c *Controller) GetVolume() (result int)

func (*Controller) MuteOff

func (c *Controller) MuteOff()

func (*Controller) MuteOn

func (c *Controller) MuteOn()

func (*Controller) PowerOff

func (c *Controller) PowerOff()

func (*Controller) PowerOn

func (c *Controller) PowerOn()

func (*Controller) Prepare

func (c *Controller) Prepare()

func (*Controller) QuickResetVideo added in v1.0.5

func (c *Controller) QuickResetVideo()

func (*Controller) Reset

func (c *Controller) Reset()

func (*Controller) ResetVideo

func (c *Controller) ResetVideo()

func (*Controller) SetInput

func (c *Controller) SetInput(hdmi_input int)

func (*Controller) SetVolume

func (c *Controller) SetVolume(volume_level int)

func (*Controller) Status

func (c *Controller) Status() (result Status)

func (*Controller) WakeOnLAN

func (c *Controller) WakeOnLAN()

type Status

type Status struct {
	Volume        int    `json:"volume"`
	Power         bool   `json:"power"`
	HDMIInput     int    `json:"hdmi_input"`
	HDMIVendor    string `json:"hdmi_vendor"`
	HDMIOSDString string `json:"hdmi_osd_string"`
	HDMIPower     bool   `json:"hdmi_power"`
}

Jump to

Keyboard shortcuts

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