addons

package
v0.0.0-...-ca4e3c8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brightness

type Brightness struct {
	SD *streamdeck.StreamDeck

	Level int
	// contains filtered or unexported fields
}

func (*Brightness) Buttons

func (b *Brightness) Buttons(offset int, arguments map[string]string)

func (*Brightness) Init

func (b *Brightness) Init()

func (*Brightness) Update

func (b *Brightness) Update()

type BrightnessAction

type BrightnessAction struct {
	Brightness *Brightness
}

func (*BrightnessAction) Pressed

func (a *BrightnessAction) Pressed(btn streamdeck.Button)

type Caster

type Caster struct {
	SD *streamdeck.StreamDeck
}

func (*Caster) Buttons

func (c *Caster) Buttons()

func (*Caster) Init

func (c *Caster) Init()

type Clock

type Clock struct {
	SD           *streamdeck.StreamDeck
	ClockButtons [32]bool
	Hues         [32]int
	ClockNames   [32]string

	Tickers      [32]*time.Ticker
	TimersActive [32]bool
	StartTimes   [32]time.Time
	// contains filtered or unexported fields
}

func (*Clock) AddClockButton

func (c *Clock) AddClockButton(offset int, hue string, inactiveImage string)

func (*Clock) Init

func (c *Clock) Init()

func (*Clock) Reset

func (c *Clock) Reset()

type Colour

type Colour struct {
	Red   uint8 `json:"red"`
	Green uint8 `json:"green"`
	Blue  uint8 `json:"blue"`
}

type LEDColour

type LEDColour struct {
	Red   uint8 `mapstructure:"red"`
	Green uint8 `mapstructure:"green"`
	Blue  uint8 `mapstructure:"blue"`
}

Set up buttons

type Litra

type Litra struct {
	SD *streamdeck.StreamDeck

	CurrentConfig  int
	Configurations []litraConfiguration
	// contains filtered or unexported fields
}

func (*Litra) Buttons

func (l *Litra) Buttons(offset int, configurations map[string]string)

func (*Litra) Init

func (l *Litra) Init()

func (*Litra) Update

func (l *Litra) Update()

type LitraAction

type LitraAction struct {
	Litra *Litra
}

func (*LitraAction) Pressed

func (a *LitraAction) Pressed(btn streamdeck.Button)

type MQTTAction

type MQTTAction struct {
	Client mqtt.Client
	Colour color.RGBA
	// contains filtered or unexported fields
}

Lights Action handler

func (*MQTTAction) Pressed

func (action *MQTTAction) Pressed(btn streamdeck.Button)

type MqttThing

type MqttThing struct {
	SD *streamdeck.StreamDeck
	// contains filtered or unexported fields
}

func (*MqttThing) Buttons

func (p *MqttThing) Buttons()

func (*MqttThing) Init

func (p *MqttThing) Init()

type Obs

type Obs struct {
	SD *streamdeck.StreamDeck
	// contains filtered or unexported fields
}

func (*Obs) Buttons

func (o *Obs) Buttons(maxScenes int, offset int)

func (*Obs) ClearButtons

func (o *Obs) ClearButtons()

func (*Obs) ConnectOBS

func (o *Obs) ConnectOBS()

func (*Obs) ObsEventHandlers

func (o *Obs) ObsEventHandlers()

func (*Obs) SetRecordButton

func (o *Obs) SetRecordButton(index int, image string, unmuteSource string)

func (*Obs) SetStreamButton

func (o *Obs) SetStreamButton(index int, image string, unmuteSource string)

func (*Obs) SetToggleMuteButton

func (o *Obs) SetToggleMuteButton(index int, source string, imageOn string, imageOff string)

type ObsScene

type ObsScene struct {
	Name     string `mapstructure:"name"`
	Image    string `mapstructure:"image"`
	ButtonId int
}

func (*ObsScene) SetButtonId

func (scene *ObsScene) SetButtonId(id int)

type PlugAction

type PlugAction struct {
	Client   mqtt.Client
	Device   string
	State    int
	ImageOn  string
	ImageOff string
}

Button action handler

func (*PlugAction) Pressed

func (action *PlugAction) Pressed(btn streamdeck.Button)

type PlugDevice

type PlugDevice struct {
	Name     string `mapstructure:"name"`
	ButtonId int    `mapstructure:"button"`
	ImageOn  string `mapstructure:"image_on"`
	ImageOff string `mapstructure:"image_off"`
}

type Screenshot

type Screenshot struct {
	SD *streamdeck.StreamDeck
}

func (*Screenshot) Buttons

func (s *Screenshot) Buttons()

func (*Screenshot) Init

func (s *Screenshot) Init()

type TimerAction

type TimerAction struct {
	StartTime   time.Time
	Clock       *Clock
	ButtonIndex int
}

func (*TimerAction) Pressed

func (t *TimerAction) Pressed(btn streamdeck.Button)

type Twitch

type Twitch struct {
	SD *streamdeck.StreamDeck
	// contains filtered or unexported fields
}

func (*Twitch) Buttons

func (t *Twitch) Buttons()

func (*Twitch) Init

func (t *Twitch) Init()

type TwitchAction

type TwitchAction struct {
	Client helix.Client
	Action string
}

func (*TwitchAction) Pressed

func (action *TwitchAction) Pressed(btn streamdeck.Button)

type WindowMgmt

type WindowMgmt struct {
	SD *streamdeck.StreamDeck
}

func (*WindowMgmt) Buttons

func (s *WindowMgmt) Buttons()

func (*WindowMgmt) Init

func (s *WindowMgmt) Init()

Jump to

Keyboard shortcuts

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