imrahil / OctoPrint-PrintHistory

Plugin for OctoPrint - saves filename, print time and filament usage for each print
GNU Affero General Public License v3.0
64 stars 64 forks source link

Filament usage empty #18

Closed bastard closed 8 years ago

bastard commented 8 years ago

Most of my prints do not have a value at filament usage. Yesterday I printed the same .gcode twice. Only one of them got a value in filament usage.

I would like to add the missing values by editing the file - would you please provide me the file format and a description of the fields.

imrahil commented 8 years ago

Hi, sometimes there is no information about filament usage provided by Octoprint's core... if you want add it by yourself you have to edit history.yaml file in .octoprint/data/printhistory filament usage is described by two fields:

filamentLength: 3794.7619700000037
filamentVolume: 9.127472187915986
tedder commented 6 years ago

@imrahil, discussing on an ancient ticket rather than opening the same issue. the octoprint API has the estimated and 'consumed' filament info in the file interface.