Jump to content

Recommended Posts

Posted · Help to create a loggin plugin for CURA

Hi guys i'm new to this forum.

I need help to create a plugin that creates a qr-code or something similar and then can be scanned by an app that i'm developing to log the model in the printer log on the app.

Any idea how to create one and if it already exists?

  • Link to post
    Share on other sites

    Posted · Help to create a loggin plugin for CURA
    49 minutes ago, fedealbe10 said:

    a plugin that creates a qr-code

    Where and when does it create the qr-code? Should the qr-code be displayed on the screen, or should it be an image that gets saved separately from the gcode? Should it be included in the gcode as a sort of thumbnail?

    • Like 1
    Link to post
    Share on other sites

    Posted · Help to create a loggin plugin for CURA
    On 3/21/2023 at 2:03 PM, ahoeben said:

    Where and when does it create the qr-code? Should the qr-code be displayed on the screen, or should it be an image that gets saved separately from the gcode? Should it be included in the gcode as a sort of thumbnail?

    No just printed on the screen, no need to save it somewhere. 

    thanks

  • Link to post
    Share on other sites

    Posted · Help to create a loggin plugin for CURA

    You missed a question: when should it be displayed? While saving gcode? Before, while or after printing? (if so, how are you printing?) While slicing? Only when the user presses a button?

     

    And what information do you want to have available when generating the qrcode? A hash of the gcode?

  • Link to post
    Share on other sites

    Posted · Help to create a loggin plugin for CURA
    46 minutes ago, ahoeben said:

    You missed a question: when should it be displayed? While saving gcode? Before, while or after printing? (if so, how are you printing?) While slicing? Only when the user presses a button?

     

    And what information do you want to have available when generating the qrcode? A hash of the gcode?

    After slicing, when the user presses a button.

     

    I need that all the settings of the sliced model are available

  • Link to post
    Share on other sites

    Posted · Help to create a loggin plugin for CURA

    I think the easiest way to start is with an "extension" type plugin:

    https://github.com/Ultimaker/Uranium/wiki/Plugin-Types#extentions

    You can use this example as a starting point:

    https://github.com/Ultimaker/UraniumExampleExtensionPlugin

     

    If you want a button near the "save gcode" button, have a look at how this plugin adds a button:

    https://github.com/fieldOfView/Cura-PauseBackendPlugin/

     

    You should be able to include the qrcode module with your plugin:

    https://github.com/lincolnloop/python-qrcode

    You may have to jump through some hoops to get it to import correctly. Here's how I do it in the OctoPrint Connection plugin:

    https://github.com/fieldOfView/Cura-OctoPrintPlugin/blob/release/OctoPrintOutputDevicePlugin.py#L48-L90

     

    I have not checked the code, but this plugin may help you access all the settings:

    https://github.com/5axes/CuraSettingsWriter

  • Link to post
    Share on other sites

    Posted · Help to create a loggin plugin for CURA
    17 minutes ago, ahoeben said:

    I think the easiest way to start is with an "extension" type plugin:

    https://github.com/Ultimaker/Uranium/wiki/Plugin-Types#extentions

    You can use this example as a starting point:

    https://github.com/Ultimaker/UraniumExampleExtensionPlugin

     

    If you want a button near the "save gcode" button, have a look at how this plugin adds a button:

    https://github.com/fieldOfView/Cura-PauseBackendPlugin/

     

    You should be able to include the qrcode module with your plugin:

    https://github.com/lincolnloop/python-qrcode

    You may have to jump through some hoops to get it to import correctly. Here's how I do it in the OctoPrint Connection plugin:

    https://github.com/fieldOfView/Cura-OctoPrintPlugin/blob/release/OctoPrintOutputDevicePlugin.py#L48-L90

     

    I have not checked the code, but this plugin may help you access all the settings:

    https://github.com/5axes/CuraSettingsWriter

    Thanks man, i'll let u know if  it works

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...