elgato

package
v0.0.0-...-1031a82 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort     = 9123
	LightEndpoint   = "http://%s:%d/elgato/lights"
	ContentTypeJSON = "application/json"
)
View Source
const (
	MDNSService   = "_elg._tcp"
	NameRingLight = "Elgato Ring Light"
)

Variables

This section is empty.

Functions

func UpdateLightOptions

func UpdateLightOptions(address string, port uint16, lights *Lights) error

Types

type Device

type Device struct {
	Name string
	IP   net.IP
	Port uint16
}

func FindDevices

func FindDevices(searchStr string) ([]Device, error)

type LightOptions

type LightOptions struct {
	On          uint8  `json:"on"`
	Brightness  uint8  `json:"brightness"`
	Temperature uint16 `json:"temperature"`
}

func (*LightOptions) Toggle

func (lo *LightOptions) Toggle()

type Lights

type Lights struct {
	NumberOfLights uint8          `json:"numberOfLights"`
	Lights         []LightOptions `json:"lights"`
}

func GetLightInfo

func GetLightInfo(address string, port uint16) (*Lights, error)

func (*Lights) Toggle

func (l *Lights) Toggle()

Jump to

Keyboard shortcuts

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