atlona

package module
Version: v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

README

atlona-driver

This driver is used to control the Atlona Video Switchers

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config zap.Config

Config is the logger config used for P

P is a plain zap logger

Functions

This section is empty.

Types

type AVSettings added in v1.2.0

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 added in v1.5.0

type Amp60 struct {
	Username string
	Password string
	Address  string
}

Amp60 represents an Atlona 60 watt amplifier

func (*Amp60) GetInfo added in v1.5.0

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

GetInfo gets the current amp status

func (*Amp60) GetMutes added in v1.5.4

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

GetMutedByBlock gets the current muted status

func (*Amp60) GetVolumes added in v1.5.4

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

GetVolumeByBlock gets the current volume

func (*Amp60) SetMute added in v1.5.4

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

SetMutedByBlock sets the current muted status on the amp

func (*Amp60) SetVolume added in v1.5.4

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

SetVolumeByBlock sets the volume on the amp

type AmpAudio added in v1.5.0

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 added in v1.5.0

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 added in v1.2.1

type AtlonaVideoSwitcher2x1 struct {
	Username string
	Password string
	Address  string
}

func (*AtlonaVideoSwitcher2x1) GetAudioVideoInputs added in v1.5.4

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

GetAudioVideoInputs .

func (*AtlonaVideoSwitcher2x1) GetHardwareInfo added in v1.2.1

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

GetHardwareInfo .

func (*AtlonaVideoSwitcher2x1) GetInfo added in v1.2.1

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

GetInfo .

func (*AtlonaVideoSwitcher2x1) SetAudioVideoInput added in v1.5.4

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

SetAudioVideoInput .

type AtlonaVideoSwitcher4x1 added in v1.2.1

type AtlonaVideoSwitcher4x1 struct {
	Username string
	Password string
	Address  string
}

func (*AtlonaVideoSwitcher4x1) GetAudioVideoInputs added in v1.5.4

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

GetAudioVideoInputs returns the current input

func (*AtlonaVideoSwitcher4x1) GetHardwareInfo added in v1.2.1

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

GetHardwareInfo returns a hardware info struct

func (*AtlonaVideoSwitcher4x1) GetInfo added in v1.2.1

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

GetInfo .

func (*AtlonaVideoSwitcher4x1) SetAudioVideoInput added in v1.5.4

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

SetAudioVideoInput changes the input on the given output to input

type AtlonaVideoSwitcher5x1 added in v1.2.1

type AtlonaVideoSwitcher5x1 struct {
	Username string
	Password string
	Address  string

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

func (*AtlonaVideoSwitcher5x1) GetAudioVideoInputs added in v1.5.4

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

GetAudioVideoInputs .

func (*AtlonaVideoSwitcher5x1) GetHardwareInfo added in v1.2.1

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

GetHardwareInfo .

func (*AtlonaVideoSwitcher5x1) GetInfo added in v1.2.1

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

GetInfo .

func (*AtlonaVideoSwitcher5x1) GetMutes added in v1.5.4

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

GetMutes .

func (*AtlonaVideoSwitcher5x1) GetVolumes added in v1.5.4

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

GetVolumes .

func (*AtlonaVideoSwitcher5x1) SetAudioVideoInput added in v1.5.4

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

SetAudioVideoInput .

func (*AtlonaVideoSwitcher5x1) SetMute added in v1.5.4

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

SetMute .

func (*AtlonaVideoSwitcher5x1) SetVolume added in v1.5.4

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

SetVolume .

type AtlonaVideoSwitcher6x2 added in v1.2.1

type AtlonaVideoSwitcher6x2 struct {
	Username string
	Password string
	Address  string
}

func (*AtlonaVideoSwitcher6x2) GetAudioVideoInputs added in v1.5.4

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

GetAudioVideoInputs .

func (*AtlonaVideoSwitcher6x2) GetHardwareInfo added in v1.2.1

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

GetHardwareInfo .

func (*AtlonaVideoSwitcher6x2) GetInfo added in v1.2.1

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

GetInfo .

func (*AtlonaVideoSwitcher6x2) GetMutes added in v1.5.4

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

GetMutes .

func (*AtlonaVideoSwitcher6x2) GetVolumes added in v1.5.4

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

GetVolumes .

func (*AtlonaVideoSwitcher6x2) SetAudioVideoInput added in v1.5.4

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

SetAudioVideoInput .

func (*AtlonaVideoSwitcher6x2) SetMute added in v1.5.4

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

SetMute .

func (*AtlonaVideoSwitcher6x2) SetVolume added in v1.5.4

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

SetVolume .

type Info added in v1.2.0

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 added in v1.2.0

type SystemSettings struct {
}

SystemSettings .

Jump to

Keyboard shortcuts

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