cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrusaLGTM struct {
	PrintImage        printImage               `cmd:"print-image" help:"Print images from a camera to stdout."`
	FailureDetect     failureDetectCommand     `cmd:"failure-detect" help:"Detect failures in the print images."`
	GenerateTimelapse generateTimelapseCommand `cmd:"generate-timelapse" help:"Generate a timelapse video from the print images."`

	PrometheusPort int `kong:"help='The port to expose Prometheus metrics on.',default='8366',name='prometheus-port'"`
}

Functions

This section is empty.

Types

type ImageSize

type ImageSize int
const (
	ImageSize_1080p ImageSize = 1080
	ImageSize_720p  ImageSize = 720
	ImageSize_480p  ImageSize = 480
	ImageSize_360p  ImageSize = 360
	ImageSize_240p  ImageSize = 240
)

type PrintConfig

type PrintConfig struct {
	MaxLogSize   int       `` /* 132-byte string literal not displayed */
	MaxImageSize ImageSize `` /* 128-byte string literal not displayed */

	// Need to migrate to a proper config file at this point. But delaying it with a hack. The auth is using http digest, but here I am specifying basic auth, and then changing it later.
	PrusaLinkURL *url.URL `` /* 145-byte string literal not displayed */

	// Add ML API support.
	MLAPIURL string `kong:"help='EXPERIMENTAL: The URL to the ML API to detect failures.',optional,name='ml-api-url'"`
}

type Status

type Status struct {
	Job struct {
		ID            int     `json:"id"`
		Progress      float64 `json:"progress"`
		TimeRemaining int     `json:"time_remaining"`
		TimePrinting  int     `json:"time_printing"`
	} `json:"job"`
	Storage struct {
		Path     string `json:"path"`
		Name     string `json:"name"`
		ReadOnly bool   `json:"read_only"`
	} `json:"storage"`
	Printer struct {
		State        string  `json:"state"`
		TempBed      float64 `json:"temp_bed"`
		TargetBed    float64 `json:"target_bed"`
		TempNozzle   float64 `json:"temp_nozzle"`
		TargetNozzle float64 `json:"target_nozzle"`
		AxisZ        float64 `json:"axis_z"`
		Flow         float64 `json:"flow"`
		Speed        float64 `json:"speed"`
		FanHotend    float64 `json:"fan_hotend"`
		FanPrint     float64 `json:"fan_print"`
	} `json:"printer"`
}

Jump to

Keyboard shortcuts

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