lgtv

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 9 Imported by: 0

README

LG Smart TV API

Go Report Card Build PkgGoDev

Install
go get github.com/danielpieper/lgtv-go
Credits

This package was influenced by https://github.com/StefanNemeth/PHP-LG-SmartTV

License

This project is licensed under the terms of the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LgTV

type LgTV struct {
	// contains filtered or unexported fields
}

func New

func New(baseURL string) (LgTV, error)

func (*LgTV) Authenticate

func (l *LgTV) Authenticate(pairingKey string) error

func (*LgTV) GetChannelList

func (l *LgTV) GetChannelList() ([]TVChannel, error)

func (*LgTV) GetContextUI

func (l *LgTV) GetContextUI() (string, error)

func (*LgTV) GetCurrentChannel

func (l *LgTV) GetCurrentChannel() (TVChannel, error)

func (*LgTV) GetScreen

func (l *LgTV) GetScreen() (image.Image, error)

func (*LgTV) GetVolume

func (l *LgTV) GetVolume() (TVVolume, error)

func (*LgTV) IsAuthenticated

func (l *LgTV) IsAuthenticated() bool

func (*LgTV) IsMuted

func (l *LgTV) IsMuted() (bool, error)

func (*LgTV) Key3dLr

func (l *LgTV) Key3dLr() error

func (*LgTV) Key3dVideo

func (l *LgTV) Key3dVideo() error

func (*LgTV) KeyApps

func (l *LgTV) KeyApps() error

func (*LgTV) KeyAspectRatio

func (l *LgTV) KeyAspectRatio() error

func (*LgTV) KeyAudioDescription

func (l *LgTV) KeyAudioDescription() error

func (*LgTV) KeyAvMode

func (l *LgTV) KeyAvMode() error

func (*LgTV) KeyBack

func (l *LgTV) KeyBack() error

func (*LgTV) KeyBlue

func (l *LgTV) KeyBlue() error

func (*LgTV) KeyChannelDown

func (l *LgTV) KeyChannelDown() error

func (*LgTV) KeyChannelUp

func (l *LgTV) KeyChannelUp() error

func (*LgTV) KeyDash

func (l *LgTV) KeyDash() error

func (*LgTV) KeyDown

func (l *LgTV) KeyDown() error

func (*LgTV) KeyEnergySaving

func (l *LgTV) KeyEnergySaving() error

func (*LgTV) KeyEpg

func (l *LgTV) KeyEpg() error

func (*LgTV) KeyExit

func (l *LgTV) KeyExit() error

func (*LgTV) KeyExternalInput

func (l *LgTV) KeyExternalInput() error

func (*LgTV) KeyFastForward

func (l *LgTV) KeyFastForward() error

func (*LgTV) KeyFavoriteChannel

func (l *LgTV) KeyFavoriteChannel() error

func (*LgTV) KeyGreen

func (l *LgTV) KeyGreen() error

func (*LgTV) KeyHomeMenu

func (l *LgTV) KeyHomeMenu() error

func (*LgTV) KeyLeft

func (l *LgTV) KeyLeft() error

func (*LgTV) KeyLiveTv

func (l *LgTV) KeyLiveTv() error

func (*LgTV) KeyMark

func (l *LgTV) KeyMark() error

func (*LgTV) KeyMuteToggle

func (l *LgTV) KeyMuteToggle() error

func (*LgTV) KeyNumber0

func (l *LgTV) KeyNumber0() error

func (*LgTV) KeyNumber1

func (l *LgTV) KeyNumber1() error

func (*LgTV) KeyNumber2

func (l *LgTV) KeyNumber2() error

func (*LgTV) KeyNumber3

func (l *LgTV) KeyNumber3() error

func (*LgTV) KeyNumber4

func (l *LgTV) KeyNumber4() error

func (*LgTV) KeyNumber5

func (l *LgTV) KeyNumber5() error

func (*LgTV) KeyNumber6

