Skip to content

A simple octoprint status client written in go

License

Notifications You must be signed in to change notification settings

toke/octostatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Octostatus

A very basic Octoprint status display

Installation

go get github.com/toke/octostatus/octostatus
go install github.com/toke/octostatus/octostatus

Usage

Usage: Just create a config (see example) and run octostatus. Currently no command line switches are available.

The output can be configured by changing the template in the configuration.

Examples

Example Config $HOME/.config/octoclient/config.yml

---

name: "Octoprint client config"
version: 1
printer:
  default:
    baseUrl: http://octoprint.local
    apiKey: SECRETSTUFF
output:
  default:
    template: "{{.State}} {{.JobDetail.File.Name}} {{printf \"%.01f\" .Progress.Completion }}% ({{ .Progress.PrintTimeLeftString }})"

Example output:

> /home/toke/bin/octostatus                                          
Printing 1_Z_Motor_Mount_Right_5mm.gcode 37.2% (3h39m8s)

About

A simple octoprint status client written in go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages