Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvenTree HTTP Library support. #183

Open
konkers opened this issue Oct 26, 2023 · 6 comments
Open

InvenTree HTTP Library support. #183

konkers opened this issue Oct 26, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@konkers
Copy link
Contributor

konkers commented Oct 26, 2023

KiCad 8.0 will have (already in nightly) HTTP library support (https://docs.kicad.org/master/en/eeschema/eeschema_advanced.html#http-libraries) which with the inventree_kicad plugin (https://github.com/afkiwers/inventree_kicad) allows one to tie InvenTree parts directly to KiCad symbols and footprints. This has the advantage of not creating a descrete/separate KiCad symbol for each passive and instead link them all to their generic version (i.e. Device:R_Small).

It would be great to have a mode for Ki-nTree where it is aware of KiCad but instead of creating KiCad Symbols, instead just populates the Symbol and Footprint field in InvenTree.

@konkers
Copy link
Contributor Author

konkers commented Oct 27, 2023

I built a rough prototype of this: https://github.com/konkers/Ki-nTree/tree/wip/magic

It drives the category, footprint, and symbol selection from a match file: https://github.com/konkers/Ki-nTree/blob/wip/magic/kintree/config/inventree/magic_settings.yaml

@matmair
Copy link

matmair commented Oct 28, 2023

Looks interesting @konkers; Not sure about the magic name for it - that leaves a lot of room for interpretation to the user.

Disclaimer: This is @eeintech project so my word has 0 sway here (nor should it, I am a newbie at KiCad at best)

@konkers
Copy link
Contributor Author

konkers commented Oct 28, 2023

Oh yeah, the name magic is just a stand in. The patch still needs work. Notably the way the detection configuration file is structured, the user version is overwritten by the template data here: https://github.com/sparkmicro/Ki-nTree/blob/main/kintree/config/config_interface.py#L66.

@konkers
Copy link
Contributor Author

konkers commented Oct 28, 2023

Another issue with the prototype I just found: if one doesn't hit the magic button and instead manually enters the footprint and symbols, they are not added the the InvenTree part. Probably something to do with data_from_views not getting updated.

@eeintech
Copy link
Contributor

eeintech commented Nov 1, 2023

Hello @konkers Sorry for the late response. This is super exciting development, I really need to look closer into it. Unfortunately my free time is quite limited right now. If you want to move forward and send a PR, when I get the chance I'll take a look into your implementation.

I also agree with @matmair the name magic is a bit marketing-ish, a more obvious name would be much better 😃

@eeintech
Copy link
Contributor

Hello @konkers now that KiCad v8 is out, did you have time to polish your implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants