question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Live Part Stock OR Run javascript inside column

See original GitHub issue

Hello, I’d love to be able to track the number of components in stock for a given project from within my html bom. That way when maintaining projects and checking part statuses I don’t have to look any farther than my git repo. I’d love to contribute to the project or fork my feature if somebody can point me in the right direction within the project.

You can search for the stock quantity of a LCSC part using a simple GET request, for example: https://wwwapi.lcsc.com/v1/products/detail?product_code=C2565

Another idea I had was to try and inject javascript into the Symbol Fields Table in KiCAD, but I couldn’t get that to work: image As you might be able to guess, I’m mostly a react developer…

Any ideas on how I might be able to get this working?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
set-softcommented, Jun 23, 2022

Hi @waymond91 !

Just my 2 cents: KiCost is designed to find the costs and prices for a KiCad BoM, it currently supports the REST API for Digi-Key, Mouser, Newark/Farnell and TME. You need tokens for each distributor, they are free.

Both, KiCost and iBoM, are integrated by KiBot. It runs on Linux and CI/CD environments, some users runs it on Windows (using WSL), for MacOS some adjust should be done, but I can assist you. Running KiBot on a GitHub action without any configuration you can get this.

Just in case you want to take a look at what is currently available.

1reaction
qu1ckcommented, Jun 23, 2022

I’m having trouble finding my plugin install location on MacOS. Can you point me in the right direction here?

Open Configure paths dialog from preferences menu of kicad and check the KICAD6_3RD_PARTY path.

There is no requirement.txt because the plugin doesnt need anything beyond what comes with kicad. To run it on non-linux system you have to run the python bundled with kicad, not the system one. Not sure where it is on mac.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling common JavaScript problems - MDN Web Docs
Now we'll look at common cross-browser JavaScript problems and how to fix them. This includes information on using browser dev tools to track ......
Read more >
How to perform a real time search and filter on a HTML table
I created these examples. Simple indexOf search. var $rows = $('#table tr'); $('#search').keyup(function() { var val = $.trim($(this).val()).replace(/ +/g, ...
Read more >
Network features reference - Chrome Developers
Discover new ways to analyze how your page loads in this comprehensive reference of Chrome DevTools network analysis features.
Read more >
Kendo UI for jQuery Grid Overview - Demos
The Grid component is part of Kendo UI for jQuery, a professional grade UI ... features such as locked and sticky columns, built-in...
Read more >
Google Visualization API Reference | Charts
Creating and populating a table in JavaScript by calling addColumn() , addRow() ... The column label is typically displayed as part of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found