Skip to content

Machine registryΒ #6486

Open
Open

Description

@wolflu05

This issue is a summary of possible ideas to improve the machine registry introduced with #4824.

🎰 Machine type improvements

  • ❗ send notification on error status change or machines capture errors
  • machine permissions with custom permission levels per machine type (e.g. so that only specific roles/users can print labels with a specific printer - e.g. for label printers there are the following permission levels: "print")
  • Define icons for each machine type and show them along the UI

🚚 Driver improvements

  • ❗ machine status polling function on driver (with option to disable status polling for all printers/for an individual printer) Machine properties and periodic pingΒ #10381
  • Termination hook for machines, (already tried at 6bb0ba7 but not that easy when run in gunicorn), then the machine restart could be a simple terminate + re init
  • let driver auto discover physical machines in the network/computer and show them so that they can be added quickly (like homeassistant has it)
  • machine actions (buttons on machine page that can trigger certain function on the driver)

πŸ–¨οΈ Label printer improvements

  • ❗Show the printer status badge in the machine selection dropdown (maybe by extending the ChoiceField with an optional status code property)
  • integrated label printing queue for each machine
  • label printer dialog sort machines based on priorities provided as tuple with get_printers (not sure if that makes sense or if last used is just enough, we have to see)

🎰 Ideas for other machine types

πŸ“ Other things

  • ❗ Settings only required if conditions are met (e.g. for a usb/network printer select the host, port, user, password only makes sense for network printers, for usb printer a single select is enough. => Dependent settings)
  • Live Autocomplete Settings type key (Client posts current values to API and API responds with suggestion)
  • add metadata to machine models
  • How does scaling of the machine registry work if InvenTree runs on multiple nodes (maybe Kubernetes)
  • Issue plugin events on machine load/finish load (ref: Machine integrationΒ #4824 (comment)) (Already tried, but: enqueues to much offloaded events that are unnecessary on simple setups on startup => the event system first needs a fix)
  • Fix machine request pickeling and settingsΒ #6772

Activity

  1. added
    enhancement
    on Feb 14, 2024
  2. martonmiklos commented on Feb 15, 2024

    @martonmiklos
    Contributor

    Ideas for other machine types: we have automated cable cutter/stripper and manual (but stationary non hand tooled) crimping in our manufacturing.

    What came into my mind when I saw about the machines integration is the resource planning/allocation.
    It would be great if "machine time" could be added as a BoM item or assigned separately as "resources" to parts.
    Resources could include not just machine time, but also labour even labour assigned to users/users groups.

    This way the (in the far distant future) we could implement a somewhat automated production planning. But that is a slightly different topic which might needed to be discussed in a separate discussion.

  3. loki42 commented on Feb 16, 2024

    @loki42

    I currently integrate my 2 PnP machines, conveyors and stencil printer with inventree using MQTT. Basically a program runs on the PnPs and sends info to inventree. The PnPs consume parts. Currently the way they create build orders / build units is a bit messy but I suspect I should transition over to this interface. I'd like to easily view status for the line and some stats would be handy too.

  4. SchrodingersGat commented on Feb 16, 2024

    @SchrodingersGat
    Member

    @loki42 sounds like a great candidate for a "machine" interface. Perhaps you could work with @wolflu05 to provide a demonstrator for this

  5. matmair commented on Mar 11, 2024

    @matmair
    Member

    @loki42 would you be open to do a short call/chat to understand your requirements better?

  6. loki42 commented on Mar 12, 2024

    @loki42
  7. loki42 commented on Mar 29, 2024

    @loki42

    I've added my current integration of the PNP with Inventree here: https://github.com/polyeffects/poly_erp it's also got my code for Inventree sales orders to Xero invoices and a few other things. The next plan is to add shipping stuff using Karrio.

  8. github-actions commented on May 28, 2024

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

  9. added
    inactive
    on May 28, 2024
  10. wolflu05 commented on May 28, 2024

    @wolflu05
    MemberAuthor

    Still active

  11. removed
    inactive
    on May 29, 2024
  12. added this to the horizon milestone on Jul 11, 2024
  13. changed the title [-][EPIC] Machine registry[/-] [+]Machine registry[/+] on Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions