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 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"` }
Click to show internal directories.
Click to hide internal directories.