addons

package
v0.0.0-...-8b1cf7b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexColor

func HexColor(hex string) color.RGBA

func ReadComment

func ReadComment() string

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) SetBrightnessLevel

func (a *Brightness) SetBrightnessLevel(level int)

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
	ClockSpeeds  [32]float64

	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, speed float64)

func (*Clock) Init

func (c *Clock) Init()

func (*Clock) Reset

func (c *Clock) Reset()

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 {
	ButtonIndex        int
	PublishTopic       string
	NextPublishPayload string
	// contains filtered or unexported fields
}

func (*MqttAction) Pressed

func (mq *MqttAction) Pressed(btn streamdeck.Button)

type MqttListenAction

type MqttListenAction struct {
	Topic           string  `mapstructure:"topic"`
	Value           string  `mapstructure:"value"`
	Type            string  `mapstructure:"type"`
	BrightnessLevel *int    `mapstructure:"brightnessLevel"`
	State           *string `mapstructure:"state"`
	ButtonId        *string `mapstructure:"buttonId"`
}

type MqttPublishAction

type MqttPublishAction struct {
	PublishTopic       string
	PublishPayload     string
	ActiveStateColor   string
	InactiveStateColor string
}

type MqttSubscription

type MqttSubscription struct {
	Topic string `mapstructure:"topic"`
}

type MqttThing

type MqttThing struct {
	SD         *streamdeck.StreamDeck
	Brightness *Brightness

	Active                  [32]bool
	Ids                     [32]string
	Names                   [32]string
	PublishTopics           [32]string
	ActivePublishPayloads   [32]string
	InactivePublishPayloads [32]string
	ActiveStateColors       [32]string
	InactiveStateColors     [32]string
	// contains filtered or unexported fields
}

func (*MqttThing) AddMqttButton

func (p *MqttThing) AddMqttButton(offset int, arguments map[string]string)

func (*MqttThing) Init

func (p *MqttThing) Init()

func (*MqttThing) Reset

func (p *MqttThing) Reset()

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 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
⌂ 换网址