-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
[FEATURE[S]] Add Datasheet and HTTP-LIB Support #1
Comments
Hi, thanks for checking out the project! :)
This is something I've thought about, but haven't really needed myself, but it should be fairly easy to implement. I'll take a look at it the next days ^^
For my usecases, it really doesn't matter that's why I don't have it included in the default config nor my personal config. I think I'd like to keep the default config realitively simple, so I think I'd keep it how it is. You should just be able to add it to your personal config though. You can also use version control on it, my personal config for example is available here.
Already working on it ^^, though my approach is a little different: Instead of adding a kicad footprint parameter for every part, I thought it'd be cleaner to just have a mapping from the already present I haven't really thought much about schematic symbols though tbh ... For resistors, caps etc. it's relatively easy, you can pretty much just set it for the whole category. But especially for ICs, I guess you'd need specific symbols for each one pretty much 🤔
Me too 😅 ... not sure when or if that's happening though. There has been some work on building a base for this in #3791 but atm the InvenTree dev team is focused on the new PUI frontend, so there's little movement on that front (afaik). The reason this exists in the form it does right now is that I needed something that just works, now. And this seemed like the easiest option for that. |
I like the idea of a separate package to footprint mapping. However I still think it's useful to have some sort of normalization step before part creation so that you don't end up with multiple variations of There's also automatic category detection to think about. For schematic symbol, this is where Ki-ntree's interactive approach has an advantage. It gives you an opportunity to manually specify the symbol between querying the vendor and part creation. Going back and adding the symbol through Inventree is more time consuming and more clicks. I wonder if a hybrid workflow where |
inventree_part_import already has this.
inventree_part_import has an interactive mode now to automatically select unmatched categories and automatically specify unmatched parameters. So this is trivial to "implement", you'd really only have to add the symbol parameter. (This is also functionally equivalent to the hybrid workflow you propose I'd say, if not better). |
And that's ok! You cannot specify every symbol possible in advance. I am speaking of generous ones like in here: Template
I really like this approach and I am stunned on how you are actually contributing to inventree and their plugins. This is also something that I noticed and this pr is a very nice workaround. Just mentioning this here cause you linked the pr. To continue, the operating Temperature was fairly easy to implement, also a good idea to version control this... The datasheet can sadly not be found via a parameter but I may also have a look into it. Also wondering where the datasheet mapping in the kicad inventree plugin is? Thanks so far for your work! |
This is interesting. Thought about something similar, mainly for symbols yesterday, but I think I'd prefer if that was queried "live". That way you could maybe even include custom user symbols/footprints in the selection (if inventree_part_import is running on the same machine you have KiCad installed on).
Here. Seems like they are just checking for an attachement named |
@Nudelsalad datasheets are supported on master now. I've also added the Would be great if you could give this a quick test and see if everything works as it should ^^ |
Hi @30350n,
Haven't thought of this, but would be even cooler! Specifying the symbol library and footprint library path in the configuration routine and then having them linked for a helper script.
Tried it out, worked out of the box for me. The Datasheet gets correctly shown in inventree under the attachements category. |
Hi @30350n, |
Hi @30350n,
awesome work! I already managed to adopt your categories/parameters structure. Very straight forward!
I would love to have a feature of a datasheet getting pulled and pushed to inventree (as urls often change and may be broke in future) but I can live with it if inventree_part_import could manage to pull the URL.
I suggest you to add the Operating Temperature parameter to every part as this is sth crucial in my opinion missing in the template so far.
The HTTP-Lib support is also something in my opinion that should be considered. Ki-nTree issue With your tool this is possible put 2 parameters for every part separately maybe kicad_sym and kicad_foot and link them with the kicad http plugin of inventree. But @konkers doing some extra magic defining for generous types (Diode, 0603 Resistor) the kicad symbol and footprint and linking them there. Even more userfriendly not defining for every type every time!
These are just some thoughts with existing workarounds(except for the datasheet). I would love to see your software as plugin inside inventree and would be interested in a Roadmap for this piece of software!
Regards!
The text was updated successfully, but these errors were encountered: