tools

package
v0.0.0-...-be07762 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StopStreamFunc func() error
)

Functions

func CaptureFrame

func CaptureFrame() (*bytes.Buffer, error)

func GetLedBox

func GetLedBox(box appbackend.Box, device appbackend.Device) (appbackend.GetLedBox, error)

func StreamExecutable

func StreamExecutable() (string, error)

func TakePic

func TakePic() (string, error)

func USBCam

func USBCam() bool

func WaitCamAvailable

func WaitCamAvailable()

Types

type DeviceParamsResult

type DeviceParamsResult struct {
	Params map[string]interface{} `json:"params"`
}

TODO move this to api

func (DeviceParamsResult) GetInt

func (dpr DeviceParamsResult) GetInt(device appbackend.Device, key string) (int, error)

Jump to

Keyboard shortcuts

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