Jump to content

Events API response type_id field


mikef87

Recommended Posts

Posted · Events API response type_id field

Starting to experiment with the api/v1/history/events      call.

It looks like the type_id can be used to sort the events

 

131076 is finished print

65538  is a print head change

 

Is there list of the supported types and meanings?

 

  • Link to post
    Share on other sites

    Posted · Events API response type_id field

    You can find the types on the printer in /usr/share/griffin/griffin/datatypes/eventType.py

    (needs active developer mode though)

     

    [...]
    #0x0000XXXX range, system related events
    SYSTEM_STARTUP = EventType(0x00000001, "System started")
    CRITICAL_ERROR = EventType(0x00000002, "Critical error {0}")
    SYSTEM_RESET = EventType(0x00000003, "Cleared all settings and history")
    SYSTEM_MAINTENANCE = EventType(0x00000004, "The maintenance action {0} was performed by {1}.")
    
    [...]
    
    #0x0001XXXX range, hotend related events
    HOTEND_CARTRIDGE_CHANGE = EventType(0x00010000, "Hotend {0} changed to {1} with serial {2}")
    HOTEND_MATERIAL_CHANGE = EventType(0x00010001, "Hotend {0} material changed to {1} by {2}")
    HOTEND_CARTRIDGE_REMOVE = EventType(0x00010002, "Hotend {0} removed")
    
    
    #0x0002XXXX range, print related events
    PRINT_STARTED = EventType(0x00020000, "Print {0} started with name {1}")
    PRINT_PAUSED = EventType(0x00020001, "Print {0} paused")
    PRINT_RESUMED = EventType(0x00020002, "Print {0} resumed")
    PRINT_ABORTED = EventType(0x00020003, "Print {0} aborted")
    PRINT_FINISHED = EventType(0x00020004, "Print {0} finished")
    PRINT_CLEARED = EventType(0x00020005, "Print {0} cleared")
    
    
    #0x0010XXXX range, authentication related events
    AUTHENTICATION_KEYS_ADDED = EventType(0x00100000, "API Authentication added for application: {1} user: {2} with id: {0}")
    AUTHENTICATION_KEYS_REMOVED = EventType(0x00100001, "API Authentication removed for application: {1} user: {2} with id: {0}")
    [...]

     

  • 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

      • 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
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...