-
Notifications
You must be signed in to change notification settings - Fork 97
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
Display "extra" component data by the distributor #4
Comments
Related #78 (Add datasheet link), #91 (Show part image) All issues above as grouped here and closed. It will be need some modification and study of the distributors sub modules to create a
After this, in the spreadsheet, some of they could be see as a comment in each "cat#" column. Save the differences got in each distributor could help in #17 implementation. |
Prototype for Digikey but ready for all others distributors: On a phase two, this data could be used to check footprint and other data and paint the cell of one distributor as a warning. Feel free to contribute. |
Missing implement on others distributors, use my code Digikey as example/model. |
Actually use the life cycle and datasheet to complete and highlight the I will leave this opened for now until I study if is possible this cross checking. |
If this word parse https://kitspace.github.io/electro-grammar/ should be possible to validate. |
For "extra data" information, xlsx could display some distributor site return data (value, tolerance, footprint/package, etc) which doesn't necessarily care about a match to the component data. Although maybe cares about consistency or a fuzzy match between distributors (mouser, digikey, Newark)
Which, if doing that, begs for a template file (text file) to setup which fields to display as "extra data". Maybe instead of relying on fuzzy matching to have the setup file also prioritize which site "wins" if information exists. Example: setup file wants two "extra data" fields and perhaps denotes them as:
$extra1=mouser,"tolerance",digikey,"tolerances",Newark,"tol:";$extra2=digikey,"package"
Example shows two extra fields. First field will fill in with a match on part html line with "tolerance" match. If no match, then try Digikey a match for "tolerances" (showing maybe different search strings for different distributors), if no match then try Newark a line with "tol:". The 2nd extra field only matches if digikey returns a field with "package". How the script decides what the value is to return (presumably data to the right of the search string) - how much to return (and when to terminate) may not be worth deciding so there may need to be a third field which tells the script how to determine. $extra1=mouser,"tolerance","regex? Something else",digikey,"tolerances","dk value parse helper", Newark."tol:."newark parser helper"
Not settled on the parser helper field - but that it could help the script abstract how to determine the value return format.
The text was updated successfully, but these errors were encountered: