OllisGit / OctoPrint-SpoolManager

Plugin for managing Spools
168 stars 59 forks source link

ERROR MESSAGE when printing #218

Closed chemixt closed 2 years ago

chemixt commented 2 years ago

I recently updated to pytho 3 on my pi, and started having errors when printing coming from Spool manager (v1.5.0). Here is the message:

Screenshot 2021-11-21 211910

**" Octopi.local says: Attention: Needed filament could not calculated (Missing metadata or spool-fields) There are no spools selected for the following tools dispite them being used (maybe) by this print

I have not tried to uninstall it because I do not want to lose my data, but if i need to I can do so.

jonsag commented 2 years ago

Same message for me. Have been runnning python3 for a while, so I don't think it's related to that.

MrRexRuthless commented 2 years ago

I had the same issue, open a couple of the last used spools and rebooted the PI and everything resolved itself, also, I had a spool that I had used "more" than the spool total. Zeroed that out.

Not a fix of course but I was able to resolve the issue

chemixt commented 2 years ago

Thanks for the help. I tried editing and rebooting. I found a spool in the data that had gone negative (I am not sure if i entered the used amount correct or actually used that spool without changing it to the real one being used. But after a reboot of the Pi. I still have the same problem.

chemixt commented 2 years ago

I pushed back to the previous version [1.4.3) today, and problem went away and it seems to work fine. My problem seems to be related to an error message that indicated that no spools have been selected and there is no meta data.

OllisGit commented 2 years ago

Hi @chemixt, the hint regarding "metadata" means that OctoPrint was not able or not already provide the needed metatdata for the selected model to calculate the needed amount of filament.

Each gcode file has a corresponding metadata entry in the file <op>/uploads/.metadata.json. Looks like this:

  "3DBenchy.gcode": {
    "DisplayLayerProgress": {
      "totalLayerCountWithoutOffset": "159"
    },
    "analysis": {
      "estimatedPrintTime": 3529.315478428196,
      "printingArea": {
        "maxZ": 48.05,
        "maxX": 119.791,
        "maxY": 122.755,
        "minX": 20.0,
        "minY": 50.0,
        "minZ": 0.3
      },
      "dimensions": {
        "width": 99.791,
        "depth": 72.755,
        "height": 47.75
      },
      "filament": {
        "tool0": {
          "volume": 10.928834037976793,
          "length": 4543.68119999991
        }
      }
    }

There is a strategy when to create such data, please verify the plugin-settings ("Feature"): image

If the issue is still present, please attach the octoprint.log, maybe there is a different issue.

chemixt commented 2 years ago

Thanks for the tip. Sorry I do not understand. Where should I find this feature setting?

On Fri, Jan 7, 2022 at 3:54 PM OllisGit @.***> wrote:

Hi @chemixt https://github.com/chemixt, the hint regarding "metadata" means that OctoPrint was not able or not already provide the needed metatdata for the selected model to calculate the needed amount of filament.

Each gcode file has a corresponding metadata entry in the file

/uploads/.metadata.json. Looks like this: "3DBenchy.gcode": { "DisplayLayerProgress": { "totalLayerCountWithoutOffset": "159" }, "analysis": { "estimatedPrintTime": 3529.315478428196, "printingArea": { "maxZ": 48.05, "maxX": 119.791, "maxY": 122.755, "minX": 20.0, "minY": 50.0, "minZ": 0.3 }, "dimensions": { "width": 99.791, "depth": 72.755, "height": 47.75 }, "filament": { "tool0": { "volume": 10.928834037976793, "length": 4543.68119999991 } } } There is a strategy when to create such data, please verify the plugin-settings ("Feature"): [image: image] If the issue is still present, please attach the octoprint.log, maybe there is a different issue. — Reply to this email directly, view it on GitHub , or unsubscribe . Triage notifications on the go with GitHub Mobile for iOS or Android . You are receiving this because you were mentioned.Message ID: ***@***.***>

-- Joe Cichon

OllisGit commented 2 years ago

image

chemixt commented 2 years ago

Thanks! Not sure how I missed that

On Wed, Jan 12, 2022, 11:26 AM OllisGit @.***> wrote:

[image: image] https://user-images.githubusercontent.com/24205767/149190741-2f7f3474-978f-4e65-8c28-9ba49624728b.png

— Reply to this email directly, view it on GitHub https://github.com/OllisGit/OctoPrint-SpoolManager/issues/218#issuecomment-1011283020, or unsubscribe https://github.com/notifications/unsubscribe-auth/APQS23RA3Z3356UVD776Y6TUVW2ULANCNFSM5IP7DK2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

chemixt commented 2 years ago

Sorry, I lost the link to this thread. I am still having the same issue with my Makerbot Replicator 2x. I can no longer track any filament usage. everything seems to be set correctly but even when I select a valid spool, I get this message. I thought I figure it out because all my spools were checked as invalid on the spool editor. so I unchecked them all and I still get the same message.

octopi.local says:

ATTENTION: Needed filament could not calculated (missing metadata or spool-fields)

There are no spools selected for the following tools dispite them being used (maybe) by this print:

I checked my feature settings and they are as you had indicated

148612289-32f0b4d7-8a71-4975-a9dd-4ec25a0475de

Here is my octoprint log if it helps.

octoprint.zip

chemixt commented 2 years ago

I tried to roll back to 1.4.3 again, but the download link does not work.

chemixt commented 2 years ago

Ok, sorry, I figured out how to roll back to 1.4.3, and it works with my makerbot Replicator 2x again. I Hope you are able to get that latest version to work with it., I like the updates that you made, but with my system, it no longer tracks usage and gives me an error whenever I print.
ATTENTION: Needed filament could not calculated (missing metadata or spool-fields)

Error message: There are no spools selected for the following tools dispite them being used (maybe) by this print:

Tool 0 Tool 1 Do you want to start the print without selected spools?**_