Back to godoc.org
github.com/byuoitav/atlona-driver

Package atlona

v1.5.8
Latest Go to latest

The highest tagged major version is .

Published: Oct 16, 2020 | License: Apache-2.0 | Module: github.com/byuoitav/atlona-driver

Index

Variables

var Config zap.Config

Config is the logger config used for P

var Log *zap.SugaredLogger

P is a plain zap logger

type AVSettings

type AVSettings struct {
	HDMIInputAudioBreakout int   `json:"ARC"`
	HDCPSettings           []int `json:"HDCPSet"`
	AudioOutput            int   `json:"HDMIAud"`
	Toslink                int   `json:"Toslink"`
	AutoSwitch             int   `json:"asw"`
	Input                  int   `json:"inp"`
	LoggedIn               int   `json:"login_ur"`
}

AVSettings is the response from the switcher for the av settings page

type Amp60

type Amp60 struct {
	Username string
	Password string
	Address  string
}

Amp60 represents an Atlona 60 watt amplifier

func (*Amp60) GetInfo

func (a *Amp60) GetInfo(ctx context.Context) (interface{}, error)

GetInfo gets the current amp status

func (*Amp60) GetMutes

func (a *Amp60) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)

GetMutedByBlock gets the current muted status

func (*Amp60) GetVolumes

func (a *Amp60) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)

GetVolumeByBlock gets the current volume

func (*Amp60) SetMute

func (a *Amp60) SetMute(ctx context.Context, block string, muted bool) error

SetMutedByBlock sets the current muted status on the amp

func (*Amp60) SetVolume

func (a *Amp60) SetVolume(ctx context.Context, block string, volume int) error

SetVolumeByBlock sets the volume on the amp

type AmpAudio

type AmpAudio struct {
	Volume string `json:"608,omitempty"`
	Muted  string `json:"609,omitempty"`
}

AmpAudio represents an audio response from an Atlona 60 watt amp

type AmpStatus

type AmpStatus struct {
	Model         string `json:"101"`
	Firmware      string `json:"102"`
	MACAddress    string `json:"103"`
	SerialNumber  string `json:"104"`
	OperatingTime string `json:"105"`
}

AmpStatus represents the current amp status

type AtlonaVideoSwitcher2x1

type AtlonaVideoSwitcher2x1 struct {
	Username string
	Password string
	Address  string
}

func (*AtlonaVideoSwitcher2x1) GetAudioVideoInputs

func (vs *AtlonaVideoSwitcher2x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)

GetAudioVideoInputs .

func (*AtlonaVideoSwitcher2x1) GetHardwareInfo

func (vs *AtlonaVideoSwitcher2x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)

GetHardwareInfo .

func (*AtlonaVideoSwitcher2x1) GetInfo

func (vs *AtlonaVideoSwitcher2x1) GetInfo(ctx context.Context) (interface{}, error)

GetInfo .

func (*AtlonaVideoSwitcher2x1) SetAudioVideoInput

func (vs *AtlonaVideoSwitcher2x1) SetAudioVideoInput(ctx context.Context, output, input string) error

SetAudioVideoInput .

type AtlonaVideoSwitcher4x1

type AtlonaVideoSwitcher4x1 struct {
	Username string
	Password string
	Address  string
}

func (*AtlonaVideoSwitcher4x1) GetAudioVideoInputs

func (vs *AtlonaVideoSwitcher4x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)

GetAudioVideoInputs returns the current input

func (*AtlonaVideoSwitcher4x1) GetHardwareInfo

func (vs *AtlonaVideoSwitcher4x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)

GetHardwareInfo returns a hardware info struct

func (*AtlonaVideoSwitcher4x1) GetInfo

func (vs *AtlonaVideoSwitcher4x1) GetInfo(ctx context.Context) (interface{}, error)

GetInfo .

func (*AtlonaVideoSwitcher4x1) SetAudioVideoInput

func (vs *AtlonaVideoSwitcher4x1) SetAudioVideoInput(ctx context.Context, output, input string) error

SetAudioVideoInput changes the input on the given output to input

type AtlonaVideoSwitcher5x1

type AtlonaVideoSwitcher5x1 struct {
	Username string
	Password string
	Address  string

	Logger wspool.Logger
	// contains filtered or unexported fields
}

func (*AtlonaVideoSwitcher5x1) GetAudioVideoInputs

func (vs *AtlonaVideoSwitcher5x1) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)

GetAudioVideoInputs .

func (*AtlonaVideoSwitcher5x1) GetHardwareInfo

func (vs *AtlonaVideoSwitcher5x1) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)

GetHardwareInfo .

func (*AtlonaVideoSwitcher5x1) GetInfo

func (vs *AtlonaVideoSwitcher5x1) GetInfo(ctx context.Context) (interface{}, error)

GetInfo .

func (*AtlonaVideoSwitcher5x1) GetMutes

func (vs *AtlonaVideoSwitcher5x1) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)

GetMutes .

func (*AtlonaVideoSwitcher5x1) GetVolumes

func (vs *AtlonaVideoSwitcher5x1) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)

GetVolumes .

func (*AtlonaVideoSwitcher5x1) SetAudioVideoInput

func (vs *AtlonaVideoSwitcher5x1) SetAudioVideoInput(ctx context.Context, output, input string) error

SetAudioVideoInput .

func (*AtlonaVideoSwitcher5x1) SetMute

func (vs *AtlonaVideoSwitcher5x1) SetMute(ctx context.Context, output string, muted bool) error

SetMute .

func (*AtlonaVideoSwitcher5x1) SetVolume

func (vs *AtlonaVideoSwitcher5x1) SetVolume(ctx context.Context, output string, level int) error

SetVolume .

type AtlonaVideoSwitcher6x2

type AtlonaVideoSwitcher6x2 struct {
	Username string
	Password string
	Address  string
}

func (*AtlonaVideoSwitcher6x2) GetAudioVideoInputs

func (vs *AtlonaVideoSwitcher6x2) GetAudioVideoInputs(ctx context.Context) (map[string]string, error)

GetAudioVideoInputs .

func (*AtlonaVideoSwitcher6x2) GetHardwareInfo

func (vs *AtlonaVideoSwitcher6x2) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)

GetHardwareInfo .

func (*AtlonaVideoSwitcher6x2) GetInfo

func (vs *AtlonaVideoSwitcher6x2) GetInfo(ctx context.Context) (interface{}, error)

GetInfo .

func (*AtlonaVideoSwitcher6x2) GetMutes

func (vs *AtlonaVideoSwitcher6x2) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)

GetMutes .

func (*AtlonaVideoSwitcher6x2) GetVolumes

func (vs *AtlonaVideoSwitcher6x2) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)

GetVolumes .

func (*AtlonaVideoSwitcher6x2) SetAudioVideoInput

func (vs *AtlonaVideoSwitcher6x2) SetAudioVideoInput(ctx context.Context, output, input string) error

SetAudioVideoInput .

func (*AtlonaVideoSwitcher6x2) SetMute

func (vs *AtlonaVideoSwitcher6x2) SetMute(ctx context.Context, output string, muted bool) error

SetMute .

func (*AtlonaVideoSwitcher6x2) SetVolume

func (vs *AtlonaVideoSwitcher6x2) SetVolume(ctx context.Context, output string, level int) error

SetVolume .

type Info

type Info struct {
	SystemInfo []string      `json:"info_val1"`
	VideoInfo  []interface{} `json:"info_val2"`
	LoggedIn   int           `json:"login_ur"`
}

Info is the response from the switcher for the info page

type SystemSettings

type SystemSettings struct {
}

SystemSettings .

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier