Documentation ¶
Index ¶
- Constants
- Variables
- type DenonAVR
- func (d *DenonAVR) AddHandleEntityChangeFunc(attribute string, f func(interface{}))
- func (d *DenonAVR) CursorControl(cursorControl DenonCursorControl) int
- func (d *DenonAVR) GetAttribute(name string) (interface{}, error)
- func (d *DenonAVR) GetSoundModeList() []string
- func (d *DenonAVR) GetSurroundMode(zone DenonZone) string
- func (d *DenonAVR) GetZoneInputFuncList(zone DenonZone) map[string]string
- func (d *DenonAVR) IsOn() bool
- func (d *DenonAVR) MainZoneMute() error
- func (d *DenonAVR) MainZoneMuteToggle() error
- func (d *DenonAVR) MainZoneMuted() bool
- func (d *DenonAVR) MainZoneUnMute() error
- func (d *DenonAVR) Pause() int
- func (d *DenonAVR) Play() int
- func (d *DenonAVR) SetAttribute(name string, value interface{})
- func (d *DenonAVR) SetMoni1Out() error
- func (d *DenonAVR) SetMoni2Out() error
- func (d *DenonAVR) SetMoniAutoOut() error
- func (d *DenonAVR) SetSelectSourceMainZone(source string) int
- func (d *DenonAVR) SetSoundModeMainZone(mode string) int
- func (d *DenonAVR) SetVolume(volume float64) error
- func (d *DenonAVR) SetVolumeDown() error
- func (d *DenonAVR) SetVolumeUp() error
- func (d *DenonAVR) StartListenLoop() error
- func (d *DenonAVR) StopListenLoop()
- func (d *DenonAVR) TogglePower() error
- func (d *DenonAVR) TurnOff() error
- func (d *DenonAVR) TurnOn() error
- type DenonCommand
- type DenonCursorControl
- type DenonNetAudioStatus
- type DenonXML
- type DenonZone
- type DenonZoneStatus
- type TelnetEvent
- type ValueLists
Constants ¶
View Source
const ( STATUS_URL string = "/goform/formMainZone_MainZoneXmlStatus.xml" STATUS_Z2_URL string = "/goform/formZone2_Zone2XmlStatus.xml" STATUS_Z3_URL string = "/goform/formZone3_Zone3XmlStatus.xml" MAINZONE_URL string = "/goform/formMainZone_MainZoneXml.xml" COMMAND_URL string = "/goform/formiPhoneAppDirect.xml" NET_AUDIO_STATUR_URL string = "/goform/formNetAudio_StatusXml.xml" )
View Source
const ALL_ZONE_STEREO = "ALL ZONE STEREO"
Sound modes
Variables ¶
View Source
var CHANGE_INPUT_MAPPING = map[string]string{
"Favorites": "FAVORITES",
"Flickr": "FLICKR",
"Internet Radio": "IRADIO",
"Media Server": "SERVER",
"Online Music": "NET",
"Spotify": "SPOTIFY",
}
View Source
var HDTUNER_SOURCES = []string{
"HD Radio",
"HDRADIO",
}
View Source
var NETAUDIO_SOURCES = []string{
"AirPlay",
"Online Music",
"Media Server",
"iPod/USB",
"Bluetooth",
"Internet Radio",
"Favorites",
"SpotifyConnect",
"Flickr",
"NET/USB",
"Music Server",
"NETWORK",
"NET",
}
View Source
var PLAYING_SOURCES = append(append(append(NETAUDIO_SOURCES, NETAUDIO_SOURCES...), TUNER_SOURCES...), HDTUNER_SOURCES...)
View Source
var SOUND_MODE_MAPPING = map[string][]string{ "MUSIC": { "PLII MUSIC", "DTS NEO:6 MUSIC", "DTS NEO:6 M", "DTS NEO:X M", "DOLBY D +NEO:X M", "DTS NEO:X MUSIC", "DOLBY PL2 MUSIC", "DOLBY PL2 M", "PLIIX MUSIC", "DOLBY PL2 X MUSIC", }, "MOVIE": { "PLII MOVIE", "PLII CINEMA", "DTS NEO:X CINEMA", "DTS NEO:X C", "DTS NEO:6 CINEMA", "DTS NEO:6 C", "DOLBY D +NEO:X C", "PLIIX CINEMA", "DOLBY PLII MOVIE", "MULTI IN + VIRTUAL:X", "DOLBY PL2 CINEMA", "DOLBY PL2 C", "DOLBY PL2 X MOVIE", }, "GAME": { "PLII GAME", "DOLBY D +NEO:X G", "DOLBY PL2 GAME", "DOLBY PL2 G", "DOLBY PL2 X GAME", }, "AUTO": {"None"}, "STANDARD": {"None2"}, "VIRTUAL": {"VIRTUAL"}, "MATRIX": {"MATRIX"}, "ROCK ARENA": {"ROCK ARENA"}, "JAZZ CLUB": {"JAZZ CLUB"}, "VIDEO GAME": {"VIDEO GAME"}, "MONO MOVIE": {"MONO MOVIE"}, "DIRECT": {"DIRECT"}, "PURE DIRECT": {"PURE_DIRECT", "PURE DIRECT"}, "DOLBY DIGITAL": { "DOLBY DIGITAL", "DOLBY D + DOLBY SURROUND", "DOLBY D+DS", "DOLBY DIGITAL +", "STANDARD(DOLBY)", "DOLBY SURROUND", "DOLBY D + +DOLBY SURROUND", "NEURAL", "DOLBY HD", "DOLBY HD + DOLBY SURROUND", "MULTI IN + DSUR", "MULTI IN + NEURAL:X", "MULTI IN + DOLBY SURROUND", "DOLBY D + NEURAL:X", "DOLBY DIGITAL + NEURAL:X", "DOLBY DIGITAL + + NEURAL:X", "DOLBY ATMOS", "DOLBY AUDIO - DOLBY SURROUND", "DOLBY TRUEHD", "DOLBY AUDIO - DOLBY DIGITAL PLUS", "DOLBY AUDIO - TRUEHD + DSUR", "DOLBY AUDIO - DOLBY TRUEHD", "DOLBY AUDIO - TRUEHD + NEURAL:X", "DOLBY AUDIO - DD + DSUR", "DOLBY AUDIO - DD+ + NEURAL:X", "DOLBY AUDIO - DD+ + DSUR", "DOLBY AUDIO - DOLBY DIGITAL", "DOLBY AUDIO-DSUR", "DOLBY AUDIO-DD+DSUR", }, "DTS SURROUND": { "DTS SURROUND", "DTS NEURAL:X", "STANDARD(DTS)", "DTS + NEURAL:X", "MULTI CH IN", "DTS-HD MSTR", "DTS VIRTUAL:X", "DTS-HD + NEURAL:X", "DTS-HD", "DTS + VIRTUAL:X", "DTS + DOLBY SURROUND", "DTS-HD + DOLBY SURROUND", "DTS-HD + DSUR", "DTS:X MSTR", }, "AURO3D": {"AURO-3D"}, "AURO2DSURR": {"AURO-2D SURROUND"}, "MCH STEREO": { "MULTI CH STEREO", "MULTI_CH_STEREO", "MCH STEREO", "MULTI CH IN 7.1", }, "STEREO": {"STEREO"}, ALL_ZONE_STEREO: {"ALL ZONE STEREO"}, }
View Source
var SOURCE_MAPPING = map[string]string{
"TV AUDIO": "TV",
"iPod/USB": "USB/IPOD",
"Bluetooth": "BT",
"Blu-ray": "BD",
"CBL/SAT": "SAT/CBL",
"NETWORK": "NET",
"Media Player": "MPLAY",
"AUX": "AUX1",
"Tuner": "TUNER",
"FM": "TUNER",
"SpotifyConnect": "Spotify Connect",
}
View Source
var TELNET_MAPPING = map[string]string{
"FAVORITES": "Favorites",
"FLICKR": "Flickr",
"IRADIO": "Internet Radio",
"IRP": "Internet Radio",
"SERVER": "Media Server",
"SPOTIFY": "Spotify",
}
View Source
var TELNET_SOURCES = []string{
"CD",
"PHONO",
"TUNER",
"DVD",
"BD",
"TV",
"SAT/CBL",
"MPLAY",
"GAME",
"HDRADIO",
"NET",
"PANDORA",
"SIRIUSXM",
"SOURCE",
"LASTFM",
"FLICKR",
"IRADIO",
"IRP",
"SERVER",
"FAVORITES",
"AUX1",
"AUX2",
"AUX3",
"AUX4",
"AUX5",
"AUX6",
"AUX7",
"BT",
"USB/IPOD",
"USB DIRECT",
"IPOD DIRECT",
}
View Source
var TUNER_SOURCES = []string{
"Tuner",
"TUNER",
}
Functions ¶
This section is empty.
Types ¶
type DenonAVR ¶
type DenonAVR struct { Host string // contains filtered or unexported fields }
func NewDenonAVR ¶
func (*DenonAVR) AddHandleEntityChangeFunc ¶
Add a new function that is called when a attribute of this entity has changed
func (*DenonAVR) CursorControl ¶
func (d *DenonAVR) CursorControl(cursorControl DenonCursorControl) int
func (*DenonAVR) GetAttribute ¶
func (*DenonAVR) GetSoundModeList ¶
func (*DenonAVR) GetSurroundMode ¶
func (*DenonAVR) GetZoneInputFuncList ¶
func (*DenonAVR) MainZoneMute ¶
func (*DenonAVR) MainZoneMuteToggle ¶
func (*DenonAVR) MainZoneMuted ¶
func (*DenonAVR) MainZoneUnMute ¶
func (*DenonAVR) SetAttribute ¶
Set an attribute and call entity Change function if changed
func (*DenonAVR) SetMoni1Out ¶
func (*DenonAVR) SetMoni2Out ¶
func (*DenonAVR) SetMoniAutoOut ¶
func (*DenonAVR) SetSelectSourceMainZone ¶
func (*DenonAVR) SetSoundModeMainZone ¶
func (*DenonAVR) SetVolumeDown ¶
func (*DenonAVR) SetVolumeUp ¶
func (*DenonAVR) StartListenLoop ¶
func (*DenonAVR) StopListenLoop ¶ added in v0.2.8
func (d *DenonAVR) StopListenLoop()
func (*DenonAVR) TogglePower ¶
type DenonCommand ¶
type DenonCommand string
const ( DenonCommandPower DenonCommand = "PW" DennonCommandZoneMain DenonCommand = "ZM" DenonCommandMainZoneVolume DenonCommand = "MV" DenonCommandMainZoneMute DenonCommand = "MU" DenonCommandSelectInput DenonCommand = "SI" DenonCommandCursorControl DenonCommand = "MN" DenonCommandNS DenonCommand = "NS" DenonCommandMS DenonCommand = "MS" DenonCommandVS DenonCommand = "VS" DenonCommandZone2 DenonCommand = "Z2" DenonCommandZone3 DenonCommand = "Z3" )
type DenonCursorControl ¶
type DenonCursorControl string
const ( DenonCursorControlUp DenonCursorControl = "CUP" DenonCursorControlDown DenonCursorControl = "CDN" DenonCursorControlLeft DenonCursorControl = "CLT" DenonCursorControlRight DenonCursorControl = "CRT" DenonCursorControlEnter DenonCursorControl = "ENT" DenonCursorControlReturn DenonCursorControl = "RTN" DenonCursorControlMenu DenonCursorControl = "MEN ON" )
type DenonNetAudioStatus ¶
type DenonXML ¶
type DenonXML struct { XMLName xml.Name `xml:"item"` FriendlyName string `xml:"FriendlyName>value"` Power string `xml:"Power>value"` ZonePower string `xml:"ZonePower>value"` RenameZone string `xml:"RenameZone>value"` TopMenuLink string `xml:"TopMenuLink>value"` VideoSelectDisp string `xml:"VideoSelectDisp>value"` VideoSelect string `xml:"VideoSelect>value"` VideoSelectOnOff string `xml:"VideoSelectOnOff>value"` VideoSelectList []ValueLists `xml:"VideoSelectLists>value"` ECOModeDisp string `xml:"ECOModeDisp>value"` ECOMode string `xml:"ECOMode>value"` ECOModeList []ValueLists `xml:"ECOModeLists>value"` AddSourceDisplay string `xml:"AddSourceDisplay>value"` ModelId string `xml:"ModelId>value"` BrandId string `xml:"BrandId>value"` SalesArea string `xml:"SalesArea>value"` InputFuncSelect string `xml:"InputFuncSelect>value"` NetFuncSelect string `xml:"NetFuncSelect>value"` SelectSurround string `xml:"selectSurround>value"` VolumeDisplay string `xml:"VolumeDisplay>value"` MasterVolume string `xml:"MasterVolume>value"` Mute string `xml:"Mute>value"` }
type DenonZoneStatus ¶
type DenonZoneStatus struct { XMLName xml.Name `xml:"item"` Zone string `xml:"Zone>value"` Power string `xml:"Power>value"` InputFuncList []string `xml:"InputFuncList>value"` RenameSource []string `xml:"RenameSource>value>value"` SourceDelete []string `xml:"SourceDelete>value"` InputFuncSelect string `xml:"InputFuncSelect>value"` VolumeDisplay string `xml:"VolumeDisplay>value"` RestorerMode string `xml:"RestorerMode>value"` SurrMode string `xml:"SurrMode>value"` MasterVolume string `xml:"MasterVolume>value"` Mute string `xml:"Mute>value"` Model string `xml:"Model>value"` }
type TelnetEvent ¶
type ValueLists ¶
Click to show internal directories.
Click to hide internal directories.