jasiek / OctoPrint-Cost

Cost-estimation plugin for OctoPrint
10 stars 12 forks source link

GCODE from Simplify3D always shows cost as $0.00 #18

Open beercity opened 6 years ago

beercity commented 6 years ago

I just got Simply3D and it is pretty great. However any GCODE uploaded to Octoprint shows $0.00 as cost. I went back to Cura and uploaded a new GCODE and the cost is accurate. But anything from S3D just shows $0.00.

The GCODE prints properly and the grams of filament required is shown right in Octoprint. But the cost is 0.

I have included a sample GCODE from S3D. Dillon_Powder_Knob-1x-s3d.gcode.txt

1n5aN1aC commented 6 years ago

Seconded.

I can also confirm that for me, the plugin estimates time correctly, but ignores all cost from length / weight.

beercity commented 6 years ago

I think we are on our own. Looks like it has been more than a year since the last update.

KenwoodFox commented 5 years ago

Oh boy

andrewvictor commented 5 years ago

Same issue. Not sure why the plugin is not parsing information from external gcode. I will say that when I slice using octoprint, the cost plugin works ever time.

KenwoodFox commented 5 years ago

Octoprint has to generate the meta for the file, let the gcode sit for some time in the bin till it generates data for it and it seems to work

beercity commented 5 years ago

Ive got ones from months ago that still wont show. And I just reinstalled Octoprint and the plugin from scratch last week, no change in behavior.

andrewvictor commented 5 years ago

Octoprint has to generate the meta for the file, let the gcode sit for some time in the bin till it generates data for it and it seems to work

Not working. I've had it loaded for several hours now. To be clear, you used external software to slice, correct?

phuonglm commented 5 years ago

temporary workaround is uncheck Cost per length or weight then input cost/meter value. printerState.filament()[0].data().volume alway return 0 for me. UPDATE: Seem this plugin not save Cost per length or weightsettings. Modify https://github.com/jasiek/OctoPrint-Cost/blob/master/octoprint_cost/static/js/cost.js#L48 and remove check_cost if to force that.