Jump to content

Help to create a loggin plugin for CURA


fedealbe10

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

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
        • 3 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...