OllisGit / OctoPrint-CostEstimation

OctoPrint plugin to display the estimated print cost for the loaded model
GNU Affero General Public License v3.0
23 stars 6 forks source link

No cost estimation when printing from Cura #9

Closed mesiq closed 2 years ago

mesiq commented 3 years ago

When I'm printing directly from Cura with OctoPrint plugin, I have message no filament from meta in Cost: field.

I'm using newest version of CostEstimation with SpoolManager (same issue was with FilamentManager plugin). Should I configure Cura to pass any values or is it possible plugin will take data based on currently selected filament from SpoolManager?

Note: CostEstimation works perfectly when initiating print from OctoPrint.

OllisGit commented 3 years ago

Hi @mesiq ,

the message appears if OctoPrint is not able to detect the filament-properties like length, volumne. After sending the file from cure to op, is the print automatically started or do you press the print button on octoprint-side?

My current assumption is, that the API (with cura) use doesn't fire the event for calculating the meta data..

Jorael57 commented 3 years ago

Hi here, Same Issue from PrusaSlicer with start print from the slicer.

mcmillanb commented 3 years ago

Not sure if it helps, but if you change the settings in Filament Manager and check the box for 'Show dialog to confirm selected spools before starting/resuming the print job' every job prompts you to select which spool you are using and then it works. Direct from Cura doesn't. But I don't know how Cura would know what meta data to send to select the right spool

mesiq commented 3 years ago

Thanks @OllisGit for picking up.

Sure Vita's API doesn't pass any data for filament. I was wondering if there is possibility to pass needed information or to start "currently used spool" in octopeont and that would be used for all prints by default.

I'm printing directly from Cura directly. Your plugin works perfectly when printing from octoprint.

OllisGit commented 3 years ago

Hi, I looked into the sourcecode of op and the problem is, that the needed metadata is missing after a direct print start. You can find the metadata for each print in the upload folder, file called .metadata.json.

After the print is directly started from the slicer the metadata analyse is not executed, only after pressing pause or cancel.

You can test it: Start your print from cura, look into the .metadata.json file for your print job. The printjob is listed, but without analyse data (e.g. filament is needed for cost-calculation) image Stop your print and look again the analyse section was added.

I will ask the community: https://community.octoprint.org/t/metadata-analayse-not-executed-if-directly-print-from-slicer-with-autostart/34355

OllisGit commented 3 years ago

Hi,

there is a solution: You need to change the analyse-feature in the Plugin-Settings, then the costs are shown during start and not at the end of a print.

image

Please test, if it works also with your slicer, I only tested Cura.

mesiq commented 3 years ago

@OllisGit Tried that but without positive result, Octoprint still shows the same message at cost: no filament from meta

OllisGit commented 3 years ago

@mesiq and what about the analyse data in the meta-file. When is it created?

Btw. what other plugins do you use, e.g. Print Time Genius? I heard that this plugin could prevent creating the meta-data. Please try to deactivate other plugins. Maybe there is a "bad relationship".

OllisGit commented 2 years ago

closed, no feedback.

SapuSeven commented 2 years ago

In my case this was indeed caused by the PrintTimeGenious plugin. To resolve this, open PrintTimeGenious settings and enable "Enable OctoPrint's built-in analyzer (slow and unnecessary)". This allows the metadata file to be created.