addons

package
v0.0.0-...-249526c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxX uint8 = 60
View Source
var MaxY uint8 = 58
View Source
var Pixels = []Pix{}/* 238 elements not displayed */

Functions

func Fade

func Fade(corners LEDWallFade) (retval []color.RGBA)

Types

type Caster

type Caster struct {
	SD *streamdeck.StreamDeck
}

func (*Caster) Buttons

func (c *Caster) Buttons()

func (*Caster) Init

func (c *Caster) Init()

type LEDWallBg

type LEDWallBg struct {
	Action string `json:"action"`
	Red    uint8  `json:"r"`
	Green  uint8  `json:"g"`
	Blue   uint8  `json:"b"`
}

type LEDWallFade

type LEDWallFade struct {
	BL, TL, BR, TR color.RGBA
}

type LEDWallFirework

type LEDWallFirework struct {
	Action string `json:"action"`
	Hue    uint8  `json:"b,omitempty"`
}

type LEDWallPixel

type LEDWallPixel struct {
	Action string `json:"action"`
	Num    uint8  `json:"num"`
	Red    uint8  `json:"r"`
	Green  uint8  `json:"g"`
	Blue   uint8  `json:"b"`
}

type LEDWallSnake

type LEDWallSnake struct {
	Action  string `json:"action"`
	Enabled bool   `json:"enabled"`
}

type MQTTBgAction

type MQTTBgAction struct {
	Client  mqtt.Client
	Options LEDWallBg
	// contains filtered or unexported fields
}

func (*MQTTBgAction) Pressed

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

type MQTTClearAction

type MQTTClearAction struct {
	Client mqtt.Client
	// contains filtered or unexported fields
}

func (*MQTTClearAction) Pressed

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

type MQTTFadeAction

type MQTTFadeAction struct {
	Client mqtt.Client
	// contains filtered or unexported fields
}

func (*MQTTFadeAction) Pressed

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

type MQTTFireworkAction

type MQTTFireworkAction struct {
	Client  mqtt.Client
	Options LEDWallFirework
	// contains filtered or unexported fields
}

func (*MQTTFireworkAction) Pressed

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

type MQTTSnakeAction

type MQTTSnakeAction struct {
	Client  mqtt.Client
	Options LEDWallSnake
	// contains filtered or unexported fields
}

func (*MQTTSnakeAction) Pressed

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

type MqttThing

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

func (*MqttThing) Buttons

func (p *MqttThing) Buttons()

Set up buttons

func (*MqttThing) Init

func (p *MqttThing) Init()

type Mute

type Mute struct {
	SD        *streamdeck.StreamDeck
	Status    bool // true if muted
	Button_id int
}

func (*Mute) Buttons

func (s *Mute) Buttons()

func (*Mute) Init

func (s *Mute) Init()

type Nightbot

type Nightbot struct {
	SD           *streamdeck.StreamDeck
	AccessToken  string
	RefreshToken string
	Text         string
	ChatLines    []string
	ChatIndex    int
}

func (*Nightbot) Buttons

func (n *Nightbot) Buttons()

func (*Nightbot) Init

func (n *Nightbot) Init()

type NightbotAction

type NightbotAction struct {
	Action  string
	Bot     *Nightbot
	Scanner bufio.Scanner
}

func (*NightbotAction) Pressed

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

type NightbotAuthTokenResponse

type NightbotAuthTokenResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

type NightbotMessage

type NightbotMessage struct {
	Message string `json:"message"`
}

type OBSSceneAction

type OBSSceneAction struct {
	Client *goobs.Client
	Scene  string
	// contains filtered or unexported fields
}

func (*OBSSceneAction) Pressed

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

type Obs

type Obs struct {
	SD *streamdeck.StreamDeck

	Offset int
	// contains filtered or unexported fields
}

func (*Obs) Buttons

func (o *Obs) Buttons()

func (*Obs) ConnectOBS

func (o *Obs) ConnectOBS()

func (*Obs) Init

func (o *Obs) Init()

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 Pix

type Pix struct {
	X uint8
	Y uint8
}

type Screenshot

type Screenshot struct {
	SD *streamdeck.StreamDeck
}

func (*Screenshot) Buttons

func (s *Screenshot) Buttons()

func (*Screenshot) Init

func (s *Screenshot) Init()

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
	Twitch *Twitch
}

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