func (l *LgTV) KeyNumber6() error

func (*LgTV) KeyNumber7

func (l *LgTV) KeyNumber7() error

func (*LgTV) KeyNumber8

func (l *LgTV) KeyNumber8() error

func (*LgTV) KeyNumber9

func (l *LgTV) KeyNumber9() error

func (*LgTV) KeyOK

func (l *LgTV) KeyOK() error

func (*LgTV) KeyPause

func (l *LgTV) KeyPause() error

func (*LgTV) KeyPipChannelDown

func (l *LgTV) KeyPipChannelDown() error

func (*LgTV) KeyPipChannelUp

func (l *LgTV) KeyPipChannelUp() error

func (*LgTV) KeyPipSecondaryVideo

func (l *LgTV) KeyPipSecondaryVideo() error

func (*LgTV) KeyPlay

func (l *LgTV) KeyPlay() error

func (*LgTV) KeyPowerOff

func (l *LgTV) KeyPowerOff() error

func (*LgTV) KeyPreviousChannel

func (l *LgTV) KeyPreviousChannel() error

func (*LgTV) KeyProgramInformation

func (l *LgTV) KeyProgramInformation() error

func (*LgTV) KeyProgramList

func (l *LgTV) KeyProgramList() error

func (*LgTV) KeyQuickMenu

func (l *LgTV) KeyQuickMenu() error

func (*LgTV) KeyRecord

func (l *LgTV) KeyRecord() error

func (*LgTV) KeyRecordingList

func (l *LgTV) KeyRecordingList() error

func (*LgTV) KeyRed

func (l *LgTV) KeyRed() error

func (*LgTV) KeyRepeat

func (l *LgTV) KeyRepeat() error

func (*LgTV) KeyReservationProgramList

func (l *LgTV) KeyReservationProgramList() error

func (*LgTV) KeyRewind

func (l *LgTV) KeyRewind() error

func (*LgTV) KeyRight

func (l *LgTV) KeyRight() error

func (*LgTV) KeyShowSubtitle

func (l *LgTV) KeyShowSubtitle() error
func (l *LgTV) KeySimplink() error

func (*LgTV) KeySkipBackward

func (l *LgTV) KeySkipBackward() error

func (*LgTV) KeySkipForward

func (l *LgTV) KeySkipForward() error

func (*LgTV) KeyStop

func (l *LgTV) KeyStop() error

func (*LgTV) KeySwitchVideo

func (l *LgTV) KeySwitchVideo() error

func (*LgTV) KeyTeleText

func (l *LgTV) KeyTeleText() error

func (*LgTV) KeyTextOption

func (l *LgTV) KeyTextOption() error

func (*LgTV) KeyUp

func (l *LgTV) KeyUp() error

func (*LgTV) KeyVolumeDown

func (l *LgTV) KeyVolumeDown() error

func (*LgTV) KeyVolumeUp

func (l *LgTV) KeyVolumeUp() error

func (*LgTV) KeyYellow

func (l *LgTV) KeyYellow() error

func (*LgTV) MouseMove

func (l *LgTV) MouseMove(x, y int) error

func (*LgTV) RequestPairingKey

func (l *LgTV) RequestPairingKey() error

type TVChannel

type TVChannel struct {
	ChannelType  string `xml:"chtype"`
	ChannelName  string `xml:"chname"`
	SourceIndex  int    `xml:"sourceIndex"`
	PhysicalNum  int    `xml:"physicalNum"`
	Major        int    `xml:"major"`
	DisplayMajor int    `xml:"displayMajor"`
	Minor        int    `xml:"minor"`
	DisplayMinor int    `xml:"displayMinor"`
}

type TVVolume

type TVVolume struct {
	Mute     bool `xml:"mute"`
	MinLevel int  `xml:"minLevel"`
	MaxLevel int  `xml:"maxLevel"`
	Level    int  `xml:"level"`
}

Jump to

Keyboard shortcuts

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